Service call exception with Web service

Hello,
we changed tonight the interface of the web service I use in the web dynpro as model. So I deleted the old model and created a new model (under the same name) importing WSDL file.
The WSDL was created via XI which is the interface to a SAP R/3 system, calling in the end a RFC function module.
Now I get this error message:
<b>Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. The content with schema type [http://trw.com/uta][/wsdl:definitions/wsdl:types/xsd:schema/xsd:complexType[1]/xsd:sequence/xsd:element[1]/xsd:complexType/xsd:sequence/xsd:element/xsd:complexType/xsd:sequence/xsd:element[9]/xsd:simpleType] is not valid.</b>
The error occurs while executing wdContext.currentWebServiceElement().modelObject().execute(); command to get data from R/3 (via XI). What I can see in XI protocol is that the data comes back from the R/3 function module. But in web dynpro I get this error.
When no data are found there is no error executing command wdContext.currentWebServiceElement().modelObject().execute();
What to do in this case?
regards
Frank

Problem solved!
One of the fields in interface of the R/3 function module interface was changed from length 2 to 18. The adjustment in XI was missing and in the end the web dynpro runtime raised this error.
Nevertehless it is always very hard to find out the cause of such problems.

Similar Messages

  • Form calling Report with web.show_document caught by SSO

    A 10g form button calls a 10g report via web.show_document.
    In the dev environment it works, but in the full app server SSO is enabled and stops & prompts for a login/password.
    I'm trying to include the SSOCONN parameter in the URL. I've tried the db userid & the sso userid without success.
    Any help is much appreciated.

    How are you calling the report with Web.Show_Document (what's the URL you're passing)? The application I'm working on uses SSO and I call Reports from Forms and don't have this issue. You should just have to pass the return value of RUN_REPORT_OBJECT() in the URL along with the server name - at least that is how we do it. For example (bare in mind this is an abbreviated example):
    DECLARE
         v_rep_rtn   VARCHAR2(4000);
         v_repsvrname      VARCHAR2 (100);  /* This is a CONSTANT and used here as an example */
         v_paramlist  paramlist;
    BEGIN
         v_rep_rtn := Run_Report_Object(v_report, v_paramlist);
         Web.Show_Document('/reports/rwservlet/getjobid'||substr(v_rep_rtn,Instr (v_rep_rtn, '_', -1) + 1)||
                          '?server=' || v_repsvrname);
         v_report    := Find_Report_Object('REP1');
         Set_Report_Object_Property(v_report, report_execution_mode, batch); 
         Set_Report_Object_Property(v_report, report_comm_mode,      synchronous);
         Set_Report_Object_Property(v_report, report_destype,        CACHE);
         Set_Report_Object_Property(v_report, report_desformat,      'pdf');
         Set_Report_Object_Property(v_report, report_server,         v_repsvrname);
         v_rep_rtn := Run_Report_Object(v_report, v_paramlist);
         rep_status := Report_Object_Status(v_rep_rtn);
         WHILE rep_status IN ('RUNNING', 'OPENING_REPORT', 'ENQUEUED')     LOOP           
              rep_status := Report_Object_Status(v_rep_rtn);        
         END LOOP;   
         IF rep_status <> 'FINISHED' THEN
              msg_box('Error when running report. Status = '||rep_status);  
         else
              Web.Show_Document('/reports/rwservlet/getjobid'||substr(v_rep_rtn,Instr (v_rep_rtn, '_', -1) + 1)||
                          '?server=' || v_repsvrname); -- || '&authid=orcladmin/admin999');
         END IF;
    END;Hope this helps.
    Craig...
    -- If my response or the response of another is helpful or answers your question please mark the response accordingly. Thanks!

  • ExtractToXML exception with web services

    Guys
    I´ve got "An unexpected exception was encountered: There is an error in XML document" when execute the "Quick Start: Decoding barcoded form data using the web service API" (http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/wwhelp/wwhimpl/js/html /wwhelp.htm). Curiously the "Quick Start: Decoding barcoded form data using the Java API" (http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/wwhelp/wwhimpl/js/html /wwhelp.htm) run succesfull. Of course I am using the same LiveCycle instalation and the same pdf.
    The exception is fired into extractToXML method of BarcodedFormsServiceService class. See a some lines of the code:
    //Decode form data
    XML decodedFormData = barcodedFormsClient.decode(inPDFForm,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    CharSet.UTF_8);
    //Convert the data to XDP data
    object[] convertedData = barcodedFormsClient.extractToXML(decodedFormData,
    Delimiter.Tab,
    Delimiter.Tab,
    XMLFormat.XDP);
    Thanks
    Marcelo

    Hi Lee :
    <br />
    <br />Many thanks for your kindly reply ...
    <br />
    <br />I am not clearly sure how to check if I have specified the encoding mechanism correctly in form design ... I would like to say in a detail way that I used LC designer to design a PDF form embedded a 2D Barcode and filled in data fields in Adobe reader then print it as a paper form including 2D Barcode ... Faxed this paper form to fax server and put the fax image into a watch folder ( I also created a decode process in workbench ) , I can see the decode output data is OK ( <?xml version="1.0" encoding="utf-8?"?>
    and all the UTF-8 Chinese code is OK ) but it will be <?xml version="1.0"?>
    and UTF-8 Chinese code not OK if I used web service API to decode 2D Barcode ...
    <br />As to this problem , I think it should not be the form design problem ... and possibly is the web service API usages mistake ...
    <br />
    <br />My .Net program source as :
    <br />
    <br />using System;
    <br />using System.Collections;
    <br />using System.ComponentModel;
    <br />using System.Data;
    <br />using System.IO;
    <br />using System.Text;
    <br />using BarcodedForms.barcoded;
    <br />
    <br />namespace BarcodedForms
    <br />{
    <br /> class Decoder
    <br /> {
    <br /> public string execute(String path, String user, String password)
    <br /> {
    <br /> try
    <br /> {
    <br /> //Create a BarcodedFormsServiceService object and set authentication
    <br />values
    <br /> BarcodedFormsServiceService barcodedFormsClient = new
    <br />BarcodedFormsServiceService();
    <br /> barcodedFormsClient.Credentials = new System.Net.NetworkCredential
    <br />(user, password);
    <br /> //Reference a PDF form
    <br /> BLOB inPDFForm = new BLOB();
    <br />
    <br /> FileStream fsPDF = new FileStream(path, FileMode.Open);
    <br /> //Get the length of the file stream
    <br /> int lenPDF = (int)fsPDF.Length;
    <br /> byte[] bytePDF = new byte[lenPDF];
    <br />
    <br /> //Populate the byte array with the contents of the FileStream
    <br /> fsPDF.Read(bytePDF, 0, lenPDF);
    <br /> inPDFForm.binaryData = bytePDF;
    <br />
    <br /> //Decode form data
    <br />
    <br /> XML decodedFormData = barcodedFormsClient.decode(inPDFForm,
    <br /> true,
    <br /> false,
    <br /> false,
    <br /> false,
    <br /> false,
    <br /> false,
    <br /> false,
    <br /> false,
    <br /> CharSet.UTF_8);
    <br /> if (decodedFormData != null)
    <br /> {
    <br /> Console.WriteLine("A:"+decodedFormData.ToString());
    <br />
    <br /> return decodedFormData.document;
    <br /> }
    <br /> else return null;

  • Problems with UTL_DBWS calling out a web service.

    I´m using ORACLE 10G 10.2.0 and i ´ve downloaded the dbws-callout-utility-10R2.zip utility l´ve unziped it and launched it .
    the command loadjava -u SCOTT/passwd -r -v -f -genmissing dbwsclientws.jar dbwsclientdb102.jar ended without errors.
    then I gave grant access using the following commands
    the environment variable is
    $TMPCLASSPATH=$ORACLE_HOME/sqlj/lib/dbwsa.jar:$ORACLE_HOME/jdk/lib/dt.jar:$ORACLE_HOME/jdk/lib/tools.jar:$ORACLE_HOME/sqlj/lib/runtime12.jar:$ORACLE_HOME/sqlj/lib/translator.jar:$ORACLE_HOME/javavm/lib/aurora.zip:$ORACLE_HOME/rdbms/jlib/xdb.jar:$ORACLE_HOME/lib/xsu12.jar:$ORACLE_HOME/jlib/jndi.jar:$ORACLE_HOME/rdbms/jlib/aqapi.jar:$ORACLE_HOME/rdbms/jlib/jmscommon.jar:$ORACLE_HOME/lib/xmlparserv2.jar:$ORACLE_HOME/jlib/orai18n.jar:$ORACLE_HOME/jdbc/lib/ojdbc14.jar
    call dbms_java.grant_permission( 'SCOTT','SYS:java.lang.RuntimePermission', 'shutdownHooks', '' );
    COMMIT;
    call dbms_java.grant_permission( 'SCOTT', 'SYS:java.util.logging.LoggingPermission', 'control', '' );
    COMMIT;
    call dbms_java.grant_permission( 'SCOTT', 'SYS:java.lang.RuntimePermission', 'setFactory', '' );
    COMMIT;
    then I created the package running UTL_DBWS .SQL scripts
    when I run a test for calling out the web service I got the next error.
    ORA-29532: UNCAUGHT JAVA EXCEPTION : Java.Lang.IllegalAccessException: java.lang.ExceptionLnLn
    at line
    " function create_service_proxy(wsdl_Document_Location VARCHAR2, service_Name VARCHAR2) return SERVICE
    as language java 'oracle.jpub.runtime.dbws.DbwsProxy.createService(java.lang.String,java.lang.String) return long' "
    name 'oracle.jpub.runtime.dbws.DbwsProxy.createService(java.lang.String,java.lang.String) return long';
    Is necessary to install the jpublisher in addition for a sucessfully web service calling out?
    what goes wrong?
    Thanks for the soon answer.

    I have exactly the same problem.
    All possible grants are made.
    Running as SYS is not functioning as well.
    The same installation (the same jar's, the same utl_dbws version, the same database version) does function on two other (developers team's) servers .
    The differences are:
    Where it functions: Oracle database Enterprise edition on Windows (Windows 7, Vista)
    Where it does not function: Oracle database Stadard edition on Unix
    I have gone though a decent number of forums and other on-line resources with no success. Solutions available are to grant missing permissions. However these solutions are based on the assumption that under SYS user everything functions properly.
    In my case, this does not function even under SYS as SYSDBA.
    I will highly appreciate any recommendations!
    Best Regards,
    Michail
    P.S.
    Database: Oracle 10.2.0.1 Standard edition installed on Unix

  • Exception while calling the dotnet web service.

    I have an Axis2-1.3 web client to a dotnet web service. The client makes rapid calls to the webservice. some times it works but often the call fails with the following exception.
    org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxIOException: Connection reset
         at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
         at com.somefirm.SystemManagerStub.fromOM(SystemManagerStub.java:2193)
         at com.somefirm.SystemManagerStub.getAllPlayersSettings(SystemManagerStub.java:914)
         at com.ser.services.webclient.Client1$ObjectListener.processMessage(Client1.java:279)
         at com.ser.services.webclient.Client1$ObjectListener.onMessage(Client1.java:174)
         at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.deliverAndAcknowledge(MessageConsumerImpl.java:338)
         at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.onMessage(MessageConsumerImpl.java:273)
         at com.sun.messaging.jmq.jmsclient.SessionReader.deliver(SessionReader.java:113)
         at com.sun.messaging.jmq.jmsclient.ConsumerReader.run(ConsumerReader.java:185)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.Exception: com.ctc.wstx.exc.WstxIOException: Connection reset
         at com.somefirm.Rule$Factory.parse(Rule.java:681)
    Caused by: com.ctc.wstx.exc.WstxIOException: Connection reset
         at com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:683)
         at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1086)
         at org.apache.axiom.om.impl.llom.OMStAXWrapper.next(OMStAXWrapper.java:927)
         at com.somefirm.Rule$Factory.parse(Rule.java:643)
         ... 14 more
    Caused by: java.net.SocketException: Connection reset
         at java.net.SocketInputStream.read(SocketInputStream.java:168)
         at java.io.BufferedInputStream.read1(BufferedInputStream.java:254)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
         at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:169)
         at java.io.FilterInputStream.read(FilterInputStream.java:111)
         at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:107)
         at java.io.FilterInputStream.read(FilterInputStream.java:111)
         at java.io.PushbackInputStream.read(PushbackInputStream.java:161)
         at java.io.FilterInputStream.read(FilterInputStream.java:90)
         at com.ctc.wstx.io.UTF8Reader.loadMore(UTF8Reader.java:362)
         at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:110)
         at com.ctc.wstx.io.MergedReader.read(MergedReader.java:101)
         at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:84)
         at com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57)
         at com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1021)
         at com.ctc.wstx.sr.StreamScanner.parseLocalName2(StreamScanner.java:1771)
         at com.ctc.wstx.sr.StreamScanner.parseLocalName(StreamScanner.java:1731)
         at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2912)
         at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2846)
         at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
         ... 16 more
    Can any one please help me?

    Hi Durga,
    thanks for the reply.
    But i did not understand your solution.
    here is the code i use...
    BAPI__MATERIAL__GET__DETAIL bapi_input = new BAPI__MATERIAL__GET__DETAIL();
    bapi_input.setMATERIAL(matnr);
    try{
    BAPI__MATERIAL__GET__DETAILLocal bapi_local = this.getBAPI__MATERIAL__GET__DETAIL();
    BAPI__MATERIAL__GET__DETAIL_dot_Response res  = bapi_local.BAPI__MATERIAL__GET__DETAIL(bapi_input);
    BAPIMATDOA doa = res.getMATERIAL__GENERAL__DATA();
    BAPIRETURN ret = res.getRETURN();
    retValue = new Ret();
    retValue.setMsg(ret.getTYPE());
    }catch (Exception e) {
         e.printStackTrace();
    plz lemme know if any thing is wrong with it.
    or do i have to configure something on the server to make bapi global.
    thnks,
    Sudheer.

  • Security with Web Service calling some EJBs

    Hi everybody,
    I have implemented some web services residing in a war file deployed on my Tomcat. The web services module is a client to some EJBs deployed on my JBoss. I need to log the user in my realm on each WS request and log the user out before the WS response.
    I have implemented security on web applications with JBoss and used JAAS realms succesfully but what do I do in this case with Web Services? I mean the requests are stateless. If I use the org.jboss.security.ClientLoginModule
    won't this override the credentials of another user who is already logged in the realm?
    I have also implemented a standalone application which spawns a thread for each user request and I am wondering about the same thing. This application is a service listening for some kind of messages; on a message the application should log the user in the realm before calling an EJB and log the user after the request is completed. So it's more or less the same situation as above.
    Is this possible? I mean logging many users in the same realm in one non-web application?
    Any ideas?
    Thank you in advance!!!
    thoism

    requests are stateless, just as are requests to webapps.
    Which is hardly surprising as a web services stack is typically implemented as a web application.
    If you could log in only a single user at the same time to an EJB application, it would be rather pointless to have the application as a distributed multiuser system :)
    What you might check is whether you're allowed to log in the same user several times, if I remember correctly this can be limited in the EJB module deployment descriptors.

  • Will Service call out return an exception with an object embedded in it

    Hi,
    I have a service callout in a request pipeline.Service will throw an exception with a custom object embedded inside the exception.When i see the response $fault in the service error handler, i dont see the object.Is this something which can be done or not?if yes then guide me through it.

    Hi,
    If you invoke the service call out, and it returns a soap fault (make sure that it returns http 500), so you should be able to access the custom fault element inside $fault/con:details/con1:ReceivedFaultDetail/con1:detail
    Are you sure that your webservice is returning the fault properly?
    Are you not raising a new error after getting the response in the error handler, right?
    Regards,
    Fabio Douek.

  • Calling an External Web-Service Inside an Exception Flow

    Hi all,
    Is it a good practice in OBPM to call an External Web-Service when the process enters inside a System Exception Flow?

    Your challenge will be when you throw an exception inside the Exception handler chain. You can't catch an exception (other than in a try/catch block in the logic of an Automatic activity) inside an Exception handler chain.
    Sorry - not a good practice.
    Dan

  • Calling SAP ME web services with out reference names

    Hello,
    When calling SAP ME web services from non SAP clients, is there a way the users can by pass the reference names? Just pass SFC details instead of SFCREF.
    example:- Data collection web service expects SFCRef:- SFCBO:<SITE>,<SFC> rather than that, what we are expecting is just pass SFC name and get response from ME.
    -Adarsha.K.S

    Hi Adarsha,
    ME always accepts references only.you can do this in two ways,
    1. Form a string with respective business object + site + object and pass.(ex: SFCBO:<SITE>,<SFC>) and then pass as reference.
    2. through SOAP UI request XML. ex:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:me="http://sap.com/xi/ME" xmlns:gdt="http://sap.com/xi/SAPGlobal/GDT">
       <soapenv:Header/>
       <soapenv:Body>
         <ParametricRequest_sync xmlns="http://sap.com/xi/ME">
      <ParametricRequest>
      <SiteRef>
      <Site>SITE1</Site>
      </SiteRef>
      <me:SfcRef>
      <me:Sfc>SFC1</me:Sfc>
      </me:SfcRef>
       <DcGroupRef>
      <DcGroup>ABC</DcGroup>
      <Revision>A</Revision>
      </DcGroupRef>
      <ParametricMeasure>
      <MeasureGroup>ABC</MeasureGroup>
      <MeasureName>PARAM1</MeasureName>
      <Actual>1</Actual>
        </ParametricMeasure>
      <ResourceRef>
      <Resource>RESOURCE1</Resource>
      </ResourceRef>
      <me:OperationRef>
                    <me:Operation>OPERATION1</me:Operation>
                    <me:Revision>A</me:Revision>
            </me:OperationRef>
      </ParametricRequest>
      </ParametricRequest_sync>
       </soapenv:Body>
    </soapenv:Envelope>
    hope this helps.

  • How to use call back and user session id based conversation with web service in weblogic 6.1 sp2 ?????????

    Hi, every one:
    Here's my question of my day - >>>
    I am using weblogic 6.1 SP2 right now - running on Unix and Win 2K, and
    I got a web service up and running called Price Update web service through
    which user can pick up a price and push a deal to another web service
    called: deal service, the deal service will take the user deal and book the
    deal ( sending a JMS message to a Queue, a MD will pick up and do the work,
    then send the confirmation to another JMS Queue ), then the confirmation
    will be picked up and sent to another web service , called: User Deal
    Confirmation Service, here's the question:
    1. Since the client application is only allowed to see its own confirmed
    deals, how I can make the confirmed deal encrypted based on a server
    generated key or the session id that client application provides
    2. Now, I have 3 webservices: update, deal and confirm, each of them has a
    client.jar file available - from the client application point of view, do I
    need all these 3 client.jar, or I just need one of them ?????
    3. How can I use web service call back in wls 6.1 sp2 ?????? - in the 7.0
    beta, you can do this easily in the workshop, in the second question above,
    I think I need some how relate the confirmation to the client conversation
    id ??
    thanks a lot for the input, have a nice day.
    regards,
    mark.

    Any comments ?
    mark
    "markhu" <[email protected]> wrote in message
    news:[email protected]..
    Hi, every one:
    Here's my question of my day - >>>
    I am using weblogic 6.1 SP2 right now - running on Unix and Win 2K,and
    I got a web service up and running called Price Update web service through
    which user can pick up a price and push a deal to another web service
    called: deal service, the deal service will take the user deal and bookthe
    deal ( sending a JMS message to a Queue, a MD will pick up and do thework,
    then send the confirmation to another JMS Queue ), then the confirmation
    will be picked up and sent to another web service , called: User Deal
    Confirmation Service, here's the question:
    1. Since the client application is only allowed to see its own confirmed
    deals, how I can make the confirmed deal encrypted based on a server
    generated key or the session id that client application provides
    2. Now, I have 3 webservices: update, deal and confirm, each of them has a
    client.jar file available - from the client application point of view, doI
    need all these 3 client.jar, or I just need one of them ?????
    3. How can I use web service call back in wls 6.1 sp2 ?????? - in the 7.0
    beta, you can do this easily in the workshop, in the second questionabove,
    I think I need some how relate the confirmation to the client conversation
    id ??
    thanks a lot for the input, have a nice day.
    regards,
    mark.

  • Help needed with process to call an external web service from within ABAP

    Hello,
    I have an understanding of how I can provision web service from within SAP so that it can be consumed by external apps.
    Now, I am in need to know the, how I can call an external non-sap web service (let's say a java application) or even a public domain web service for that matter:
    Is there any lay man's guide out there? which will list following step:
    A sample ABAP program calling an external web service
    List of all the configurations needed within SAP to make this happen (calling an external web service).
    Any help will be greatly appreciated.

    Hi Matesh,
    Please use the following command in Google : site:sdn.sap.com abap consuming web service
    There is many samples of your needs on SDN.
    Like this one :
    http://wiki.sdn.sap.com/wiki/display/Snippets/WebServiceconsumerusingABAP-PROXY
    Regards, Gilles.

  • Calling DOO standard web service in ADF custom order Capture form

    Hi
    I am trying to call the standard DOO web service in my ADF form and I am using web service data control to call that service. But when I am dragging and drooping the method in my page with the parameters needed for that particular method and try to run the page. Its giving a null pointer exception. The main parameter for that method is _payload which wants an EBM to be passed to it.
    DOO is a distributed Order Orchestration which is part of SCM fusion module. In fusion we can capture the order from different places from a legacy system from an EBS or any other application and then that captured order is passed to
    DOO of fusion by calling a standard web service. But we don't have a order capture form built in ADF from where we can enter order and then pass this info to the DOO web service.
    EBM is Enterprise business message,it is an xml format file which is passed to the DOO of fusion.It accept only EBM format xml in which capture order data is dere with EBM header and the data area which contains the order information.
    The name of the method in web service which is called in j developer is SalesOrderOrchestrationService_pt_SubmitTransformAssignLaunch(__payload). payload is the parameter which accepts the EBM file.
    The sample of an EBM or the xml which is passed to this method of web service as a payload is below.
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
    <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <wsse:UsernameToken>
    <wsse:Username>ALALL</wsse:Username>
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">ssiER3#1</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
    </soap:Header>
    <soap:Body xmlns:ns1="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SalesOrder/V2">
    <ProcessSalesOrderFulfillmentEBM xmlns="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SalesOrder/V2" xmlns:coresalesorder="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SalesOrder/V2">
    <corecom:EBMHeader xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:Sender>
    <corecom:ID>LEG1</corecom:ID>
    <corecom:Application>
    <corecom:ID>CRM</corecom:ID>
    <corecom:Version>8.0</corecom:Version>
    </corecom:Application>
    <corecom:ContactName>Siebel contact</corecom:ContactName>
    <corecom:ContactEmail>[email protected]</corecom:ContactEmail>
    <corecom:ContactPhoneNumber>1234567891</corecom:ContactPhoneNumber>
    </corecom:Sender>
    </corecom:EBMHeader>
    <coresalesorder:DataArea>
    <corecom:Process responseCode="OBJECT" xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"/>
    <coresalesorder:ProcessSalesOrderFulfillment>
    <corecom:Identification xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:BusinessComponentID schemeAgencyID="AIA_01" schemeID="SALESORDER_ID_GUID">31343933343333353331383237343632</corecom:BusinessComponentID>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="OrderNumber">TEST-ALALL-2</corecom:ID>
    <corecom:ApplicationObjectKey>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="OrderId">TEST-ALALL-2</corecom:ID>
    </corecom:ApplicationObjectKey>
    </corecom:Identification>
    <coresalesorder:CurrencyCode>USD</coresalesorder:CurrencyCode>
    <coresalesorder:OrderDateTime>2013-02-04T10:58:32Z</coresalesorder:OrderDateTime>
    <coresalesorder:PartialShipmentAllowedIndicator/>
    <coresalesorder:PricingDateTime>2013-02-04T10:58:32Z</coresalesorder:PricingDateTime>
    <coresalesorder:RequestedShipDateTime/>
    <coresalesorder:FulfillmentModeCode/>
    <coresalesorder:ShipmentPriorityCode>NEXTDAY</coresalesorder:ShipmentPriorityCode>
    <coresalesorder:TypeCode>ORDER</coresalesorder:TypeCode>
    <corecom:Status xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:Code>BOOKED</corecom:Code>
    <corecom:EffectiveDateTime>2013-02-04T23:40:42</corecom:EffectiveDateTime>
    </corecom:Status>
    <corecom:CurrencyExchange xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:ConversionTypeCode/>
    <corecom:ConversionRate/>
    <corecom:ConversionRateDateTime/>
    </corecom:CurrencyExchange>
    <corecom:BusinessUnitReference xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:BusinessUnitIdentification>
    <corecom:BusinessComponentID schemeAgencyID="AIA_01" schemeID="ORGANIZATION_ID">A40A64204F0811DDBFBB6925DE4959D4</corecom:BusinessComponentID>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="InventoryOrganizationId">300000001130177</corecom:ID>
    <corecom:ApplicationObjectKey>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="OrganizationId">300000001130053</corecom:ID>
    </corecom:ApplicationObjectKey>
    <corecom:AlternateObjectKey>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="OrganizationId">300000001130053</corecom:ID>
    </corecom:AlternateObjectKey>
    </corecom:BusinessUnitIdentification>
    </corecom:BusinessUnitReference>
    <corecom:CustomerPartyReference xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:PartyIdentification>
    <corecom:BusinessComponentID schemeAgencyID="AIA_01" schemeID="CUSTOMERPARTY_PARTYID_GUID">2d383037373236333033353335383233</corecom:BusinessComponentID>
    <corecom:ApplicationObjectKey>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="AccountId">300000002605080</corecom:ID>
    </corecom:ApplicationObjectKey>
    </corecom:PartyIdentification>
    <corecom:OrganizationName/>
    <corecom:CustomerPartyAccountIdentification>
    <corecom:BusinessComponentID schemeAgencyID="AIA_01" schemeID="CUSTOMERPARTY_ACCOUNTID_GUID">2d363038363737353331313735393632</corecom:BusinessComponentID>
    <corecom:ApplicationObjectKey>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="AccountId">300000002605080</corecom:ID>
    </corecom:ApplicationObjectKey>
    </corecom:CustomerPartyAccountIdentification>
    </corecom:CustomerPartyReference>
    <coresalesorder:SalesOrderLine>
    <corecom:Identification xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:BusinessComponentID schemeAgencyID="AIA_01" schemeID="SALESORDER_LINEID_GUID">31373632363632373039363139343635</corecom:BusinessComponentID>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="LineNumber">1</corecom:ID>
    <corecom:ApplicationObjectKey>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="LineId">101</corecom:ID>
    </corecom:ApplicationObjectKey>
    <corecom:AlternateObjectKey>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="IntegrationId">88290</corecom:ID>
    </corecom:AlternateObjectKey>
    </corecom:Identification>
    <corecom:ParentSalesOrderLineIdentification xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:BusinessComponentID schemeAgencyID="AIA_01" schemeID="SALESORDER_LINEID_GUID">31373632363632373039363139343635</corecom:BusinessComponentID>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="LineNumber">1</corecom:ID>
    <corecom:ApplicationObjectKey>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="ParentLineId"/>
    </corecom:ApplicationObjectKey>
    <corecom:AlternateObjectKey>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="IntegrationId">88290</corecom:ID>
    </corecom:AlternateObjectKey>
    </corecom:ParentSalesOrderLineIdentification>
    <corecom:RootParentSalesOrderLineIdentification xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:BusinessComponentID schemeAgencyID="AIA_01" schemeID="SALESORDER_LINEID_GUID">31373632363632373039363139343635</corecom:BusinessComponentID>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="LineNumber">1</corecom:ID>
    <corecom:ApplicationObjectKey>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="RootParentLineId"/>
    </corecom:ApplicationObjectKey>
    <corecom:AlternateObjectKey>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="IntegrationId">90</corecom:ID>
    </corecom:AlternateObjectKey>
    </corecom:RootParentSalesOrderLineIdentification>
    <coresalesorder:SubstitutionAllowedIndicator/>
    <coresalesorder:SourceTypeCode/>
    <coresalesorder:PreferredGradeCode/>
    <coresalesorder:CatchWeightMeasure/>
    <corecom:EffectiveTimePeriod xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:StartDateTime/>
    <corecom:EndDateTime/>
    </corecom:EffectiveTimePeriod>
    <coresalesorder:GrossWeightMeasure>0</coresalesorder:GrossWeightMeasure>
    <coresalesorder:TypeCode>ORDER</coresalesorder:TypeCode>
    <coresalesorder:Description>Servers</coresalesorder:Description>
    <coresalesorder:OrderQuantity unitCode="EA">1</coresalesorder:OrderQuantity>
    <corecom:Status xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:Code>PENDING</corecom:Code>
    </corecom:Status>
    <corecom:ItemReference xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:ItemIdentification>
    <corecom:BusinessComponentID schemeAgencyID="AIA_01" schemeID="ITEM_ID_GUID">61</corecom:BusinessComponentID>
    <corecom:ContextID/>
    <corecom:AlternateObjectKey>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="ProductId">AS85008</corecom:ID>
    <corecom:ContextID>300000001130177</corecom:ContextID>
    </corecom:AlternateObjectKey>
    <corecom:ApplicationObjectKey>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="ProductId">AS85008</corecom:ID>
    <corecom:ContextID>300000001130177</corecom:ContextID>
    </corecom:ApplicationObjectKey>
    <corecom:CustomerItemID schemeAgencyID="SEBL_01" schemeID="ProductId"/>
    </corecom:ItemIdentification>
    <corecom:Name/>
    <corecom:TypeCode/>
    <corecom:Description>Computer</corecom:Description>
    </corecom:ItemReference>
    <coresalesorder:FulfillmentModeCode/>
    <coresalesorder:SalesOrderSchedule>
    <corecom:Identification xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:BusinessComponentID schemeAgencyID="AIA_01" schemeID="SALESORDER_SCHEDULE_GUID">31373632363632373039363139343635</corecom:BusinessComponentID>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="SalesOrderScheduleNumber">1</corecom:ID>
    <corecom:ApplicationObjectKey>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="SalesOrderScheduleId">101</corecom:ID>
    </corecom:ApplicationObjectKey>
    <corecom:AlternateObjectKey>
    <corecom:ID schemeAgencyID="SEBL_01" schemeID="IntegrationId">201</corecom:ID>
    </corecom:AlternateObjectKey>
    </corecom:Identification>
    <corecom:ShipmentSet xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:Name/>
    </corecom:ShipmentSet>
    <coresalesorder:ExtendedAmount currencyCode="USD">18762.00</coresalesorder:ExtendedAmount>
    <coresalesorder:GrossWeightMeasure>0</coresalesorder:GrossWeightMeasure>
    <coresalesorder:Description>Servers</coresalesorder:Description>
    <coresalesorder:OrderQuantity unitCode="Ea">1</coresalesorder:OrderQuantity>
    <coresalesorder:RequestedShipDateTime>2013-06-25T10:58:32Z</coresalesorder:RequestedShipDateTime>
    <coresalesorder:ScheduledShipDateTime/>
    <coresalesorder:ScheduledArrivalDateTime/>
    <coresalesorder:RequestedDeliveryDateTime/>
    <coresalesorder:LatestRequestedDeliveryDateTime/>
    <coresalesorder:LatestRequestedShipDateTime/>
    <coresalesorder:LatestRequestedShipDateTime/>
    <coresalesorder:EarliestShipDateTime/>
    <coresalesorder:ShipmentPriorityCode/>
    <coresalesorder:FulfillmentModeCode/>
    <coresalesorder:FOBPointCode/>
    <coresalesorder:ModeOfTransportCode>Air</coresalesorder:ModeOfTransportCode>
    <coresalesorder:ReasonCode/>
    <coresalesorder:ServiceLevelCode>Next day air</coresalesorder:ServiceLevelCode>
    <corecom:CarrierPartyReference xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:PartyIdentification>
    <corecom:ApplicationObjectKey>
    <corecom:ID>10010</corecom:ID>
    <corecom:ContextID>100010023895555</corecom:ContextID>
    </corecom:ApplicationObjectKey>
    </corecom:PartyIdentification>
    </corecom:CarrierPartyReference>
    <corecom:Status xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:Code>PENDING</corecom:Code>
    </corecom:Status>
    <corecom:PaymentTerm xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:Code>4</corecom:Code>
    </corecom:PaymentTerm>
    <corecom:CustomerPurchaseOrderShipmentReference xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:PurchaseOrderLineIdentification>
    <corecom:ApplicationObjectKey>
    <corecom:ID>Line # 1</corecom:ID>
    </corecom:ApplicationObjectKey>
    </corecom:PurchaseOrderLineIdentification>
    <corecom:PurchaseOrderIdentification>
    <corecom:ApplicationObjectKey>
    <corecom:ID>PO#A1</corecom:ID>
    </corecom:ApplicationObjectKey>
    </corecom:PurchaseOrderIdentification>
    </corecom:CustomerPurchaseOrderShipmentReference>
    <corecom:UnitListPrice xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:Amount currencyCode="USD">18762.00</corecom:Amount>
    </corecom:UnitListPrice>
    <corecom:UnitSalePrice xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:Amount currencyCode="USD">18762.00</corecom:Amount>
    </corecom:UnitSalePrice>
    <corecom:ShipFromPartyReference xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:LocationReference>
    <corecom:LocationIdentification>
    <corecom:ID>100010023895555</corecom:ID>
    <corecom:ApplicationObjectKey>
    <corecom:ID>300000001130184</corecom:ID>
    <corecom:ContextID/>
    </corecom:ApplicationObjectKey>
    <corecom:AlternateObjectKey>
    <corecom:ID schemeAgencyID="AIA_01" schemeID="CUSTOMERPARTY_PARTYCONTACTID_GUID">300000001201066</corecom:ID>
    </corecom:AlternateObjectKey>
    </corecom:LocationIdentification>
    </corecom:LocationReference>
    </corecom:ShipFromPartyReference>
    <coresalesorder:SalesOrderShipToParty xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:CustomerPartyAccountContactIdentification>
    <corecom:ApplicationObjectKey>
    <corecom:ID>300000003212320</corecom:ID>
    <corecom:ContextID/>
    </corecom:ApplicationObjectKey>
    </corecom:CustomerPartyAccountContactIdentification>
    <corecom:CustomerPartyAccountSiteUsageIdentification>
    <corecom:ApplicationObjectKey>
    <corecom:ID>300000003679213</corecom:ID>
    <corecom:ContextID/>
    </corecom:ApplicationObjectKey>
    </corecom:CustomerPartyAccountSiteUsageIdentification>
    <corecom:ShipToPartyReference>
    <corecom:CustomerPartyAccountIdentification>
    <corecom:ApplicationObjectKey>
    <corecom:ID>300000002605080</corecom:ID>
    <corecom:ContextID/>
    </corecom:ApplicationObjectKey>
    </corecom:CustomerPartyAccountIdentification>
    </corecom:ShipToPartyReference>
    </coresalesorder:SalesOrderShipToParty>
    <coresalesorder:SalesOrderBillToParty xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:CustomerPartyAccountContactIdentification>
    <corecom:ApplicationObjectKey>
    <corecom:ID>300000003212320</corecom:ID>
    <corecom:ContextID/>
    </corecom:ApplicationObjectKey>
    </corecom:CustomerPartyAccountContactIdentification>
    <corecom:CustomerPartyAccountSiteUsageIdentification>
    <corecom:ApplicationObjectKey>
    <corecom:ID>300000003679211</corecom:ID>
    <corecom:ContextID/>
    </corecom:ApplicationObjectKey>
    </corecom:CustomerPartyAccountSiteUsageIdentification>
    <corecom:BillToPartyReference>
    <corecom:CustomerPartyAccountIdentification>
    <corecom:ApplicationObjectKey>
    <corecom:ID>300000002605080</corecom:ID>
    <corecom:ContextID/>
    </corecom:ApplicationObjectKey>
    </corecom:CustomerPartyAccountIdentification>
    </corecom:BillToPartyReference>
    </coresalesorder:SalesOrderBillToParty>
    <coresalesorder:ShipmentInstruction/>
    <coresalesorder:PackingInstruction/>
    <coresalesorder:TotalAmount/>
    <coresalesorder:PricingDateTime/>
    <coresalesorder:PurchaseDate/>
    </coresalesorder:SalesOrderSchedule>
    </coresalesorder:SalesOrderLine>
    <coresalesorder:SalesOrderCustomerParty xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:CustomerPartyAccountContactIdentification>
    <corecom:ApplicationObjectKey>
    <corecom:ID/>
    <corecom:ContextID/>
    </corecom:ApplicationObjectKey>
    </corecom:CustomerPartyAccountContactIdentification>
    <corecom:CustomerPartyReference>
    <corecom:CustomerPartyAccountIdentification>
    <corecom:ApplicationObjectKey>
    <corecom:ID>300000002605080</corecom:ID>
    <corecom:ContextID/>
    </corecom:ApplicationObjectKey>
    </corecom:CustomerPartyAccountIdentification>
    </corecom:CustomerPartyReference>
    </coresalesorder:SalesOrderCustomerParty>
    <coresalesorder:ModeOfTransportCode/>
    <coresalesorder:ServiceLevelCode/>
    <coresalesorder:TotalAmount currencyCode="USD">70.94</coresalesorder:TotalAmount>
    <coresalesorder:EarliestShipDateTime/>
    <coresalesorder:PricingDateTime/>
    <corecom:SourceDocumentReference xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:DocumentIdentification>
    <corecom:ID>ShipOrderGenericProcess</corecom:ID>
    </corecom:DocumentIdentification>
    </corecom:SourceDocumentReference>
    </coresalesorder:ProcessSalesOrderFulfillment>
    </coresalesorder:DataArea>
    </ProcessSalesOrderFulfillmentEBM>
    </soap:Body>
    </soap:Envelope>
    Can I get a help on this and my question is in j developer when I make a web service data control and drag and drop that method in to my pages submit button with text box taking this EBM or xml as entry and when I submit this its giving a null pointer exception. How can I overcome this.
    Regards
    Satbir Singh

    Hi,
    for complex services like this the recommendation is to use a JAX-WS proxy client, put a POJO in front (wrapper) to access information and methods to expose in the application and create a POJO DC from the wrapper. This not only is more powerful and allows you to intercept data calls, it also gives you a netter option for debugging and error handling in case something fails.
    Frank

  • How to call a Https Web service client (partner link)

    Hi,
    I am trying to call a https web service and having issues with it. I have copied the server certificate into my JDeveloper truststore as well as into OC4J truststore. I have successfully deployed the application but when I initiate the process and enter input values, it throws the following exception 'Security Requirements not met - No Security header in message'
    <fault>
    - <remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    - <part name="code">
    <code>
    Server
    </code>
    </part>
    - <part name="summary">
    <summary>
    Security Requirements not met - No Security header in message
    </summary>
    </part>
    - <part name="detail">
    <detail>
    <detail>
    <ns2:exception xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.xml.wss.XWSSecurityException" note="To disable this feature, set com.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace system property to false">
    <message xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">Security Requirements not met - No Security header in message</message>
    <ns2:stackTrace xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.xml.ws.security.opt.impl.incoming.SecurityRecipient" file="SecurityRecipient.java" line="738" method="createMessage"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.xml.ws.security.opt.impl.incoming.SecurityRecipient" file="SecurityRecipient.java" line="226" method="validateMessage"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.xml.wss.provider.wsit.WSITServerAuthContext" file="WSITServerAuthContext.java" line="471" method="verifyInboundMessage"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.xml.wss.provider.wsit.WSITServerAuthContext" file="WSITServerAuthContext.java" line="297" method="validateRequest"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.xml.wss.provider.wsit.WSITServerAuthContext" file="WSITServerAuthContext.java" line="211" method="validateRequest"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.enterprise.webservice.CommonServerSecurityPipe" file="CommonServerSecurityPipe.java" line="168" method="processRequest"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.enterprise.webservice.CommonServerSecurityPipe" file="CommonServerSecurityPipe.java" line="129" method="process"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.xml.ws.api.pipe.helper.PipeAdapter" file="PipeAdapter.java" line="115" method="processRequest"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="595" method="__doRun"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="554" method="_doRun"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="539" method="doRun"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="436" method="runSync"/
    >
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.xml.ws.server.WSEndpointImpl$2" file="WSEndpointImpl.java" line="243" method="process"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit" file="HttpAdapter.java" line="444" method="handle"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.xml.ws.transport.http.HttpAdapter" file="HttpAdapter.java" line="244" method="handle"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.xml.ws.transport.http.servlet.ServletAdapter" file="ServletAdapter.java" line="135" method="handle"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.enterprise.webservice.JAXWSServlet" file="JAXWSServlet.java" line="159" method="doPost"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="738" method="service"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="831" method="service"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="411" method="servletService"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="org.apache.catalina.core.StandardWrapperValve" file="StandardWrapperValve.java" line="290" method="invoke"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="org.apache.catalina.core.StandardContextValve" file="StandardContextValve.java" line="271" method="invokeInternal"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="org.apache.catalina.core.StandardContextValve" file="StandardContextValve.java" line="202" method="invoke"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="632" method="doInvoke"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="577" method="doInvoke"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.enterprise.web.WebPipeline" file="WebPipeline.java" line="94" method="invoke"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="org.apache.catalina.core.StandardHostValve" file="StandardHostValve.java" line="206" method="invok
    e"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="632" method="doInvoke"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="577" method="doInvoke"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="571" method="invoke"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="org.apache.catalina.core.ContainerBase" file="ContainerBase.java" line="1080" method="invoke"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="org.apache.catalina.core.StandardEngineValve" file="StandardEngineValve.java" line="150" method="invoke"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="632" method="doInvoke"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="577" method="doInvoke"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="571" method="invoke"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="org.apache.catalina.core.ContainerBase" file="ContainerBase.java" line="1080" method="invoke"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="org.apache.coyote.tomcat5.CoyoteAdapter" file="CoyoteAdapter.java" line="272" method="service"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask" file="DefaultProcessorTask.java" line="637" method="invokeAdapter"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask" file="DefaultProcessorTask.java" line="568" method="doProcess"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask" file="DefaultProcessorTask.java" line="813" method="process"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.enterprise.web.connector.grizzly.DefaultReadTask" file="DefaultReadTask.java" line="341" method="executeProcessorTask"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="c
    om.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask" file="SSLReadTask.java" line="440" method="process"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask" file="SSLReadTask.java" line="228" method="doTask"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.enterprise.web.connector.grizzly.TaskBase" file="TaskBase.java" line="265" method="run"/>
    <ns2:frame xmlns:ns2="http://jax-ws.dev.java.net/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" class="com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread" file="SSLWorkerThread.java" line="106" method="run"/>
    </ns2:stackTrace>
    </ns2:exception>
    </detail>
    </detail>
    </part>
    </remoteFault>
    </fault>
    Any help will be appreciated. I am using JDeveloper 10.1.3.3.0.
    Thanks

    Hmm, based on error it looks like service provider expecting some security headers. Are you able to test from other utility soapUI or browser?
    Regards,
    Chintan

  • New to Web Services - need to call a HTTPS web service from PL/SQL

    I am new to Web Services and need to call HTTPS web service from PL/SQL program. I am using 10g Database.
    I have been reading there are 2 options -
    1. UTL_HTTP - with this package its possible to call HTTPS web services
    2. UTL_DBWS
    Questions -
    1. Is it possible to call a HTTPS web service using UTL_DBWS ? I have not been able to find any information on it.
    2. Can someone point me to UTL_HTTP and UTL_DBWS examples calling a HTTPS web service ?
    3. The HTTPS web service that I need to call needs username/password to connect - how will I incorporate this in the pl/sql code ?
    Appreciate the help.
    Cheers,
    newWebServicesUser

    Hi,
    1. UTL_DBWS not work for https from what I understand
    2. Here is a sample example:
    [http://www.oracle-base.com/articles/9i/ConsumingWebServices9i.php#]
    Be careful, you must change http/1.0 IN 1.1 inside package SOAP_API.
    Here is an example for a prime number where the SOAP message is already construct:
    CREATE OR REPLACE procedure test_ws_2
    IS
    http_req utl_http.req;
    http_resp utl_http.resp;
    request_env varchar2(32767);
    response_env varchar2(32767);
    begin
    -- Set proxy details if no direct net connection.
    UTL_HTTP.set_proxy('http://<USER>:<PASS>@10.0.2.21:8070', NULL);
    UTL_HTTP.set_persistent_conn_support(TRUE);
    request_env:='<?xml version="1.0" encoding="utf-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">'||
    '<SOAP-ENV:Body><GetPrimeNumbers xmlns="http://microsoft.com/webservices/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">'||
    '<max xsi:type="xsd:int">10</max>'||
    '</GetPrimeNumbers></SOAP-ENV:Body></SOAP-ENV:Envelope>';
    dbms_output.put_line('Length of Request:' || length(request_env));
    dbms_output.put_line ('Request: ' || request_env);
    http_req := utl_http.begin_request('http://www50.brinkster.com/vbfacileinpt/np.asmx','POST', utl_http.HTTP_VERSION_1_1);
    utl_http.set_header(http_req, 'Content-Type', 'text/xml; charset=utf-8');
    utl_http.set_header(http_req, 'Content-Length', length(request_env));
    utl_http.set_header(http_req, 'SOAPAction', '"http://microsoft.com/webservices/GetPrimeNumbers"');
    utl_http.write_text(http_req, request_env);
    dbms_output.put_line('');
    http_resp := utl_http.get_response(http_req);
    dbms_output.put_line('Response Received');
    dbms_output.put_line('--------------------------');
    dbms_output.put_line ( 'Status code: ' || http_resp.status_code );
    dbms_output.put_line ( 'Reason phrase: ' || http_resp.reason_phrase );
    utl_http.read_text(http_resp, response_env);
    dbms_output.put_line('Response: ');
    dbms_output.put_line(response_env);
    utl_http.end_response(http_resp);
    end test_ws_2;
    Otherwice for testing url, i recommand you to use that function: Re: Error using UTL_HTTP over HTTPS
    it's a verry helpful function when you have an error.
    wrote:
    When testing using UTL_HTTP, you MUST ensure that you open a new session after importing the SSL certificates into your Wallet,
    as I've learned (the hard way) that existing sessions point to the wallet contents that were present when the session was opened.
    If you don't realise/know this, it can cause a lot of additional frustration during testing, when you keep getting the ORA-29024 exception AFTER
    you've imported the SSL certificates................. ;) 3. i think you can use that after the begin_request but not sure :
    UTL_HTTP.set_authentication(r => http_req,
    username => ,
    password => ,
    scheme => ,
    for_proxy => );
    Edited by: Malebodja on Oct 22, 2009 6:53 AM
    Edited by: Malebodja on Oct 22, 2009 6:55 AM

  • Servlet calling a BAPI Web Service...

    Hi everyone,
    I downloaded the wsdl file for the BAPI_USER_GETLIST.
    I created a Deployable Proxy that points to this wsdl file.
    I created a Web modul project with a servlet.
    I also created an Enterprise application project that contains my Web modul project.
    In the Web modul project, I created  a servlet :
    Here is the code of the servlet :
    <b>try {               
         InitialContext ic = new InitialContext();                    
         BAPI_USER_GETLISTService sampleWS = (BAPI_USER_GETLISTService)ic.lookup("java:comp/env/SampleWSProxy");
         BAPI_USER_GETLISTPortType vi = sampleWS.getLogicalPort();
         BAPI_USER_GETLIST importParams  = new BAPI_USER_GETLIST();
         ArrayList list = new ArrayList();
         BAPIUSNAME structure = new BAPIUSNAME();
         structure.setUSERNAME(new String());
         structure.setFIRSTNAME(new String());
         structure.setLASTNAME(new String());
         structure.setFULLNAME(new String());
         list.add(structure);
         BAPIUSNAME[] rows = new BAPIUSNAME[list.size()];
         list.toArray(rows);
         importParams.setUSERLIST(rows);
         importParams.setWITH_USERNAME("X");
         BAPI_USER_GETLISTResponse exportParams = null;
              BAPIUSNAME[] res = vi.BAPI_USER_GETLIST(rows,"");
              for(int i=0;i<res.length;i++)
                   response.getWriter().write(res<i>.getFIRSTNAME());
    } catch(Exception e)
              response.getWriter().write("ERROR!!!" + e.getMessage());
    </b>
    The exception is :
    <b>ERROR!!!Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.</b>
    Can someone help with this security problem ?
    Is the code OK except the security problem ?
    Thanks a lot.

    Hi David,
    Before calling a BAPI, we have to make a connection to
    R/3. Try following code...
    import com.sap.mw.jco.*;
    public class TutorialConnect1 extends Object {
       JCO.Client mConnection;
       public Connect1() {
         try {
           // Change the logon information to your own system/user
           mConnection =
              JCO.createClient("001", // SAP client
                "<userid>", // userid
                "****", // password
                null, // language
                "<hostname>", // application server host name
                "00"); // system number
           mConnection.connect();
           System.out.println(mConnection.getAttributes());
           mConnection.disconnect();
        catch (Exception ex) {
          ex.printStackTrace();
          System.exit(1);
      public static void main (String args[]) {
        Connect1 app = new Connect1();
    This code from sap help, for details visit this link..
    http://help.sap.com/saphelp_erp2004/helpdata/en/bc/42e13d82fcfb34e10000000a114084/frameset.htm
    Hope this helps.
    Regards,
    Narinder Hartala

Maybe you are looking for