Invoke webservice to retieve data

Hi All,
We have a requirement to download data from SAP system to our Oracle DB. Issue is we will not be able to connect to SAP DB. They weill provide a webservice and we should use that by passing parameters.
My query is, how can we do that in Oracle DB or Forms . I want to write a Program unit and call web service whenever required.
Any Idea in this regard will be of great help.
Thanks

Is this somehow related to oracle forms?
Anyway; there is a lot of informations about your requirement already available: Let me google that for you
cheers

Similar Messages

  • ADF forms based on BPM human tasks - Invoking webservices/view objects.

    Hi All,
    Is anyone aware of whether the following is a valid implementation that has been carried out before.
    1. ADF forms based on BPM 11G human tasks.
    2.The ADF forms invoke webservices via Webservice data controls. It is pertinent to note that the webservice bring back complex data types. We've tried writing a few forms, resulting in data benig brought back, but not being able to print them to the screen.
    3. The ADF forms also use View Object based on sql to bring back tables of data. If view objects are embedded within the forms, the applciation gives rise to a null pointer exception.
    Considering the form will be invoked via a BPM worklist entry, is there a setting or configuration we should consider before hand. Is this feasible, is there knowledge of this being done commercially.
    Any examples or information regarding the same will be immensely helpful.
    Thanks and Regards,
    Preethi.
    NB : I have posted this in the BPM forum as well as I feel it is relevant to both BPM and ADF.

    Hi Joonas.
    Plese let me explain me better for your understanding
    A big summary for what I meant it's the following:
    1- In the procces you made, when you add the HT activity, you have to implement it, this means declare the input(s) parameters you want. This implementation create the .task file.
    2- Create an application, and projects as HT you have. Each poject are based on the .task file, and automatically create a Data Control (for each project based on a .task) with all you need.
    This w'll be an empty application, so you can customize it all you want. The task selected should have all the parameters previously defined. Those parameters can change if you want.
    2- Create a page(s) in the task flow for the task implementation. You can even split the the payload of the task in differents pages, create your custom pages and any logic you need.
    3- An important aspect is how to match these application with the HT implemented in the process. It's possible, it's a configuration en the Enterprise Manager.
    4- Deploy your application
    All these are explain in the book I mentioned
    Th book you can find it here:
    https://blogs.oracle.com/soacommunity/entry/oracle_soa_suite_11g_handbook_1
    Regards Dariel.
    PS: Please, let me know if you need more details.

  • Error while invoking webservice

    i am trying to use webservice (by using data->import
    wsdl). I am sending request (invoking web method by using classes
    generated after imporing wsdl).
    Here is the code i m trying.
    public function getCompanyInfoById(companyId:String):void
    var wsNML:CampaignSettings =new CampaignSettings();
    wsNML.addgetCompanyInfoByIdEventListener(getCompanyInfo);
    //wsNML.addCampaignSettingsFaultEventListener(faultHandler);
    wsNML.getCompanyInfoById(companyId);
    private function
    getCompanyInfo(e:GetCompanyInfoByIdResultEvent):void
    var companyInfo:ArrayOfCampaignSettingsCDO=new
    ArrayOfCampaignSettingsCDO();
    companyInfo=e.result;
    companyInfo.removeItemAt(0);
    //logic continues....
    the same code is working fine for my other web methods(for my
    another web services). Also the same is working fine when i use the
    same web service in some other project. but when i use this
    webservice in my original project, its not working. its throwing
    the following error:
    "ReferenceError: Error #1065: Variable
    ArrayOfCampaignSettingsCDO is not defined.
    at global/flash.utils::getDefinitionByName()
    at
    mx.rpc.xml::SchemaTypeRegistry/getCollectionClass()[E:\dev\flex_3_beta3\sdk\frameworks\pr ojects\rpc\src\mx\rpc\xml\SchemaTypeRegistry.as:106]
    at
    mx.rpc.xml::XMLDecoder/createContent()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\sr c\mx\rpc\xml\XMLDecoder.as:1830]
    at
    mx.rpc.xml::XMLDecoder/decode()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rp c\xml\XMLDecoder.as:168]
    at
    mx.rpc.soap::SOAPDecoder/decodeBody()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src \mx\rpc\soap\SOAPDecoder.as:439]
    at
    mx.rpc.soap::SOAPDecoder/decodeEnvelope()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc \src\mx\rpc\soap\SOAPDecoder.as:291]
    at
    mx.rpc.soap::SOAPDecoder/decodeResponse()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc \src\mx\rpc\soap\SOAPDecoder.as:223]
    at
    generated.webservices::BaseCampaignSettings/processResult()[D:\Projects\NML2008\wsdl\gene rated\webservices\BaseCampaignSettings.as:411]
    at
    mx.rpc::AsyncResponder/result()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rp c\AsyncResponder.as:73]
    at
    mx.rpc::AsyncRequest/acknowledge()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx \rpc\AsyncRequest.as:81]
    at
    DirectHTTPMessageResponder/completeHandler()[E:\dev\flex_3_beta3\sdk\frameworks\projects\ rpc\src\mx\messaging\channels\DirectHTTPChannel.as:387]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()"
    Please help me out.

    hi kcell, thanks 4 ur help.
    here is the wsdl:
    <?xml version="1.0"
    encoding="UTF-8"?><wsdl:definitions xmlns:wsdl="
    http://schemas.xmlsoap.org/wsdl/"
    xmlns:http="
    http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:mime="
    http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:s="
    http://www.w3.org/2001/XMLSchema"
    xmlns:soap="
    http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:soap12="
    http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:soapenc="
    http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:tm="
    http://microsoft.com/wsdl/mime/textMatching/"
    xmlns:tns="
    http://tempuri.org/"
    targetNamespace="">
    http://tempuri.org/">
    <wsdl:types>
    <s:schema elementFormDefault="qualified"
    targetNamespace="">
    http://tempuri.org/">
    <s:element name="GetCompanyInfoById">
    <s:complexType>
    <s:sequence>
    <s:element maxOccurs="1" minOccurs="0" name="companyId"
    type="s:string"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetCompanyInfoByIdResponse">
    <s:complexType>
    <s:sequence>
    <s:element maxOccurs="1" minOccurs="0"
    name="GetCompanyInfoByIdResult"
    type="tns:ArrayOfCampaignSettingsCDO"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:complexType name="ArrayOfCampaignSettingsCDO">
    <s:sequence>
    <s:element maxOccurs="unbounded" minOccurs="0"
    name="CampaignSettingsCDO" nillable="true"
    type="tns:CampaignSettingsCDO"/>
    </s:sequence>
    </s:complexType>
    <s:complexType name="CampaignSettingsCDO">
    <s:sequence>
    <s:element maxOccurs="1" minOccurs="0" name="companyId"
    type="s:string"/>
    <s:element maxOccurs="1" minOccurs="0" name="companyName"
    type="s:string"/>
    <s:element maxOccurs="1" minOccurs="0"
    name="companyAddress1" type="s:string"/>
    <s:element maxOccurs="1" minOccurs="0"
    name="companyAddress2" type="s:string"/>
    <s:element maxOccurs="1" minOccurs="0" name="companyCity"
    type="s:string"/>
    <s:element maxOccurs="1" minOccurs="0" name="companyState"
    type="s:string"/>
    <s:element maxOccurs="1" minOccurs="0" name="companyZip"
    type="s:string"/>
    <s:element maxOccurs="1" minOccurs="0"
    name="companyWebAddress" type="s:string"/>
    <s:element maxOccurs="1" minOccurs="0" name="userId"
    type="s:string"/>
    <s:element maxOccurs="1" minOccurs="0" name="salutation"
    type="s:string"/>
    <s:element maxOccurs="1" minOccurs="0" name="firstName"
    type="s:string"/>
    <s:element maxOccurs="1" minOccurs="0" name="lastName"
    type="s:string"/>
    <s:element maxOccurs="1" minOccurs="0" name="title"
    type="s:string"/>
    <s:element maxOccurs="1" minOccurs="0" name="workPhone"
    type="s:string"/>
    <s:element maxOccurs="1" minOccurs="0" name="email"
    type="s:string"/>
    <s:element maxOccurs="1" minOccurs="0" name="password"
    type="s:string"/>
    </s:sequence>
    </s:complexType>
    </wsdl:types>
    <wsdl:message name="GetCompanyInfoByIdSoapIn">
    <wsdl:part element="tns:GetCompanyInfoById"
    name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="GetCompanyInfoByIdSoapOut">
    <wsdl:part element="tns:GetCompanyInfoByIdResponse"
    name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:operation name="GetCompanyInfoById">
    <wsdl:input message="tns:GetCompanyInfoByIdSoapIn">
    </wsdl:input>
    <wsdl:output message="tns:GetCompanyInfoByIdSoapOut">
    </wsdl:output>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="CampaignSettingsSoap12"
    type="tns:CampaignSettingsSoap">
    <soap12:binding transport="">
    http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="GetCompanyInfoById">
    <soap12:operation soapAction="
    http://tempuri.org/GetCompanyInfoById"
    style="document"/>
    <wsdl:input>
    <soap12:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap12:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetCompanyInfoById">
    <soap:operation soapAction="
    http://tempuri.org/GetCompanyInfoById"
    style="document"/>
    <wsdl:input>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="CampaignSettings">
    <wsdl:port binding="tns:CampaignSettingsSoap12"
    name="CampaignSettingsSoap12">
    <soap12:address location="">
    http://localhost/NML/CampaignSettings.asmx"/>
    </wsdl:port>
    <wsdl:port binding="tns:CampaignSettingsSoap"
    name="CampaignSettingsSoap">
    <soap:address location="">
    http://localhost/NML/CampaignSettings.asmx"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    regarding "Another question: why you use a temp
    CampaignSettings variable in the getCompanyInfoById function?
    Doesn´t it make sense to have the CampaignSettings
    variable as member variable of the class (or as global member of
    the app if you didn't use classes )" :
    i am using the object of my webservice (object of the class
    generated after importing WSDL) to invoke the webmethod.
    Is there any other way for calling the webmethods.??
    Also, the same code is working fine if i import the same
    webservice in some other project, while its throwing the error in
    this project.
    Regards,
    Shaveta

  • PowerShell module invokes webservices differently

    Hi!
    I'm running an invoke-webservice within a Microsoft.Windows.PowerShellPropertyBagTriggerOnlyProbe module but I don't get any forms back (forms.count is 0).
    When I run the same script natively in PowerShell I get forms back to my session (forms.count is 2).
    Basically it is something like this:
    $urls=”http://www.bing.com/search?q=powershell"
    $result=Invoke-WebRequest $urls
    $result.Forms.count
     I'm running the workflow with a RunAs account within SCOM.
    Any idea?
    Thanks, Patrick
    http://www.syliance.com | http://www.systemcenterrocks.com

    Interactive I get the following data within my $result :
    StatusCode : 200
    StatusDescription : OK
    Content : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    RawContent : HTTP/1.1 200 OK
    Transfer-Encoding: chunked
    Cache-Control: private, max-age=0
    Content-Type: text/html; charset=utf-8
    Expires: Wed, 07 Aug 2013 11:55:23 GMT
    P3P: CP="NON UNI COM NAV STA LOC CURa DE...
    Forms : {sb_form}
    Headers : {[Transfer-Encoding, chunked], [Cache-Control, private, max-age=0], [Content-Type, text/html;
    charset=utf-8], [Expires, Wed, 07 Aug 2013 11:55:23 GMT]...}
    Images : {@{innerHTML=; innerText=; outerHTML=<IMG id=id_p title="" class="pic si" style="DISPLAY: none"
    ...InputFields : {@{innerHTML=; innerText=; outerHTML=<INPUT
    onfocus="document.getElementById('sw_b').style.borderColor='#3366bb';"
    onblur="document.getElementById('sw_b').style.borderColor = '#999';" id=sb_form_q
    title="Suchbegriff eingeben" class=sw_qbox maxLength=1000 value=powershell name=q>; outerText=;
    Links : {@{innerHTML=<DIV class=sw_hdr_img>
    <DIV id=sw_im></DIV></DIV>; innerText=; outerHTML=<A title="Heutige Startseite durchsuchen"
    ParsedHtml : mshtml.HTMLDocumentClass
    RawContentLength : 48173
    Running as a SCOM workflow I get the following data back:
    StatusCode : 200
    StatusDescription : OK
    Content : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-t
    ransitional.dtd"><html lang="de" xml:lang="de"
    xmlns="http://www.w3.org/1999/xhtml" xmlns:Web="h...
    RawContent : HTTP/1.1 200 OK
    Transfer-Encoding: chunked
    Cache-Control: private, max-age=0
    Content-Type: text/html; charset=utf-8
    Expires: Wed, 07 Aug 2013 11:58:37 GMT
    P3P: CP="NON UNI COM NAV STA LOC CURa DE...
    Forms :
    Headers : {[Transfer-Encoding, chunked], [Cache-Control, private,
    max-age=0], [Content-Type, text/html; charset=utf-8],
    [Expires, Wed, 07 Aug 2013 11:58:37 GMT]...}
    Images :
    InputFields :
    Links :
    ParsedHtml :
    RawContentLength : 48173
    So: same RawContentLength but missing a lot of data (Forms, InputFields, ...).
    Very confusing...
    Any hints out there?
    Thanks, Patrick
    http://www.syliance.com | http://www.systemcenterrocks.com

  • Error while invoking webservice throu https

    Error while invoking webservice throu https://
    can any one help me on this topic please:
    CODE:
    SOAPConnection con = null;
              try{
                   String endpoint = "https://wks3089639:4565/Service.serviceagent/PortTypeEndpoint1";
                   //String endpoint = "http://wks3101999:5539/Service.serviceagent/PortTypeEndpoint1";
                   //String endpoint      = args[0];
                   //String soapAction      = args[1];
                   System.out.println("javax.net.ssl.keyStore-->"+System.getProperty("javax.net.ssl.trustStore"));
                   System.setProperty("javax.net.ssl.trustStore","C:/Documents and Settings/1067555/Desktop/certificates/cer.jks");
                   System.setProperty("javax.net.ssl.keyStore","C:/Documents and Settings/1067555/Desktop/certificates/server.keystore");
                   System.setProperty("javax.net.ssl.trustStorePassword","password");
                   System.setProperty("javax.net.ssl.keyStorePassword","password");
                   // use Sun's reference implementation of a URL handler for the     "https" URL protocol type.
                   //System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
                   // dynamically register sun's ssl provider
                   System.setProperty("security.provider","com.sun.net.ssl.internal.ssl.Provider");
                   //Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
                   System.out.println("javax.net.ssl.trustStore-->"+System.getProperty("javax.net.ssl.trustStore"));
                   System.setProperty("javax.net.debug","ssl,handshake");
                   SOAPConnectionFactory connectionFactory = SOAPConnectionFactory.newInstance();
                   con = connectionFactory.createConnection();
                   MessageFactory messageFactory      = MessageFactory.newInstance();
                   SOAPMessage message                = messageFactory.createMessage();
                   SOAPPart soapPart                     = message.getSOAPPart();
         SOAPEnvelope envelope                = soapPart.getEnvelope();
         SOAPBody body                          = envelope.getBody();
    //     MimeHeaders headers = message.getMimeHeaders();
    //     headers.addHeader("SOAPAction", soapAction);
    //     headers.addHeader("SOAPAction", "/Service.serviceagent/PortTypeEndpoint1/Operation");
    //     headers.addHeader("Content-Type","text/xml");
    //     headers.addHeader("charset","utf-8");
         MimeHeaders headers = message.getMimeHeaders();
         headers.addHeader("SOAPAction", "/Service.serviceagent/PortTypeEndpoint1/sampleOperation");
         headers.addHeader("Content-Type","text/xml");
         headers.addHeader("charset","utf-8");
         StreamSource inputmsg = new StreamSource(new FileInputStream("client.wsdl"));
         soapPart.setContent(inputmsg);
         System.out.println("REQUEST:\n");
         message.writeTo(System.out);
         System.out.println();
         message.saveChanges();
         SOAPMessage reply = con.call(message, new URL(endpoint));
         System.out.println("RESPONSE:\n"+reply.toString());
         System.out.println("Header:::"+reply.getSOAPHeader());
         System.out.println("Body:::"+reply.getSOAPBody());
         System.out.println("RESPONSE:\n");
         TransformerFactory transformerFactory      = TransformerFactory.newInstance();
         Transformer transformer                     = transformerFactory.newTransformer();
         //Extract the content of the reply
         Source responseContent                          = reply.getSOAPPart().getContent();
         //Set the output for the transformation
         StreamResult result = new StreamResult(System.out);
         transformer.transform(responseContent, result);
         System.out.println();
              }catch(Exception e){
                   e.printStackTrace();
              finally{
                   con.close();
    Exception:
    10-Nov-2008 11:55:04 com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection post
    SEVERE: SAAJ0009: Message send failed
    com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:127)
         at com.Sample.main(Sample.java:91)
    Caused by: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:121)
         ... 1 more
    Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:325)
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:150)
         ... 3 more
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
         at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:282)
         ... 4 more
    CAUSE:
    java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:121)
         at com.Sample.main(Sample.java:91)
    Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:325)
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:150)
         ... 3 more
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
         at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:282)
         ... 4 more
    CAUSE:
    java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:121)
         at com.Sample.main(Sample.java:91)
    Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:325)
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:150)
         ... 3 more
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
         at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:282)
         ... 4 more
    Edited by: javausers07 on Nov 10, 2008 11:58 AM

    I hope the sun forum can help for me. Lets see

  • Exception while invoking webservice

    I have created a client jar containing stub and port classe, deployment descritor
    and deployed webservices. Webservices are working fine but while invoking webservice
    with client code i am getting Exception, can somebody please help me to resolve
    it ?
    [2004-02-09 02:21:53,917] [ExecuteThread: '14' for queue: 'weblogic.kernel.Default']
    ERROR [testclient.TestServlet] Error in call object:SOAP Fault:javax.xml.rpc.soap.SOAPFaultException:
    Exception during processing: java.io.IOException: Received a response from url:
    http://localhost:7001/ipc-ws which did not have a valid SOAP content-type: text/html.
    (see Fault Detail for stacktrace)
    Detail:
    <detail>
    <bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">
    </bea_fault:stacktrace>java.io.IOException: Received a response from url: http://localhost:7001/ipc-ws
    which did not have a valid SOAP content-type: text/html.
    at weblogic.webservice.binding.http11.Http11ClientBinding.handleErrorResponse(Http11ClientBinding.java:156)
    at weblogic.webservice.binding.http11.Http11ClientBinding.receive(Http11ClientBinding.java:220)
    at weblogic.webservice.core.handler.ClientHandler.handleResponse(ClientHandler.java:63)
    at weblogic.webservice.core.HandlerChainImpl.handleResponse(HandlerChainImpl.java:184)
    at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:214)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:131)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:439)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:425)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:275)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:250)
    at com.hp.ws.testclient.CreateConfigPort_Stub.createConfig(CreateConfigPort_Stub.java:26)
    at com.hp.ws.testclient.TestServlet.callService(TestServlet.java:267)
    at com.hp.ws.testclient.TestServlet.doPost(TestServlet.java:143)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305
    Thanks
    Ratnakar

    Hello,
    There is not enough information in your post to determine an exact
    cause. When you say the web services are working fine, do you mean from
    the home/test page? What version of WLS? Is this with a static or
    dynamic client. I'm a bit concerned about what seem to be stubs showing
    up on the traceback that would indicate another SOAP stack (com.hp.ws)
    could you tell us a bit more about your configuration.
    Thanks,
    Bruce
    Ratnakar Katre wrote:
    >
    I have created a client jar containing stub and port classe, deployment descritor
    and deployed webservices. Webservices are working fine but while invoking webservice
    with client code i am getting Exception, can somebody please help me to resolve
    it ?
    [2004-02-09 02:21:53,917] [ExecuteThread: '14' for queue: 'weblogic.kernel.Default']
    ERROR [testclient.TestServlet] Error in call object:SOAP Fault:javax.xml.rpc.soap.SOAPFaultException:
    Exception during processing: java.io.IOException: Received a response from url:
    http://localhost:7001/ipc-ws which did not have a valid SOAP content-type: text/html.
    (see Fault Detail for stacktrace)
    Detail:
    <detail>
    <bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">
    </bea_fault:stacktrace>java.io.IOException: Received a response from url: http://localhost:7001/ipc-ws
    which did not have a valid SOAP content-type: text/html.
    at weblogic.webservice.binding.http11.Http11ClientBinding.handleErrorResponse(Http11ClientBinding.java:156)
    at weblogic.webservice.binding.http11.Http11ClientBinding.receive(Http11ClientBinding.java:220)
    at weblogic.webservice.core.handler.ClientHandler.handleResponse(ClientHandler.java:63)
    at weblogic.webservice.core.HandlerChainImpl.handleResponse(HandlerChainImpl.java:184)
    at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:214)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:131)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:439)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:425)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:275)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:250)
    at com.hp.ws.testclient.CreateConfigPort_Stub.createConfig(CreateConfigPort_Stub.java:26)
    at com.hp.ws.testclient.TestServlet.callService(TestServlet.java:267)
    at com.hp.ws.testclient.TestServlet.doPost(TestServlet.java:143)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305
    Thanks
    Ratnakar

  • Errors while invoking webservice

    I am getting below error while invoking webservice in jdev:
    <env:Envelope
      xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
      <env:Fault>
       <faultcode>env:Server</faultcode>
       <faultstring>Failure in SDOSerializer.deserialize.</faultstring>
      </env:Fault>
    </env:Body>
    </env:Envelope>
    I can see only below log in jdev server log :
    <oracle.adf.model> <SDOHelper> <findHelperContext> <SDOHelperContext identified by {http://xmlns.oracle.com/apps/projects/projectManagement/common/projectServiceV2/}ProjectService has not been defined yet!>
    <oracle.adf.model> <SDOHelper> <findHelperContext> <SDOHelperContext identified by {http://xmlns.oracle.com/apps/projects/projectManagement/common/projectServiceV2/}ProjectService has not been defined yet!>
    could anybody help me to understand what gone wrong ?

    This thread might help you:
    Problems invoke Web Service

  • Error while invoking webservice in bipublisher 10g

    Hi All,
    When we are invoking webservice from bi publisher 10g we are getting the following error.
    Error: java.util.arraylist
    Can any one help us.
    Thanks.

    Is there any log you can paste here
    you should have the logs in
    ~BIPublisherTrialEdition\bip\server\domains\bipdomain\servers\bipserver\logs

  • Error while invoking Webservice API ItemService_GetItemInformation

    The following error is encountered while invoking Webservice API "ItemService_GetItemInformation"
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <faultcode>wsse:InvalidSecurity</faultcode>
    <faultstring>Missing &lt;wsse:Security> in SOAP Header</faultstring>
    <faultactor/>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    Same is repeated even after passing
    RESPONSIBILITY_NAME => Inventory
    RESPONSIBILITY_APPL_NAME => INV
    SECURITY_GROUP_NAME => Standard
    NLS_LANGUAGE => AMERICAN
    Any pointer for the root cause of this error & how to resolve this?
    Thanks In Advance!
    priyadarshi

    Hi ..
    The error meaning: you need input the user_name and password for the SOAPHeader

  • Problem while invoking webservice-method in client-code

    Hi,
    I had written webservice-client-code (using uddi-ext.jar, as i am using uddi for publishing webservices.) which is invoking webservice method successfully with complex datatypes(both for return type and input paramters).
    But while calling following webservice-method from my client-code:
    public ComplexType[] getData(String[] p_str1, String[] p_str2)
    it is throwing exception
    The Exception is:
    [ERROR] - 27 Mar 2007 12:34:38 -failed to invoke operation 'getData' due to an error in the soap layer (SAAJ); nested exception is: Message[failed to deserialize xml:weblogic.xml.schema.binding.DeserializationException: mapping lookup failure. type=['java:language_builtins.lang']:ArrayOfString schema context=TypedSchemaContext{javaType=[Ljava.lang.String;}]
    Although I had done correct registration of mapping of ArrayOfString in client-code:
    registry = m_Service.getTypeMappingRegistry();
                   m_TypeMapping = registry.getTypeMapping(SOAPConstants.URI_NS_SOAP_ENCODING );
                   m_TypeMapping.register( ArrayOfStringHolder.class,
    new QName( "java:language_builtins.lang", "ArrayOfString" ),
    new ArrayOfStringCodec(),
    new ArrayOfStringCodec());
    But some how it doesnt works.
    I had searched on google as well but didnt find any reliable solutions.
    Please advice.
    Edited by meetmrdeepak at 03/27/2007 2:43 AM
    Edited by meetmrdeepak at 03/27/2007 2:45 AM

    See item A.1 of the [RMI FAQ|http://java.sun.com/j2se/1.5.0/docs/guide/rmi/faq.html].

  • Looking for generic WebService for update date & time in my C# WinForm program

    hi
    looking for generic WebService for update date & time in my C# WinForm program
    thanks

    hi
    looking for generic WebService for update date & time in my C# WinForm program
    thanks
    Hello,
    I agree with Cor that since this forum is for issues related to winodws form controls and features, but this issue is mainly related to the webservice which is working for updating time, you could consider posting this issue on other site, or you could
    also consider creating your webservice by checking this document
    Your first C# Web Service.
    If you get any issues when create your webservice, you could post this issue in the following forum.
    http://forums.asp.net/28.aspx/1?WCF+ASMX+and+other+Web+Services
    Regards.
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • ProcessRemoteException when invoke  webservice from Oracle E-Business Suite

    Hi,when i invoke webservice from Oracle E-Business Suite R12.1 – Integrated SOA Gateway’s
    I get following exception.
    fuego.soaptype.SoapExecutionException
    at fuego.soaptype.SoapCall.processRemoteException(SoapCall.java\:750)
    at fuego.soaptype.SoapCall.invoke(SoapCall.java:238)
    at fuego.soaptype.SoapObject.invoke(SoapObject.java:309)
    at fuego.lang.Invokeable.invokeImpl(Invokeable.java:234)
    at fuego.lang.Invokeable.invokeDynamic(Invokeable.java:188)
    at xobject.Fuego__AutoGen__Screenflows__.__SubmitReport.initializeReport(__SubmitReport.xcdl:30)
    at.......
    this webserivce has been deployed and granted. and I can test it with soapUI.
    my code:
    configuration as Configuration = Configuration("FND_PROGRAM_Service");
    endpoint as HttpEndpoint=HttpEndpoint("http://ep066020.bscdev.net:8002/webservices/SOAProvider/plsql/fnd_program/");
    endpoint.setUsername("sysadmin");
    endpoint.setPassword("sysadmin");
    configuration.endpoint = endpoint;
    usernameTokenPlain as UsernameTokenProfileSecurityPolicy=UsernameTokenProfileSecurityPolicy("sysadmin","sysadmin");
    usernameTokenPlain.usernameTokenPasswordType = UsernameTokenPasswordType.PASSWORD_TEXT;
    policies as SecurityPolicy[];
    policies[]=usernameTokenPlain;
    configuration.securityPolicies = policies;
    service as FND_PROGRAM_Service= FND_PROGRAM_Service(configuration)
    sh as SoaHeader = SoaHeader();
    sh.namespace="";
    sh.responsibilityApplName="SYSADMIN"
    sh.responsibilityName="System Administrator"
    sh.securityGroupName="STANDARD"
    sh.nlsLanguage="AMERICAN"
    pam as InputParameters9 = InputParameters9()
    result as OutputParameters
    pam.application="SQLGL";
    pam.executableshortname="ENABLED"
    do
    logMessage "333333333333333";
    executableexists service
    using header = sh,
    body = pam
    returning result = bodyOutput (throw exception)
    logMessage "2222222222222";
    reportSF.description=String.valueOf(result.fndprogram24executableexists)
    reportSF.comments="11111111111";
    on ex as Any
         logMessage "aaaaaaaaaaaa"+ex
    end

    I've encounter something similar to you're problem and it was resolved by manually creating the object using the web service constructor and inputting user credentials. If you manually instantiate your web service wrapper object and set a a security profile token, it may solve your problem. You can also pass in the web service endPoint URL, if you want.
    Fuego.WebServices.UsernameTokenProfileSecurityPolicy
    I'm not sure how to use UsernameTokenProfileSecurityPolicy, but try something like this:
    Fuego.WebServices.UsernameTokenProfileSecurityPolicy policy = UsernameTokenProfileSecurityPolicy();
    policy.username ="mark";
    policy.password = "password";
    tws = YourWebService();
    response = tws.callWebServiceMethod();
    I realize the security profile isn't tied anywhere to the web service, but try it anyway.
    There is also some fields on the webservice, tws.setRequestHeader() that may allow you to set the username and password on the request, but this doesn't make sense to me. It shouldn't be that hard.
    Edited by: Mark Peterson on Mar 19, 2010 9:14 AM
    Edited by: Mark Peterson on Mar 19, 2010 9:20 AM

  • Invoke Webservice error

    I am having an issue after I setup webservice, I am able to retrive column on the Datstore but when I test it to invoke webservice I am getting following error. I have checked the service, All the methods are available for invoking webservice. Any clue on this...........?
    Just pasting part of error message..................
    com.sunopsis.wsinvocation.SnpsWSInvocationException: java.lang.NoSuchMethodError: org.apache.axis2.AxisFault.makeFault(Ljava/lang/Exception;)Lorg/apache/axis2/AxisFault;
    at com.sunopsis.wsinvocation.client.a.a.d.requestReply(d.java)
    at com.sunopsis.graphical.wsclient.f.b(f.java)
    at com.sunopsis.graphical.tools.utils.swingworker.v.call(v.java)
    at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
    at com.sunopsis.graphical.tools.utils.swingworker.l.run(l.java)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.NoSuchMethodError: org.apache.axis2.AxisFault.makeFault(Ljava/lang/Exception;)Lorg/apache/axis2/AxisFault;
    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
    Caused by:
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
    faultSubcode:
    faultString: java.lang.NoSuchMethodError: org.apache.axis2.AxisFault.makeFault(Ljava/lang/Exception;)Lorg/apache/axis2/AxisFault;
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace:java.lang.NoSuchMethodError: org.apache.axis2.AxisFault.makeFault(Ljava/lang/Exception;)Lorg/apache/axis2/AxisFault;
    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)

    Yes ofcourse I choose a method. I am suspecting if we need any patches for OAS to get this thing fix. We are running OAS 10.3 and Axis2 1.3. Did any one use this combination and got this issue before??

  • Issues invoking webservice hosted on Aqualogic Proxy service.

    Hi,
    This is my first "Hello world..." forum experience.
    I'm facing problems while invoking webservice hosted on Aqualogic Proxy Service in my local machine;
    I'm using Weblogic 10 (Oracle Service Bus 10gR3 ).
    1) I've used weblogic's "weblogic.wsee.tools.anttasks.ClientGenTask" to generate java code from wsdl file
    2) Created a stand-alone client
    code fragment :
    try{
    ServiceActivationNoticationService notificationService = new ServiceActivationNoticationService_Impl("http://localhost:7001/ServiceActivationInterface/FroxyServices/ServiceNotification".concat("?WSDL"));
    ServiceActivationNoticationPortType notificationServicePortType = notificationService.getServiceNotification();
    Empty response = ((ServiceActivationNoticationPortType_Stub)notificationServicePortType).serviceNotification(notification);
    catch(){
    System.err.println(ex.toString());
    logger.debug("Service Notification Exception...", ex);
    throw new Exception("Service Notification Exception...", ex);
    Comiling successfully but when I run I'm getting the follwing exceptions:
    Caused by: java.lang.NullPointerException
         at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType$ElementQNameProperty.access$000(ByNameRuntimeBindingType.java:314)
         at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType.getMatchingElementProperty(ByNameRuntimeBindingType.java:253)
         at com.bea.staxb.runtime.internal.ByNameUnmarshaller.findMatchingElementProperty(ByNameUnmarshaller.java:71)
         at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents(ByNameUnmarshaller.java:43)
         at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshal(AttributeUnmarshaller.java:38)
         at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:174)
         at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalType(UnmarshalResult.java:212)
         at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalElement(UnmarshalResult.java:227)
         at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshalElement(UnmarshallerImpl.java:166)
         at weblogic.wsee.bind.runtime.internal.LiteralDeserializerContext.unmarshalElement(LiteralDeserializerContext.java:87)
         at weblogic.wsee.bind.runtime.internal.BaseDeserializerContext.internalDeserializeElement(BaseDeserializerContext.java:180)
         at weblogic.wsee.bind.runtime.internal.BaseDeserializerContext.deserializeElement(BaseDeserializerContext.java:115)
         at weblogic.wsee.codec.soap11.SoapDecoder.decodePart(SoapDecoder.java:490)
         at weblogic.wsee.codec.soap11.SoapDecoder.decodeReturn(SoapDecoder.java:400)
         at weblogic.wsee.codec.soap11.SoapDecoder.decodeParts(SoapDecoder.java:170)
         at weblogic.wsee.codec.soap11.SoapDecoder.decode(SoapDecoder.java:121)
         at weblogic.wsee.codec.soap11.SoapCodec.decode(SoapCodec.java:175)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.decodeOutput(CodecHandler.java:126)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.decode(CodecHandler.java:103)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.handleResponse(CodecHandler.java:80)
         at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:236)
         at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:220)
         at weblogic.wsee.ws.dispatch.client.ClientDispatcher.handleResponse(ClientDispatcher.java:159)
         at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:114)
         at weblogic.wsee.ws.WsStub.invoke(WsStub.java:89)
         at weblogic.wsee.jaxrpc.StubImpl._invoke(StubImpl.java:331)
         ... 3 more
    But If I create a soap message manully and invoke the same webservice, it works fine.
    Please reply soon....
    Thanks in Advance.

    Hi James,
    Thanks for your reply, and directing me to appropriate threads.
    The problem is with one of wsdl element.
    My requirement is an empty element:
    so I've created
    <element name="empty">
    <xsd:complexType>
    <xsd:sequence/>
    </xsd:complexType>
    </element>
    when I use this element for output type as below...
    <wsdl:input message="service" type="xxx:service"/>
    <wsdl:output message="emptyResponse" type="xxx:empty"/>
    weblogic clientgen code is able invoke service successfully but the response is causing problem.
    But when I changed empty element to
    <element name="empty">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="abcd" type="xsd:string" minOccurs="0"/> I'll not use this at all.
    </xsd:sequence>
    </xsd:complexType>
    </element>
    Everything is working fine now in this case. ************************************************************************
    But I'm not sure what's wrong with
    <element name="empty">
    <xsd:complexType>
    <xsd:sequence/>
    </xsd:complexType>
    </element> because specifications says this is the way to define an empty element type.
    What's wrong with this....
    Thanks.... to Hello world! Response....

  • Exception while invoking webservices using Dynamic client without WSDL

    Hi All,
    I am getting the below exception while invoking webservices using Dynamic client without WSDL.
    javax.xml.rpc.soap.SOAPFaultException: Exception during processing: java.lang.RuntimeException: Missing license file for: WebLogic Platform 8.1 (see Fault Detail for stacktrace)
    at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:558)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
    at atthi.webservice.TestWSWithWSDL.main(TestWSWithWSDL.java:41)
    Exception in thread "main"
    Please find my source file below....
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.Call;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.namespace.QName;
    public class TestWSWithoutWSDL {
    public static void main(String[] args) {
    try{
    String address = "<WSDL's SOAP Address>";
    String namespaceURI = "<namespaceURI>";
    String serviceName = "<serviceName>";
    String portName = "<portName>";
    String ENCODING_STYLE_PROPERTY = "javax.xml.rpc.encodingstyle.namespace.uri";
    String URI_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
    String agencyID = "AGN00533";
    String fileName = "testWS";
    String xmlString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><web-services>Sample Application</web-services>";
    System.setProperty( "javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");
    ServiceFactory factory = ServiceFactory.newInstance();
    * Create an instance of the Service with the given service QName
    Service service = factory.createService(new QName(serviceName));
    Call call = service.createCall(new QName(portName));
    call.setTargetEndpointAddress(address);
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
    call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
    QName stringQName = new QName("http://www.w3.org/2001/XMLSchema", "string");
    * Set operation name to invoke.
    call.setOperationName(new QName(namespaceURI,"<operationName>"));
    * Add parameters definitions in the call object.
    call.addParameter("string", stringQName, String.class, ParameterMode.IN);
    call.addParameter("string0", stringQName, String.class, ParameterMode.IN);
    call.addParameter("string1", stringQName, String.class, ParameterMode.IN);
    * Set definition of the return type.
    call.setReturnType(stringQName);
    Object[] inParams = new Object[3];
    inParams[0] = new String(agencyID);
    inParams[1] = new String(fileName);
    inParams[2] = new String(xmlString);
    String result = ((String)call.invoke(inParams)).toString();
    System.out.println(result);
    }catch (Exception e){
    e.printStackTrace();
    Please give your suggestions for the above said exception....
    Thanks & Regards....

    Hi All,
    I am getting the below exception while invoking webservices using Dynamic client without WSDL.
    javax.xml.rpc.soap.SOAPFaultException: Exception during processing: java.lang.RuntimeException: Missing license file for: WebLogic Platform 8.1 (see Fault Detail for stacktrace)
    at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:558)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
    at atthi.webservice.TestWSWithWSDL.main(TestWSWithWSDL.java:41)
    Exception in thread "main"
    Please find my source file below....
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.Call;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.namespace.QName;
    public class TestWSWithoutWSDL {
    public static void main(String[] args) {
    try{
    String address = "<WSDL's SOAP Address>";
    String namespaceURI = "<namespaceURI>";
    String serviceName = "<serviceName>";
    String portName = "<portName>";
    String ENCODING_STYLE_PROPERTY = "javax.xml.rpc.encodingstyle.namespace.uri";
    String URI_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
    String agencyID = "AGN00533";
    String fileName = "testWS";
    String xmlString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><web-services>Sample Application</web-services>";
    System.setProperty( "javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");
    ServiceFactory factory = ServiceFactory.newInstance();
    * Create an instance of the Service with the given service QName
    Service service = factory.createService(new QName(serviceName));
    Call call = service.createCall(new QName(portName));
    call.setTargetEndpointAddress(address);
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
    call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
    QName stringQName = new QName("http://www.w3.org/2001/XMLSchema", "string");
    * Set operation name to invoke.
    call.setOperationName(new QName(namespaceURI,"<operationName>"));
    * Add parameters definitions in the call object.
    call.addParameter("string", stringQName, String.class, ParameterMode.IN);
    call.addParameter("string0", stringQName, String.class, ParameterMode.IN);
    call.addParameter("string1", stringQName, String.class, ParameterMode.IN);
    * Set definition of the return type.
    call.setReturnType(stringQName);
    Object[] inParams = new Object[3];
    inParams[0] = new String(agencyID);
    inParams[1] = new String(fileName);
    inParams[2] = new String(xmlString);
    String result = ((String)call.invoke(inParams)).toString();
    System.out.println(result);
    }catch (Exception e){
    e.printStackTrace();
    Please give your suggestions for the above said exception....
    Thanks & Regards....

Maybe you are looking for

  • Can I get a refund using my order number instead of a Verizon phone number?

    I had Straight Talk for ages and I hated it. I finally had the funds to switch and buy a phone. Verizon had the best coverage and price, so I bought an iPhone 4S online. While I was buying it I paid for a prepaid plan. I also filled out the necessary

  • Pny StorEDGE 64gb sd card not reading

    I bought a PNY StorEDGE 64gb sd card to have removeable storage but my Mac book pro wont read it. My Macbook is only 3 months old.

  • [Solved]Gnome settings problem

    Hi all. I have some strange problems with Gnome 3.2, it is hard to explain but these screenshots should: http://bildr.no/image/1012613.jpeg http://bildr.no/image/1012614.jpeg In the first picture you can see that something that is selected by default

  • How to update a database from an MS Excel

    Hi, I'm developing an application that would let the user view and edit the data from the database through Excel. My problem is, I need to update the database after the data was modified from MS Excel that doesn't need manual intervention. Thanks, ma

  • Sony 8mm into iMovie

    I have loads of old 8mm tapes to get into my imac but cannot find a good device to do it with in the uk market. I have found the Pinnacle Dazzle or something like that but it dont get a good right up. I have also seen just leads, can the imac do all