Consume a Web service using javax.microedition.xml.rpc.Operation

Requirement. Consume a Web Service using native libraries of Blackberry.

Target WebService: http://ws.cdyne.com/WeatherWS/Weather.asmx

WebService of the operation: http://ws.cdyne.com/WeatherWS/Weather.asmx?op=GetCityWeatherByZIP

Environment: Eclipse JDE 1.3.0 with BB SDK Enterprise Server BB 5.0.0

First Guide of: http://blog.bayestech.com/?tag=blackberry

1 Java Stub

public interface IWeatherServiceZip
{
    public String getWeatherServiceByZip(String zipCode) throws java.rmi.RemoteException;

}

2. Service Java class

import java.rmi.RemoteException;
import javax.microedition.xml.rpc.ComplexType;
import javax.microedition.xml.rpc.Element;
import javax.microedition.xml.rpc.Operation;
import javax.microedition.xml.rpc.Type;
import javax.xml.namespace.QName;
import javax.xml.rpc.JAXRPCException;

import com.lm.bb.ws.interfaces.IWeatherServiceZip;

/**
 * @author lmo0
 *
 */
public class WeatherServiceZip implements IWeatherServiceZip, javax.xml.rpc.Stub
{
    protected static final QName _qname_operation_GetCityWeatherByZIP = new QName("http://ws.cdyne.com/WeatherWS", "GetCityWeatherByZIP");
    protected static final QName _qname_GetCityWeatherByZIPResponse = new QName("http://ws.cdyne.com/WeatherWS", "GetCityWeatherByZIPResponse");
    protected static final QName _qname_GetCityWeatherByZIP = new QName("http://ws.cdyne.com/WeatherWS", "GetCityWeatherByZIP");
    protected static final Element _type_GetCityWeatherByZIP;
    protected static final Element _type_GetCityWeatherByZIPResponse;

    private String[] _propertyNames;
    private Object[] _propertyValues;

    public WeatherServiceZip()
    {
        _propertyNames = new String[]
        { ENDPOINT_ADDRESS_PROPERTY };
        _propertyValues = new Object[]
        { "http://ws.cdyne.com/WeatherWS/Weather.asmx" };
    }

    public void _setProperty(String name, Object value)
    {
        int size = _propertyNames.length;
        for (int i = 0; i < size; ++i)
        {
            if (_propertyNames[i].equals(name))
            {
                _propertyValues[i] = value;
                return;
            }
        }
        String[] newPropNames = new String[size + 1];
        System.arraycopy(_propertyNames, 0, newPropNames, 0, size);
        _propertyNames = newPropNames;
        Object[] newPropValues = new Object[size + 1];
        System.arraycopy(_propertyValues, 0, newPropValues, 0, size);
        _propertyValues = newPropValues;

        _propertyNames[size] = name;
        _propertyValues[size] = value;
    }

    public Object _getProperty(String name)
    {
        for (int i = 0; i < _propertyNames.length; ++i)
        {
            if (_propertyNames[i].equals(name))
            {
                return _propertyValues[i];
            }
        }
        if (ENDPOINT_ADDRESS_PROPERTY.equals(name)
                || USERNAME_PROPERTY.equals(name)
                || PASSWORD_PROPERTY.equals(name))
        {
            return null;
        }
        if (SESSION_MAINTAIN_PROPERTY.equals(name))
        {
            return new Boolean(false);
        }
        throw new JAXRPCException("Stub does not recognize property: " + name);
    }

    protected void _prepOperation(Operation op)
    {
        for (int i = 0; i < _propertyNames.length; ++i)
        {
            op.setProperty(_propertyNames[i], _propertyValues[i].toString());
        }
    }

    public String getWeatherServiceByZip(String zipCode) throws RemoteException
    {
        Object inputObject[] = new Object[]
        { zipCode };

        Operation op = Operation.newInstance(_qname_operation_GetCityWeatherByZIP,    _type_GetCityWeatherByZIP, _type_GetCityWeatherByZIPResponse);
        _prepOperation(op);
        op.setProperty(Operation.SOAPACTION_URI_PROPERTY,"http://ws.cdyne.com/WeatherWS/GetCityWeatherByZIP");//SOAP Action
        Object resultObj;
        try
        {
        resultObj = op.invoke(inputObject);
        System.out.print(resultObj.toString());
        } catch (JAXRPCException e)
        {
        e.printStackTrace();
        Throwable cause = e.getLinkedCause();
        if (cause instanceof java.rmi.RemoteException)
        {
        throw (java.rmi.RemoteException) cause;
        }
        throw e;
        }
        return (String) ((Object[]) resultObj)[0];
    }

    static
    {
        _type_GetCityWeatherByZIPResponse = new Element(_qname_GetCityWeatherByZIPResponse,_complexType(new Element[]
                { new Element(new QName("http://ws.cdyne.com/WeatherWS","GetCityWeatherByZIPResult"), Type.STRING, 0, 1, false) }), 1, 1,false);
        _type_GetCityWeatherByZIP = new Element(_qname_GetCityWeatherByZIP,_complexType(new Element[]
                { new Element(new QName("http://ws.cdyne.com/WeatherWS","ZIP"), Type.STRING, 0, 1, false) }), 1, 1, false);
        }

    private static ComplexType _complexType(Element[] elements)
    {
        ComplexType result = new ComplexType();
        result.elements = elements;
        return result;
    }
}

3 problem

There is no information about the exception that occurs when I try to debug my Application actually when you call the Web Service to:

resultObj = op.invoke (inputObject);

Any help.  If you have any other suggestions on how to consume a web service using BB. I don't want to use KSOAP2 because the source code is not updated more and prefer the native BB mode without using the 3rd party jars.

Thank you

How do you generate the stub class? Have you used Sun's Wireless Toolkit?

Tags: BlackBerry Developers

Similar Questions

  • How to consume the web service using PLSQL in 11g

    Hello

    I created a site using jDeveloper, web services which when I put in the web browser and press enter, it will display the settings screen and when I pass the value for the parameter, and then it displays the output of the XML returned by the PL/SQL (called in the Web Service) package. Now, I want to call this webservice in PL/SQL and read XML data and fill in the staging table. Can anyone suggest me how to achieve this functionality by using Oracle PL/SQL

    I use the database 11g and jDeveloper Version :-Studio Edition version 10.1.3.0

    Thank you very much in advance.

    Vijay

    The WSDL file describes the web service.

    To obtain the WSDL, you enter the URL of the web service and add some ? WSDL to the URL. This indicates the web service to return to its definition.

    For example

    URL of the Web Service: http://wsf.cdyne.com/WeatherWS/Weather.asmx

    WSDL URL: http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL

    When you read (using 'web browser' UTL_HTTPpackage) the XML response from the web service, read as strings (PL/SQL varchar2, size 32 K max).

    You should read the answer as the strings, then writing/writeappend these channels in a CLOB (using the DBMS_LOB package). If you are VERY sure that the web service call ALWAYS returns an XML of less than 32 k, you can skip using a CLOB.

    Whatever it is, read you the response from the web service in the form of text (such as plain text, it is what is sent). The next step on your part is to parse text into an XML DOM (document object model) - and storing the DOM in an Oracle XmlType variable.

    When in a DOM, you can use Oracle XML functions to extract the attributes and values of the key element of the response from the web service.

  • Consume peoplesoft Web services using Jdeveloper authentication failure

    Hello

    I use Jdeveloper 11 g to consume the webservice of peoplesoft and following the exact steps in the following article.
    http://www.Oracle.com/technology/tech/fmw4apps/PeopleSoft/OFM-PSFT-blog-postings.HTML#Web-services
    The Web service I use is different from the example I use the production version of the wsdl file.
    After following all the steps, the generated proxy creates not poseurs of the getter for user name, password (Basic authentication).
    Is it supposed to auto generate or what I need to encode?
    I did the code of the getter set username and password and provide the credentials, but I get an error authentication failed.

    java.rmi.RemoteException: SOAPFaultException - FaultString FaultCode [http://schemas.xmlsoap.org/soap/envelope/ {} Client.Authentication] [did not receive message weblogic.wsee.util.AccessException: a code of 401 error (unauthorized) was returned by the server to http://ps-dev-web.kc.lan:30710/PSIGW/HttpListeningConnector.] Please check that the username and password are set correctly and that you are authorized to access the requested method.
    -> Http://ps-dev-web.kc.lan:30710/PSIGW/HttpListeningConnector server returned a code of 401 error (unauthorized). Please check that the username and password are set correctly and that you are authorized to access the requested method.
    ] FaultActor detail [null] [< detail > < bea_fault:stacktrace xmlns:bea_fault = "http://www.bea.com/servers/wls70/webservice/fault/1.0.0" > weblogic.wsee.util.AccessException: a code of 401 error (unauthorized) was returned by the server to http://ps-dev-web.kc.lan:30710/PSIGW/HttpListeningConnector.] Please check that the username and password are set correctly and that you are authorized to access the requested method.
    at weblogic.wsee.connection.transport.http.HTTPClientTransport.handleErrorResponse(HTTPClientTransport.java:373)

    The code I used to generate getter, setter is

    -These methods have not generated-
    public String getPassword() {}
    (String) return ((heel) port). getProperty (Stub.PASSWORD_PROPERTY);
    }

    public void setPassword (String password) {}
    ((Heel) port). setProperty (Stub.PASSWORD_PROPERTY, password);
    }

    public String getUsername() {}
    (String) return ((heel) port). getProperty (Stub.USERNAME_PROPERTY);
    }

    {} public void setUsername (String username)
    ((Heel) port). setProperty (Stub.USERNAME_PROPERTY, username);
    }
    I don't know where I'm going wrong, credentials, I used the work normally but do not work with this application.
    I'd appreciate if I can get some light on this issue.

    Thank you
    Ash

    Published by: [email protected] on June 2, 2010 07:56

    In your case, the settings are not IN/OUT but OUTSIDE.
    To create the owner and get the values after the operation, you must do something like this:

    Create the parameters of the licensee
    Holder nt new holder =();
    Holder det holder new =();

    Make the call
    port.createCompIntfcKCMWEBCASECI (nt, det);

    Get the value
    System.out.println ("Value is" + nt.) Value();

    Thank you
    Vishal

  • Problems with the Web Service using XML in Flex

    Hello

    I use a ColdFusion CFC, which is configured to generate an XML string. It runs on ColdFusion MX 6.1 and is configured as a remote web service. I tested the call and it returns the string XML fine when it is called from another method of Flex unfounded. My problem is this simple Flex application to call the same function via a service web, I wrote below. I cannot get to the exit results, keeps showing as NULL. I can't use the HTTP of Flex appeal for remote access because I'm not under MX7. Does anyone know what is wrong with my code? BTW, I would do the work of cross - domain.xml file to call the cfc, let me know if you want to test and I can add your domain name. Thank you!

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" >

    <! - set Web Service to get the XML data of course catalog - >
    < mx:WebService
    ID = "cd".
    "WSDL =" http://training.wonderware.com/components/courses.cfc?wsdl "
    Load = "CD.getCourseCatalogXML.Send ()" "
    showBusyCursor = "true" fault = "Alert.show (event.fault.message), 'Error' ' result =" cdResult (event) ">"
    < mx:operation name = "getCourseCatalogXML" resultFormat = "e4x" >
    < mx:request >
    < IDCalendrier > 3 < / IDCalendrier >
    < / mx:request >
    < / mx:operation >
    < / mx:WebService >

    < mx:Script >
    <! [CDATA]
    Import mx.controls.Alert;
    Import mx.rpc.events.ResultEvent;
    Import mx.rpc.events.FaultEvent;

    [Bindable]
    public var outputString:String

    public void cdResult(event:ResultEvent):void
    {
    outputString = event.result as String
    }
    []] >
    < / mx:Script >

    < mx:Canvas horizontalScrollPolicy = "off" verticalScrollPolicy = "off" >
    < mx:Text width = '100% ' paddingLeft = "4" paddingRight = paddingTop "4" = "4" >
    < mx:text > OUTPUT: {outputString} < / mx:text >
    < / mx:Text >
    < / mx:Canvas >

    < / mx:Application >

    Thank you very much! I do not have the notion that the HTTPService is indded just an HTTP call. So yes that it a much simpler way to call just ColdFusion to return the XML string to the application. No reason to use Flash Remoting or CFCS etc... and certainly not a web server. This made the turn that I called a HTTPService now what charges by coldfusion page that returns XML and bam, works well with e4x result etc... Thanks tracy!

  • Problem of DH handshake with the web service using ColdFusion 7 and 8 after java update 8

    ColdFusion 7 and 8 are provided with a variant of JRE1.6.

    I have a script that has consumed a web service for years with success.  Last week, the web service provider updated their version of Apache and Java on the server java 1.8 (or java-8).

    I could no longer consume the web service once the web service provider updated to Apache and Java and would be the following error DH keypair every time that I try to consume the service:

    -----------------

    AxisFault

    faultCode: {http://schemas.xmlsoap.org/soap/envelope/} Server.userException

    faultSubcode:

    faultString: javax.net.ssl.SSLException: java.lang.RuntimeException: could not generate keypairs DH

    faultActor:

    faultNode:

    faultDetail:

    {}http://xml.apache.org/axis/} stackTrace:javax .net .ssl .SSLException: java.lang.RuntimeException: could not generate keypairs DH

    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1591)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1554)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1537)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1130)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1107)

    at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)

    to org.apache.axis.transport.http.HTTPSender.getSocket (HTT... ''

    -----------------

    I asked the service provider web, why it would stop working and how we can solve this problem.  They suggested that upgrade to the latest version of Java on my server running ColdFusion.  I did some research and found the problem to be with the amount of memory allocated to the variable containing the encryption key.

    The big problem is when I tried to update java on this particular server (Windows Server 2003), the installation has returned a messaged stating that he could not run on the older operating system and I need to update my OS to install java.

    Does anyone have a workaround in ColdFusion 7 or 8 that you can establish the DH handshake using Java 1.6 on your local server while consuming a web service on a server using Java 1.8?

    Hi, frank000000,

    I know that we had a serious problem with any Java 7 after update 25.  They are off a lot of network permissions and other things, for safety, that used to be available in versions prior to the update 25.  But it's while we were in CF Server 9.

    Since we switched to CF Server 10 (making sure that we got the CF Installer provided with Java 8), we had very few issues related to Java.

    It seems strange to me that the upgrade to 1.8 host while your server is 1.6 would cause problems.  It could very well be something else.  I would like to ask the host for documentation describing exactly how/why their 1.8 may cause interference with your 1.6.

    HTH,

    ^_^

  • Consume a web service from ASP which responds with complex data types...

    Here's my problem - I'm trying to consume a web service from a provider that uses complex data types.

    The starting of the WSDL part looks like this (I have not included all) - named have been changed to protect the innocent:

    " < wsdl:definitions targetNamespace = ' http://domain_name ">
    WSDL: < types >
    " < s:schema elementFormDefault ="qualified"targetNamespace =" http://domain_name ">
    < s:element name = "Authentication" >
    < s:complexType >
    < s:sequence >
    < s:element minOccurs = "0" maxOccurs = "1" name = "User name" type = "s:string" / >
    < s:element minOccurs = "0" maxOccurs = "1" name = "Password" type = "s:string" / >
    < s:element minOccurs = "0" maxOccurs = "1" name = "Token" / >
    < / s:sequence >
    < / s:complexType >
    < / s:element >
    < s:element name = "AuthenticateResponse" >
    < s:complexType >
    < s:sequence >
    < s:element minOccurs = "1" maxOccurs = "1" name = "AuthOK" type = "s:int" / >
    < s:element minOccurs = "0" maxOccurs = "1" name = "Token" / >
    < / s:sequence >
    < / s:complexType >
    < / s:element >

    Since it is a return, with a sequence of complexType, I expect an array or a structure returned, but instead I just get the value of "AuthOK" and no way to get something else.

    Here are the ways I tried to call it:

    < cfscript >

    WS = createObject ("WebService", "https://WSDL_URL");

    WS_ret = WS. Authentication (name of user = "username", password = "password", token = "");

    < / cfscript >

    < cfdump var = "" #WS_ret # "/ >"

    < cfinvoke webservice = "WSDL_URL" method = "Authentication" returnVariable = "WS_ret" >

    < name cfinvokeargument = "userID" value = "7253320" / >
    < cfinvokeargument name = "password" value = "ctpjxs3" / >
    < name cfinvokeargument = "SecurityToken" value = "" / > "

    < / cfinvoke >

    < cfdump var = "" #WS_ret # "/ >"

    Any ideas how I can get the other variables in the sequence? I have other calls after that have a greater amount of variables, and as such I can't use without being about to get more than the

    You can try using the function GetSOAPResponse to review the XML code you receive.

    'GetSOAPResponse '.

    http://livedocs.Adobe.com/ColdFusion/8/htmldocs/help.HTML?content=functions_e-g_59.html#50 54378

    "Troubleshooting SOAP requests and responses.

    http://livedocs.Adobe.com/ColdFusion/8/htmldocs/help.HTML?content=webservices_27.html#1222 070

    As for the question of docs, I suspect mediocre edition is at fault.  I assume that the web service is supposed to have an echoStruct method but this is unclear.

  • What happened to the application Panel in Dreamweaver (consume the web service)?

    Pre-Creative cloud, I had used Dreamweaver to create a code to consume external web services. It was, I believe, the Panel "Applications".

    How to use Dreamweaver CC to consume a web service? I'm not finding anything that contributes to this day.

    Thanks in advance,

    BW

    Cold Fusion support has been removed from the DW with the release of CC 2013.

    The last version to support CF was Creative Suite 6 (CS6 2012).

    If you are a subscriber to paying creative cloud, you can fall back to your Creative Cloud Desktop App CS6 clicking applications > all THE APPS, scroll down, click on the PREVIOUS VERSIONS.  CS6 will appear in the list options.

    Nancy O.

  • AllDAY using javax.microedition.pim.Event events calendar

    Hi all

    I try to save an event all day in the database using javax.microedition.pim.Event of PIM data. According to the Docs, I add an event that has a start time of 00:00:00:000 (defined by DateTimeUtilities.zeroCalendarTime) and a set of end for the next time, once again, the 00:00:00:000 value.

    The event shows correctly in the application calendar of BB, but it is not recognized as an Allday event.

    It is: that I need TO use the BlackBerryEvent interface to get the calendar to acknowledge an event like allday or I can do this with just using the event interface?

    Another issue: State of the Docs for the event interface:

    ------------------------------

    RIM implementation notes

    The value stored in the field of the END can be modified slightly when it is committed. The field is stored with a granularity of one minute compared to the STARTING field.

    ------------------------------

    Alteration is transparent to the user of the API? When I check the END field after you have selected and hired, it shows no alteration.

    Kind regards

    Carsten

    PS: Need to add that I use 4.5 JDE and the 8820 4.5 Simulator

    You must use BlackBerryEvent to specify a appointent all day.

    DerCarstenUK wrote:

    Hi all

    Another issue: State of the Docs for the event interface:

    ------------------------------

    RIM implementation notes

    The value stored in the field of the END can be modified slightly when it is committed. The field is stored with a granularity of one minute compared to the STARTING field.

    ------------------------------

    Alteration is transparent to the user of the API? When I check the END field after you have selected and hired, it shows no alteration.

  • Call SOAP Web Service using UTL_HTTP vs APEX_WEB_SERVICE. MAKE_REQUEST

    Dear all,

    When I call the SOAP using APEX_WEB_SERVICE Web services. MAKE_REQUEST, so I'm able to get the response from the web service. Character, however all the German are replaced by those of the JUNK. However the data just fine when I test web services using SOAP UI.

    To resolve this problem, I tried to call the web service using UTL_HTTP. However when I use UTL_HTTP, then I get following error.

    ORA-24247: access denied by network access control list

    Can someone advise me...

    < Li > why German characters are replaced with the data side when calling WebService from APEX, while it works very well in SOAP UI
    < Li > when can I access web service successfully using APEX_WEB_SERVICE, then why he throws error ORA-24247 when I call using UTL_HTTP?


    DB: Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    APEX: 4.0.2.00.07
    Web server: EPG
    SELECT * FROM NLS_DATABASE_PARAMETERS;
    
    PARAMETER                      VALUE                                  
    ------------------------------ ----------------------------------------
    NLS_LANGUAGE                   AMERICAN                                 
    NLS_TERRITORY                  AMERICA                                  
    NLS_CURRENCY                   $                                        
    NLS_ISO_CURRENCY               AMERICA                                  
    NLS_NUMERIC_CHARACTERS         .,                                       
    NLS_CHARACTERSET               AL32UTF8                                 
    NLS_CALENDAR                   GREGORIAN                                
    NLS_DATE_FORMAT                DD-MON-RR                                
    NLS_DATE_LANGUAGE              AMERICAN                                 
    NLS_SORT                       BINARY                                   
    NLS_TIME_FORMAT                HH.MI.SSXFF AM                           
    NLS_TIMESTAMP_FORMAT           DD-MON-RR HH.MI.SSXFF AM                 
    NLS_TIME_TZ_FORMAT             HH.MI.SSXFF AM TZR                       
    NLS_TIMESTAMP_TZ_FORMAT        DD-MON-RR HH.MI.SSXFF AM TZR             
    NLS_DUAL_CURRENCY              $                                        
    NLS_COMP                       BINARY                                   
    NLS_LENGTH_SEMANTICS           BYTE                                     
    NLS_NCHAR_CONV_EXCP            FALSE                                    
    NLS_NCHAR_CHARACTERSET         AL16UTF16                                
    NLS_RDBMS_VERSION              11.2.0.1.0                               
    
     20 rows selected
    Kind regards
    Hari

    The solution was...

    I just put following line before making the call to the web service by using APEX_WEB_SERVICE. MAKE_REQUEST.

    /*In my case DB character-set is AL32UTF8, so I set it to UTF-8. */
    
    UTL_HTTP.SET_BODY_CHARSET ('UTF-8');
    

    More information see SET_BODY_CHARSET procedures

    If I do not set this, it uses the as ISO-8859-1 character set, which is the cause of my problem.

    Kind regards
    Hari

  • Consuming SOAP Web Services

    OK, I have a web service that I am consuming in CF9. I am able to hit the wsdl with SOAPUI and see the results. The results come back as XML. Basically, it displays a list of rooms we use as meetings and show the time that they are reserved. Here's the CF code I wrote for him:

    < cfinvoke

    " webservice =" http://DWC-dreiman-w7e/WSExchangeMeetingRooms/Exchange.asmx?WSDL"" "" "

    method = "FindResourceDetailForDay".

    returnvariable = "FindResourceDetailForDayResponse" >

    < cfinvokeargument name = value 'c' = "Deerwood" >

    < cfinvokeargument name = value "d" = "" >

    < / cfinvoke >

    < cfoutput > value Test return #FindResourceDetailForDayResponse # < / cfoutput >

    However, this code returns this: Test value returns org.tempuri.FindResourceDetailForDayResponseFindResourceDetailForDayResult@13d9efc

    The information that SoapUI refers to the XML format is the following:

    < xmlns:msdata = diffgr:diffgram "" urn: schemas-microsoft-com: xml-msdata "xmlns:diffgr =" urn: schemas-microsoft-com: XML-diffgram-v1 ">"

    < calendar xmlns = "" >

    < Dwc-Hall-02 diffgr: ID = "Dwc-room-021" msdata:rowOrder = "0" diffgr: hasChanges = "Insert" >

    < StartTime > 06/10/2010-11:00 < / StartTime >

    < EndTime > 06/10/2010 12:00 < / EndTime >

    Busy < BusyType > < / BusyType >

    Meeting of Construction < object > < / topic >

    < location / >

    < IsException > False < / IsException >

    < IsMeeting > False < / IsMeeting >

    < IsPrivate > false < / IsPrivate >

    < IsRecurring > false < / IsRecurring >

    < / Dwc-Hall-02 >

    < Dwc-room-01 diffgr: ID = "Dwc-room-011" msdata:rowOrder = "0" diffgr: hasChanges = "Insert" >

    < StartTime > 06/10/2010 09:00 < / StartTime >

    < EndTime > 06/10/2010-11:00 < / EndTime >

    Busy < BusyType > < / BusyType >

    the management meeting < object > < / topic >

    < location / >

    < IsException > False < / IsException >

    < IsMeeting > False < / IsMeeting >

    < IsPrivate > false < / IsPrivate >

    < IsRecurring > false < / IsRecurring >

    < / Dwc-room-01 >

    < Dwc-room-01 diffgr: ID = 'Dwc-room-012' msdata:rowOrder = '1' diffgr: hasChanges = "Insert" >

    < StartTime > 06/10/2010 12:00 < / StartTime >

    < EndTime > 06/10/2010 14:00 < / EndTime >

    Busy < BusyType > < / BusyType >

    Strategic conversation < object > < / topic >

    < location / >

    < IsException > False < / IsException >

    < IsMeeting > False < / IsMeeting >

    < IsPrivate > false < / IsPrivate >

    < IsRecurring > false < / IsRecurring >

    < / Dwc-room-01 >

    < Dwc-room-01 diffgr: ID = 'Dwc-room-013' msdata:rowOrder = '2' diffgr: hasChanges = "Insert" >

    < StartTime > 06/10/2010 14:00 < / StartTime >

    < EndTime > 06/10/2010 15:00 < / EndTime >

    Busy < BusyType > < / BusyType >

    Meeting of the Board of the < object > < / topic >

    < location / >

    < IsException > False < / IsException >

    < IsMeeting > False < / IsMeeting >

    < IsPrivate > false < / IsPrivate >

    < IsRecurring > false < / IsRecurring >

    < / Dwc-room-01 >

    < / calendar >

    < / diffgr:diffgram >

    How can I go on access to information in the parent/child of the XML nodes? This is my first time with complex Web services in Coldfusion.

    SOAP means that you will need to send an item XML SOAP web service. Do something like:


    http://DWC-dreiman-w7e/WSExchangeMeetingRooms/Exchange.asmx?WSDL">
            


       
             http://schemas.xmlsoap.org/SOAP/envelope/"container ="http://www.w3.org/2001/XMLSchema"" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" > ""
                
                     http://schemas.xmlsoap.org/SOAP/encoding/"xmlns:ns ="http://your_own_namespace_url">."
                            Alexander
                          Alexandre test message 
                     

                 

             

       


           
               
               
               
               
               
           

           

    #xmlFormat (cfhttp.fileContent) #.


           
       
           
       

  • Consume a Web Service Proxy


    Hi all

    How to consume an integrated Oracle SOA Gateway Web Service exposed using Oracle JDeveloper?

    Thank you

    @P

    Well, jdev 10g is very old, so one wonders if the SOAP ws libraries delivered with him can support new web services.

    But, here's documentation: http://sqltech.cl/doc/oas10gR31/core.1013/b28764/web_services003.htm

    Dario

  • Server error in application when consuming a web service

    We are working on 33 REGS3/Bundle in PeopleTools 8.52.10 for Campus Solutions 9.0. A web service that we have been since 2008 consumption no longer works. Actually, yesterday she also did not work in our QA environment, but today it is and it works in our environments to TEST and DV.

    I have a test page that allows me to test the Web Service only, and what happens is that I put all the fields and then I submit the call of service and after 30 seconds or if I am expelled from PIA.

    The error I get is:

    PSPAL: Abort: received fatal exception

    PSAPPSRV.1872 (370) [20/05/14 16:16:49 [email protected] (FIREFOX 29,0;] [Win7) ICPanel] (0) aborted process.

    PSAPPSRV.768 (0) [20/05/14 16:17:10] (0) PeopleTools release 8.52.10 (WinX86) from. Tuxedo server is APPSRV 99/3

    PSAPPSRV.768 (0) [20/05/14 16:17:10] (0) used Cache Directory: f:\SES9_CFG_8.52\appserv\s9fix\CACHE\PSAPPSRV_3\

    PSAPPSRV.768 (0) [16: 17:14] (0) 20/05/14 server started

    I don't see anything in the Service monitor and I don't see anything in the msgLog.html or the errorLog.html. I have Google had the error PSPAL and he said this:

    ---

    "We managed to solve this problem. After all a lot of digging, we determined that the load balancing session timeout has been set to less then the timeout in PIA. Whenever users has expired because of this problem this type of error would be generated in the application log. »

    ----

    Sysadmin says that we do not have an on this server load balancer


    I'm at a loss what to try next, or how I can fix this problem.


    Tamara Foster

    Northwestern University

    This problem has been resolved by a SR. The solution is that when I re-consumed service there is a checkbox named "Build Document Messages" which must be unchecked.

    Once I unchecked it and re - consume the service once again, it worked.

    Thanks to Hazim Al-Azawi, who provided the solution for me.

    Tamara Foster

    Northwestern University

  • Calling a web service using SSL from a client that runs as a web application.

    I have the keystore containing the certificates to call a web service through a two-way ACE by using SSL. If I create a stand-alone java application and using the following parameters, I'm able to hit the web service:

    System.setProperty("javax.net.ssl.keyStore","C:/bea/JDK150~1/jre/lib/security/SFCRM.jks");
    System.setProperty ("javax.net.ssl.keyStorePassword", "changeit");
    System.setProperty("javax.net.ssl.trustStore","C:/bea/JDK150~1/jre/lib/security/SFCRM.jks");
    System.setProperty ("javax.net.ssl.trustStorePassword", "changeit");

    Also, if I use these same 4 lines of code in my web application to call the web service, I successful as well.

    The problem is, in the real world, you can't hardcode your keystore/truststore path access and password in your application like this.

    What is the right way to configure these client parameters? I do somewhere in the logical Web administration console? I tried to configure the Keystore and SSL tabs for my server using the administration console, but he can't seem to find the private key file. I get an exception that is prohibited by the web service as soon as I leave the System.setProperty lines.

    The tab of keystore, I use a Custom Keystore and Java Standard Trust store. My custom identity keystore path is C:/bea/JDK150~1/jre/lib/security/SFCRM.jks, type jks keystore, and I updated the password changeit. On the SSL tab, I've specified the alias of the private key to use for the web service as well as the password (there is no password, so I put in changeit, the keystore password).

    It does not work. I even tried using a Custom Keystore and trust stores custom and by setting the C:/bea/JDK150~1/jre/lib/security/SFCRM.jks path for both. Still does not work.

    I have a feeling that these tabs are intended for the configuration server SSL only.

    How to set the path of the keystore for customers running as web apps on my web server of logic?

    SSL-> advanced

    Use server certificates:

    "Determines whether the customer should use server certificates/keys as the identity of the client during the initialization of a connection via https."

  • Web service using the JSR-172

    Hello

    I use JSR - 172 to develop my Web Service application.

    I heard that I need to use BES for Web Service.

    Is average only BES for Web application service or y at - it another way?

    Thank you.

    Hi duksunkim,

    you don't need a BES use JSR - 172 to connect to a Web service. as long as your Web service is accessible to the public, then you can establish a connection with her.

  • Consume a Web Service

    Hey,.

    Newbie here and I was wondering if someone could point me in the right direction to write a class to connect to a Web service?  I use Blackberry JDE plugin for Eclipse.  I tried to search some forums but more is to do with ksoap plugin that I have trouble with so thought that I would write my own class.  All documents, samples, etc. would be much appreciated.

    Tried to do a search in the developers section of the BlackBerry but to be honest, I find the terrible site and can never find what I was looking for!

    Hello

    I developed a small application based on Web services, by following these steps...

    1. create a webservice and edited.

    2. using the SUN J2ME Wireless Toolkit, point the WSDL and generate high heels...

    3. After generating stubs, import classes into your project and access as simple java classes...

    Please correct me if I'm wrong...

Maybe you are looking for