Calling and Publishing Web Service

Hi, I am new to Web Services in SAP. Got 2 questions regarding this:
1. How do we call a Web Service from SAP?
2. If I want to publish a Web Service in SAP ECC6, what are the required steps?
Sorry, haven't had much luck with my searches. Thanks in advance!

You can check the following url/documentation to get an idea of how the Web Services work in SAP:
[Administration of the Internet Communication Manager|http://help.sap.com/erp2005_ehp_04/helpdata/EN/b8/2a8d65be7eee4eb66067f8a33d1c8b/frameset.htm]
Also check [Internet Communication Framework|http://help.sap.com/erp2005_ehp_04/helpdata/EN/36/020d3a0154b909e10000000a114084/frameset.htm].
Nelis

Similar Messages

  • Calling BI Publisher Web Services from APEX

    Hi,
    Has anyone been able to run a BI Publisher report from APEX using the Web Service interface provided by BI Publisher?
    I have created Web Service Reference in APEX using:
    http://<host>:<port>/xmlpserver/services/PublicReportService?wsdl
    I have then created a page rendering process that calls the web service, in particular calling the runReport operation.
    When a try and run the page, I get the following error:
    "ORA-20001: soapenv:Server.userExceptionjava.lang.NullPointerException"
    Basically I want to be be able to call the BI Pub report and view the output straight away.
    Appreciate any help.
    Cheers,
    Matt

    Hello,
    I am using Jason's flex_ws_api and I have built an application that uses the BI Publisher web services to runReports. My service request looks like this (example)
    <pre>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pub="http://xmlns.oracle.com/oxp/service/PublicReportService">
    <soapenv:Header/>
    <soapenv:Body>
    <pub:runReport>
    <pub:reportRequest>
    <pub:attributeFormat>pdf</pub:attributeFormat>
    <pub:attributeLocale></pub:attributeLocale>
    <pub:attributeTemplate>New Template 1</pub:attributeTemplate>
    <pub:flattenXML>1</pub:flattenXML>
    <pub:parameterNameValues/>
    <pub:reportAbsolutePath>/~rdpatric/Training/whoami/whoami.xdo</pub:reportAbsolutePath>
    <pub:reportData></pub:reportData>
    <pub:reportDataFileName></pub:reportDataFileName>
    <pub:sizeOfDataChunkDownload>10000</pub:sizeOfDataChunkDownload>
    </pub:reportRequest>
    <pub:userID>user</pub:userID>
    <pub:password>password</pub:password>
    </pub:runReport>
    </soapenv:Body>
    </soapenv:Envelope>
    </pre>
    Obviously you would want to make a lot of these things variables...this is just an example...also sizeOfChunkDownload wasn't working for me at -1...idk...maybe it was something else...
    Also if you use the flex_ws_api...you need to specify the namespace for your xpath statement ie.' xmlns="http://..."'
    I am currently working on getting this working with the 'inSession' webservices as we have BI Pub set up SSO and APEX set up SSO so i need to be able to call the web services inSession...only problem is ssoCreateSession returns a 500 error and no xml...entered a TAR for this...sorry to digress. Use the above code and you should be able to get the runReport working.

  • Calling BI Publisher Web Service from pl/sql

    I am trying to call the BI publisher web service from pl/sql.
    I get the following response back
    <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <soapenv:Fault>
    <faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Client.NoSOAPAction</faultcode>
    <faultstring>no SOAPAction header!</faultstring>
    <detail>
    <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">my-obiee</ns2:hostname>
    </detail>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>
    The bit that concerns me is
    <faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Client.NoSOAPAction</faultcode>
    <faultstring>no SOAPAction header!</faultstring>
    The code that I used to call this is
    DECLARE
    req utl_http.req;
    resp utl_http.resp;
    value VARCHAR2(1024);
    p_data_type varchar2(4000):= 'application/soap+xml;';
    p_data_in VARCHAR2(3000) :=
    '<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pub="http://xmlns.oracle.com/oxp/service/PublicReportService">
    <soapenv:Body>
    <pub:scheduleReport xmlns:pub="http://xmlns.oracle.com/oxp/service/PublicReportService">
    <scheduleRequest>
    <deliveryRequest>
    <ftpOption>
    <ftpServerName>ino-ed-oel2.inoapps.com</ftpServerName>
    <ftpUserName>*******</ftpUserName>
    <ftpUserPassword>*****</ftpUserPassword>
    <remoteFile>/opt/UAT/db/tech_st/11.1.0/employees.pdf</remoteFile>
    </ftpOption>
    </deliveryRequest>
    <reportRequest>
    <attributeFormat>pdf</attributeFormat>
    <reportAbsolutePath>http://10.100.100.44:9704/xmlpserver/~administrator/XXXXXXX.xdo</reportAbsolutePath>
    <parameterNameValues>
    <item>
    <name>dname</name>
    <multiValuesAllowed>false</multiValuesAllowed>
    <values>
    <item>153002</item>
    </values>
    </item>
    </parameterNameValues>
    </reportRequest>
    <userJobName>BILL</userJobName>
    </scheduleRequest>
    <userID>******</userID>
    <password>******</password>
    </pub:scheduleReport>
    </soapenv:Body>
    </soapenv:Envelope>';
    BEGIN
    --utl_http.set_proxy('proxy.my-company.com', 'corp.my-company.com');
    req := utl_http.begin_request('http://10.100.100.44:9704/xmlpserver/services/PublicReportService?wsdl', 'POST');
    utl_http.set_header(req, 'content-type', p_data_type);
    utl_http.set_header(req, 'content-length', length(p_data_in));
    utl_http.set_header(req, 'User-Agent', 'Mozilla/4.0');
    utl_http.write_text(req, p_data_in);
    resp := utl_http.get_response(req);
    dbms_output.put_line ('status code: ' || resp .status_code);
    dbms_output.put_line ('reason phrase: ' || resp .reason_phrase);
    LOOP
    utl_http.read_line(resp, value, TRUE);
    dbms_output.put_line(value);
    END LOOP;
    utl_http.end_response(resp);
    EXCEPTION
    WHEN utl_http.end_of_body THEN
    utl_http.end_response(resp);
    END;
    Any help would be greatly received

    I had the same problem this morning. You need to add a line to the HTTP header to declare a value for SOAPAction.
    You can set this as an empty string, but for some reason it is required.
    Try adding this among your header declarations:
    utl_http.set_header(req, 'SOAPAction', '');

  • Is it possible to call BI Publisher Web Service through PL/SQL?

    hi all,
    i'm trying to find a way to run/schedule a report for my application. i'm using another platform for the client front-end form other than oracle but was wondering if i could possibly call the webservice using PL/SQL. PL/SQL meaning stored procedure in the database.
    thanks
    allen
    Edited by: A.Sandiego on Feb 16, 2009 11:34 AM

    hi,
    i'm trying to study on how to use the oracle bi publisher using another client application aside from oracle. the client application is custom and uses a .Net framework. unfortunately, i am not familiar with how .Net sends requests to oracle bi publisher so i was thinking that may be i can just create oracle pl/sql stored procedures that can send this requests over to bi publisher.
    p.s. when you said concurrent manager, i'm not sure if you are referring to oracle apps concurrent manager but if you are, unfortunately i won't be using oracle apps with bi publisher.
    thanks
    allen

  • EBS11i to provide Web services and receive Web services

    Our corporate direction is to have all major systems internal has to communicate to each other using web services. No more using pl/sql, dblink, FTP to communicate.
    we are using EBS 11i.
    1) Is that possible to have our EBS 11i able to receive web service call and make web service call to other systems?
    2) Will 'Oracle AS Adapter for Oracle Applications' is the solution for this? is this adapter install at EBS box to receive web service call and make web service call to other systems?

    Hi,
    WebDynPro Java/ABAP are primarily User Interface technologies. Webservices are faceless (without UI ) components that provide certain functionality. Using UI technologies like WebDynPro Java/ABAP etc, we can build a face( UI ) to the webservices.
    DnyPro itself means a screen & WebDynPro is for building web based applciations.
    Hope this resolves your question.
    Well, if you still want to use it as provider & if you have an existing web-service, the way to do it is, Right click on your WebDynPro ABAP component & select CREATE->Service Call. Build a Custom Controller or use the Component Controller to get the service using service type = Webservice proxy for your webservice. You can use this Component as a Used component in any other webdynpro components & use this to access webservices.
    Thanks,
    Phani
    Edited by: Phani Rajesh Mullapudi on Oct 8, 2009 10:41 PM

  • MDB receive a message and then call an external web service

    Title basically says it all, but I'm looking for suggestions for the best way to have a message driven bean receive a message then process it and call an external web service with the results. This seems like a straightforward problem to solve but I keep getting stuck in the deployment to weblogic when I do it my way so I'm looking for new ideas.
    Basically, I have an MDB that gets deployed to WL 10.3 and receives messages just fine. Also, I have a standalone class, that runs from the command line or IDE, that can send messages to the external web service. But when I try to bring the code from the standalone class into the MDB and get it deployed, I can't get all the dependencies to resolve.
    So, is there a proper (quick and easy) way to do this? Which wizard should I be using to get Workshop to create web service client so that I can use it in my MDB project? Any suggestions to tutorials?
    Thanks,
    Matt

    Yes BusinessService is the reference point used in OSB to call a backend provider service. So we need to configure the business service based on the external service (they can be http based, jms based, etc ..)
    In your case I am assuming it is a http based web service. So below are the steps to be done:
    1. Create a business service (if you dont have a wsdl then create it as "Any soap type" else upload the wsdl as a wsdl resource and then use it) and configure the url of the business service with the URL of the external service you want to invoke.
    2. From the proxy flow, have a service callout action and select the business service. Then configure the appropriate body and header variables.
    3. Then test the proxy service from the test console, you should be able to see the response from the external service as a part of the service callout response.
    Let me know if you still have issues.
    Thanks,
    Patrick

  • Timestamp Error when calling Encrypt and Signed Web Service

    Hello,
    I maked one Web Service in the Oracle Service Bus 10gR3 that supports Encryption and Sign, basically inserting (manually) this on WSDL Contract:
    This two namespaces:
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
    xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
    This Declarations:
    <wsp:UsingPolicy Required="true"/>
    <input>
    <wsp:Policy>
    <wsp:PolicyReference URI="policy:Encrypt.xml"/>
    </wsp:Policy>
    <soap:body use="literal" />
    </input>
    <wsp:Policy>
    <wsp:PolicyReference URI="policy:Sign.xml"/>
    </wsp:Policy>
    The above declarations was inserted in the correct points inside the WSDL Contract and the Web Service is working correctly.
    The Problem is related to Sign.xml declaration, when i insert this declaration:
    <wsp:Policy>
    <wsp:PolicyReference URI="policy:Sign.xml"/>
    </wsp:Policy>
    Then, the Web Service shows an error. Following the Request and Resonse (That shows the error):
    Request:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ger="http://www.abc.com.br/Service">
    <soapenv:Header/>
    <soapenv:Body>
    <ger:gerarHashSenha>
    <arg0>123456</arg0>
    </ger:gerarHashSenha>
    </soapenv:Body>
    </soapenv:Envelope>
    Response:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault>
    <faultcode>env:Server</faultcode>
    *<faultstring>Can not retrieve header: {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp</faultstring>*
    </env:Fault>
    </env:Body>
    </env:Envelope>
    Observation: I was invoking the WebService using the soapUI Tool.
    I Tryed change the request to bellow code, but doesn't work:
    <soapenv:Envelope xmlns:ger="http://www.abc.com.br/Service" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header>
    <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <wsu:Timestamp wsu:Id="Timestamp-447" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <wsu:Created>2010-05-27T21:40:55.667Z</wsu:Created>
    <wsu:Expires>2010-05-27T21:41:55.667Z</wsu:Expires>
    </wsu:Timestamp>
    </wsse:Security>
    </soapenv:Header>
    <soapenv:Body>
    <ger:gerarHashSenha>
    <arg0>123456</arg0>
    </ger:gerarHashSenha>
    </soapenv:Body>
    </soapenv:Envelope>
    Thanks.
    Victor Jabur.

    someone has any idea ?
    Thanks

  • Calling a WebLogic web service from a WebLogic web application

    We would like to call a WebLogic web service from WebLogic web application. The current architecture looks like:
    LoadBalancer--->iPlanet-1/iPlanet-2--->Firewall--->WebLogic-AppServer-1/WebLogic-AppServer-2
    The web application and web service are in the same WebLogic cluster. We would prefer that the web services do not get published externally.
    Does the WebLogic web application need to make a call back outside the firewall to the load balancer?
    Is there a way the web services can be called locally with load balancing?
    Can web service calls be made over the t3 protocol?
    Thanks,
    Mike

    I think one solution is to use a Java proxy to call the Web services.
    In the Java proxy you can have a method that accepts the user/pass and sets them correctly for the Web service.
    Then you expose that Java proxy as a data control (right click, create data control) - and then create a page that invokes that method.
    (For the basics of working with a POJO data control see: http://blogs.oracle.com/shay/2009/07/java_class_data_control_and_ad.html )

  • Azure ML Published Web Services - Cross Origin Requests

    It appears Azure ML published web services do not support cross-origin requests.  Simply trying to call a published Azure ML service using jQuery in Chrome, Firefox, Safari, or IE is blocked because because of the missing access control headers in the
    response.  Is there any way to publish an Azure ML web service so it can be called from a domain other than *.azureml.net?

    Hi ejasoncline,
    Yes, CORS is currently not supported for the web services, but we will make a note of this request and consider adding support.
    You can use the sample code to call the published webservice using a standalone client. The webservice help page (<score url>/help) should have sample code for C#, Python & R.
    Richie

  • How to call a secure web service via XAI Sender in CC&B

    Hi All,
                I want to a call a secure web service from CC&B through out bound message. I have configured the calling  WSDL in XAI Sender. The wevservice is secured one.I tried to call it by configuring user name and password in XAI sender context.But still i am not able to call the service.
    Can anybody help me how to over come this issue ??
    I have cretaed the same post under utilities,but i am not able reply it.
    I am using HTTPSNDR  as XAI class.
    Thanx in advance.
    Regards
    sunil

    Are you getting any errors? What type of XAI Class are you using?
    One thing I've noticed is that if you are making changes to the XAI Sender you will have to restart the environment before the changes can take effect.
    Also, if you are using RTHTTPSNDR as XAI Class you may have to include the HTTP Method - Post in the context.
    Hope this helps.
    Regards,
    Philip

  • How to call an ebs  web service using the soa gateway

    Hi All,
    I installed Oracle E-Business Suite Release 12.1.1 Media Pack v4 (32bit) and now I wanna use the soa gateway to develop and integration and consume web services. I found the soa gateway/irep and I can browse through the existing services. But how can I call one e. g. using .NET?
    For .NET, I need an valid address (URL) to the services. How can I get such an URL.
    Example:
    I opened the integration repository, browsed to:
    Order Management Suite - Order Management - Sales Order - INBOUND: Change Purchase Order XML Transaction.
    I cannot find an address at this page which can be used in MS Dev Studio to call the service.
    If I click on "Generate WSDL" or try to open the WSDL under the "Web Service - Web Service Provider" section, I get an error message:
    Error
    SOA Provider Access resulted in exception 'oracle.apps.fnd.soa.util.SOAException: SystemError: Error while sending message to server. Server returned HTTP response code: 500 for URL: http://ebs1.tesis.de:8000/webservices/SOAProvider/EbizAuth?Generate=4283&soa_ticket=HKGsq9YYnoswMKFsHijTPQ..' when attempting to perform 'GENERATE'. Please contact your System Administrator
    What exactly does this error mean?
    Many thanks,
    Konrad

    You have to make sure every step in MOS Document ID 726414.1 that is applicable to your E-Business Suite 12.1.x release is performed. Enabling ASADMIN is just one of the steps. In spite of following all the steps in this Document you continue to get the error when clicking "Generate WSDL", please log a Service Request with Oracle Support.I will check all steps again. Maybe I missed one... Thanks!

  • How to call a SAPME web service from MII

    Dears,
    How can I call a SAPME web service from MII such as PlaceFutureHold?
    By using MII, I would like to develop some logic to check some values which query from SAPME database, if the value is out of spec, it needs to send a emal to inform user ans also hold the SFC.
    Thanks!

    Hi,
    I can config the SAPME web service ItemServiceService
    I used Config Links to assign values in request ItemByBasicDataQuery_sync, such as material, revision, site.
    But get a almost empty response ItemByBasicDataResponse_sync, I wrote both web service request and response in file as  below.
    What did I missed?  Thanks!
    request:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ItemByBasicDataQuery_sync xmlns="http://sap.com/xi/ME">
    - <ItemByBasicDataQuery>
      <Item>MA1</Item>
      <Revision>A</Revision>
    - <SiteRef>
      <Site>HP</Site>
      </SiteRef>
      </ItemByBasicDataQuery>
      </ItemByBasicDataQuery_sync>
    response:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ItemByBasicDataResponse_sync xmlns="http://sap.com/xi/ME">
    - <Item>
      <Item />
      <Revision />
    - <SiteRef>
      <Site />
      </SiteRef>
      <ItemType>K</ItemType>
      <IncrementBatchNumber>S</IncrementBatchNumber>
      <LotSize>0.00</LotSize>
    - <StatusRef>
      <Status languageCode="" />
    - <SiteRef>
      <Site />
      </SiteRef>
      </StatusRef>
      <EffectivityControl>R</EffectivityControl>
      <Description languageCode="" />
      <UnitOfMeasure languageCode="" />
      <AssignSerialAtRelease>false</AssignSerialAtRelease>
    - <AssyDataTypeRef>
      <AssyDataType languageCode="" />
    - <SiteRef>
      <Site />
      </SiteRef>
      </AssyDataTypeRef>
    - <InventoryAssyDataTypeRef>
      <AssyDataType languageCode="" />
    - <SiteRef>
      <Site />
      </SiteRef>
      </InventoryAssyDataTypeRef>
    - <RemovalAssyDataTypeRef>
      <AssyDataType languageCode="" />
    - <SiteRef>
      <Site />
      </SiteRef>
      </RemovalAssyDataTypeRef>
      <CreateTrackableSFC>I</CreateTrackableSFC>
    - <BomRef>
      <Bom />
      <Revision />
      <BomType>S</BomType>
    - <SiteRef>
      <Site />
      </SiteRef>
      </BomRef>
    - <RouterRef>
    - <SiteRef>
      <Site />
      </SiteRef>
      <Router />
      <Revision />
      <RouterType>D</RouterType>
      </RouterRef>
      <CurrentRevision>true</CurrentRevision>
      <DrawingName languageCode="" />
      <EffectiveEndDate daylightSavingTimeIndicator="true" timeZoneCode="" />
      <EffectiveEndSequence unitCode="">0.00</EffectiveEndSequence>
      <EffectiveStartDate daylightSavingTimeIndicator="true" timeZoneCode="" />
      <EffectiveStartSequence unitCode="">0.00</EffectiveStartSequence>
    - <ItemGroupRef>
    - <SiteRef>
      <Site />
      </SiteRef>
      <ItemGroup languageCode="" />
      </ItemGroupRef>
    - <MaskGroupRef>
    - <SiteRef>
      <Site />
      </SiteRef>
      <MaskGroup languageCode="" />
      </MaskGroupRef>
      <MaximumUsage unitCode="">0.00</MaximumUsage>
      <Panel>true</Panel>
      <PreAssembled>true</PreAssembled>
      <QuantityMultiplier>0.00</QuantityMultiplier>
      <QuantityRestriction>W</QuantityRestriction>
    - <SelectorActivityRef>
      <Activity languageCode="" />
      </SelectorActivityRef>
      <SelectorNote languageCode="" />
    - <TransferItemGroupRef>
    - <SiteRef>
      <Site />
      </SiteRef>
      <ItemGroup languageCode="" />
      </TransferItemGroupRef>
      <UseCompFromDrawing>true</UseCompFromDrawing>
      <IsCollector>true</IsCollector>
      <CollectParentSerial>true</CollectParentSerial>
      <RequiresSerialNumberChange>true</RequiresSerialNumberChange>
    - <DocumentLinkList>
    - <DocumentLink>
    - <DocumentRef>
    - <SiteRef>
      <Site />
      </SiteRef>
      <Document />
      <ModifiedDateTime daylightSavingTimeIndicator="true" timeZoneCode="" />
      <Revision />
      </DocumentRef>
    - <DocumentContext>
    - <ItemRef>
      <Item />
      <Revision />
    - <SiteRef>
      <Site />
      </SiteRef>
      </ItemRef>
    - <RouterRef>
    - <SiteRef>
      <Site />
      </SiteRef>
      <Router />
      <Revision />
      <RouterType>D</RouterType>
      </RouterRef>
      <OperationRef />
    - <SiteRef>
      <Site />
      </SiteRef>
      </DocumentContext>
      <Sequence unitCode="">0.00</Sequence>
      </DocumentLink>
      </DocumentLinkList>
    - <ItemLocationList>
    - <ItemLocation>
      <Location languageCode="" />
      <Description languageCode="" />
      <Sequence unitCode="">0.00</Sequence>
    - <ItemRef>
      <Item />
      <Revision />
    - <SiteRef>
      <Site />
      </SiteRef>
      </ItemRef>
      </ItemLocation>
      </ItemLocationList>
    - <ItemAlternateList>
    - <ItemAlternate>
    - <AlternateItemRef>
      <Item />
      <Revision />
    - <SiteRef>
      <Site />
      </SiteRef>
      </AlternateItemRef>
      <Sequence unitCode="">0.00</Sequence>
      <Substitute>true</Substitute>
    - <ItemRef>
      <Item />
      <Revision />
    - <SiteRef>
      <Site />
      </SiteRef>
      </ItemRef>
    - <ItemGroupRef>
    - <SiteRef>
      <Site />
      </SiteRef>
      <ItemGroup languageCode="" />
      </ItemGroupRef>
      <RequiredSubstitute>true</RequiredSubstitute>
      <ValidAssembly languageCode="" />
      <ValidEnd daylightSavingTimeIndicator="true" timeZoneCode="" />
      <ValidRevision />
      <ValidStart daylightSavingTimeIndicator="true" timeZoneCode="" />
      </ItemAlternate>
      </ItemAlternateList>
    - <ItemDPMOList>
    - <ItemDPMO>
      <Opportunities unitCode="">0.00</Opportunities>
    - <OperationRef>
    - <SiteRef>
      <Site />
      </SiteRef>
      <Operation />
      <Revision />
      </OperationRef>
      <ForAllOperations>true</ForAllOperations>
      <ForAllDpmoCategories>true</ForAllDpmoCategories>
    - <DpmoCategoryRef>
    - <SiteRef>
      <Site />
      </SiteRef>
      <DpmoCategory>TERMINATION</DpmoCategory>
      </DpmoCategoryRef>
    - <ItemRef>
      <Item />
      <Revision />
    - <SiteRef>
      <Site />
      </SiteRef>
      </ItemRef>
      </ItemDPMO>
      </ItemDPMOList>
    - <TransferDataList>
    - <TransferData>
    - <TransferParent>
      <ShopOrderRef />
    - <ItemGroupRef>
    - <SiteRef>
      <Site />
      </SiteRef>
      <ItemGroup languageCode="" />
      </ItemGroupRef>
    - <ItemRef>
      <Item />
      <Revision />
    - <SiteRef>
      <Site />
      </SiteRef>
      </ItemRef>
      </TransferParent>
      <TransferType>N</TransferType>
    - <TransferSite>
      <Site />
      </TransferSite>
    - <AlarmTypeConfigRef>
    - <SiteRef>
      <Site />
      </SiteRef>
      <AlarmType languageCode="" />
      <TypeSpecific>true</TypeSpecific>
      </AlarmTypeConfigRef>
      <DefaultChoice>true</DefaultChoice>
    - <ExportTemplateRef>
      <TransferDataType>S</TransferDataType>
    - <SiteRef>
      <Site />
      </SiteRef>
      <TemplateName />
      </ExportTemplateRef>
      <ReceiveRequired>true</ReceiveRequired>
      </TransferData>
      </TransferDataList>
    - <ItemShopOrderTypeList>
    - <ItemShopOrderType>
    - <ShopOrderTypeRef>
    - <SiteRef>
      <Site />
      </SiteRef>
      <OrderType />
      </ShopOrderTypeRef>
    - <RouterRef>
    - <SiteRef>
      <Site />
      </SiteRef>
      <Router />
      <Revision />
      <RouterType>D</RouterType>
      </RouterRef>
    - <ItemRef>
      <Item />
      <Revision />
    - <SiteRef>
      <Site />
      </SiteRef>
      </ItemRef>
      </ItemShopOrderType>
      </ItemShopOrderTypeList>
    - <CustomFieldList>
    - <CustomField>
      <Attribute languageCode="" />
      <Value languageCode="" />
      <Description languageCode="" />
      </CustomField>
      </CustomFieldList>
      <CreatedDateTime daylightSavingTimeIndicator="true" timeZoneCode="" />
      <ModifiedDateTime daylightSavingTimeIndicator="true" timeZoneCode="" />
      <HoldId unitCode="">0.00</HoldId>
      <LastReleasedDate daylightSavingTimeIndicator="true" timeZoneCode="" />
    - <OriginalStatusRef>
      <Status languageCode="" />
    - <SiteRef>
      <Site />
      </SiteRef>
      </OriginalStatusRef>
      </Item>
      </ItemByBasicDataResponse_sync>

  • 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

Maybe you are looking for