How to consume XML Gateway WS from a remote Oracle DB (10g)?

Hi,
I'm currently looking into consuming EBS web services, particularly the XML Gateway service from a remote database. For ease of use, I'm also using an Oracle 10g database.
It seems there are several ways to skin a cat though. Hope you can help.
1) Is it possible to use UTL_HTTP for this? If yes, can you please explain in detail as I have been trying to do this the past few days without success. Note, I was able to consume other web service examples, though. What url & SOAP action should I use?
2) I built a proxy client stub using JDeveloper and deployed it to the DB. However my plsql procedure doesn't execute the java class. Any thoughts?
Thanks,
Charina

Hi Charina,
Regarding option 1), the url for the service endpoint and the value for the SOAPaction HTTP heaader are advertized in the WSDL for your service.
The value of the utl is provided by the 'location' attribute for the soap:address element within a port.
The value for the SOAPaction header is provided by the 'soapAction' attribute for the soap:operation element within a wsdl:binding/wsdl:operation element.
You can have multiple ports and bindings advertized in a single WSDL. If this is the case for you, you need to make sure that the operation you are tryin to invoke is from the SOAP binding; the one with the transport attribute set to "http://schemas.xmlsoap.org/soap/http".
Here is a WSDL snippet for illustration purposes:
  <binding name="CalculatePricePort" type="tns:CalculatePricePort">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
                  style="document"></soap:binding>
    <operation name="CalculatePrice">
      <soap:operation soapAction="document/http://siebel.com/OrderManagement/Quote/PSP:CalculatePrice"></soap:operation>
      <input>
        <soap:body use="literal"></soap:body>
      </input>
      <output>
        <soap:body use="literal"></soap:body>
      </output>
    </operation>
  </binding>
  <service name="CalculatePriceWS">
    <port binding="tns:CalculatePricePort" name="CalculatePricePort">
      <soap:address location="http://130.35.90.150/eai_enu/start.swe?SWEExtSource=SecureWebService&amp;SWEExtCmd=Execute&amp;UserName=XXXX&amp;Password=XXXX"></soap:address>
    </port>
  </service>Note that I took an example where both attributes are not using common format.
To try to get this working faster, you may want to try to use an existing JAVA (or .Net) client and compare the working payload with what is generated by the UTL_HTTP package. It's usually faster to work of a working sample that to double guess why it's not working.
Hope it helps,
-Eric

Similar Messages

  • Problem in consuming XML/SOAP based BizTalk webservice in Oracle Forms 10g

    I have a web service that i need to consume in Oracle Forms. The web service is SOAP based service and was generated using Microsoft Biztalk Server. The service accepts a complex xml message as its request and returns a similar xml message as response.
    I want to consume this service from within my Oracle Forms Application (Forms version 10.1.2.0.2).
    I followed the guidelines from http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html and added a few java classes were generated from WSDL link for me but this is where I lost it.
    From the generated code, i see that i might have to create a vector which consists of the complete hierarchy of xml schema that is expected by the service. But i need some advice in how to do so.
    Has anybody worked on similar services before? Please share your experience or any helpful resources.
    Thanks.

    I have a web service that i need to consume in Oracle Forms. The web service is SOAP based service and was generated using Microsoft Biztalk Server. The service accepts a complex xml message as its request and returns a similar xml message as response.
    I want to consume this service from within my Oracle Forms Application (Forms version 10.1.2.0.2).
    I followed the guidelines from http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html and added a few java classes were generated from WSDL link for me but this is where I lost it.
    From the generated code, i see that i might have to create a vector which consists of the complete hierarchy of xml schema that is expected by the service. But i need some advice in how to do so.
    Has anybody worked on similar services before? Please share your experience or any helpful resources.
    Thanks.

  • How to identify XML gateway patch version in R12 ?

    Hi,
    how to identify XML gateway patch version in R12.1.3? Which is the latest version available for R12.1.3
    Regards

    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @ecxver.sql
    ECX_UTL_XSLT_DIR Profile :
    /usr/tmp
    ECX_OAG_LOGICALID Profile :
    ECX_SERVER_TIMEZONE Profile:
    ECX_SYS_ADMIN_EMAIL Profile:
    ECX_XML_VALIDATE_FLAG Profile: Y
    ECX_XML_MAXIMUM_SIZE Profile : 2000000
    utl_file_dir :
    /usr/tmp, /usr/tmp,
    /busdata/dfop/nca1/db/tech_st/11.1.0/appsutil/outbound/dfopnca1_oncerpd4,
    /usr/tmp, /busdata/dfop/nca1/db/tech_st/11.1.0/ccr/state
    Oracle XML Developers Kit 11.1.0.7.0 - Production
    Parser Version Ok
    XML Gateway Status Summary
    XML Parser Version OK
    All ECX Objects Valid? OK
    All XML Parser Objects Valid? OK
    OTA Running? N/A*
    Total Messages on Outbound Queue 0
    OTA Msgs on Outbound Queue 0
    Others Msgs on Outbound Queue 0
    Messages on Inbound Queue 0
    *Please use the ECXOTAPing.html as described in the Testing Oracle Transport
    Agent section of the User's Guide
    End of Summary
    Service Component Control Event Subscriptions
    EVENT_NAME RULE_FUNCTION OUT_AGENT STATUS
    oracle.apps.ecx.inbound.message.process [email protected]. MICHELIN.COM Not Defined ENABLED
    oracle.apps.ecx.inbound.message.process [email protected] N.COM Not Defined ENABLED
    oracle.apps.ecx.inbound.message.receive [email protected] N.COM Not Defined ENABLED
    oracle.apps.ecx.inbound.message.receive CLN_XMLG_EVENT_HANDLER_PKG.CLN_XMLG_SET [email protected] Not Defined ENABLED
    NC.MICHELIN.COM
    oracle.apps.ecx.inbound.message.receive CLN_XMLG_EVENT_HANDLER_PKG.CLN_XMLG_EVE [email protected] Not Defined ENABLED
    .MICHELIN.COM
    oracle.apps.ecx.inbound.message.receive CLN_XMLG_EVENT_HANDLER_PKG.CLN_XMLG_EVE [email protected] Not Defined ENABLED
    .MICHELIN.COM
    oracle.apps.ecx.inbound.message.receive [email protected]. MICHELIN.COM Not Defined ENABLED
    oracle.apps.ecx.processing.message.callb [email protected] LIN.COM Not Defined ENABLED
    ack
    oracle.apps.ecx.processing.message.error CLN_XMLG_EVENT_HANDLER_PKG.CLN_XMLG_PRO CESSING_ERROR_F@DFOPN Not Defined ENABLED
    CA1.ONC.MICHELIN.COM
    oracle.apps.ecx.processing.message.error [email protected] LIN.COM Not Defined ENABLED
    oracle.apps.ecx.processing.message.error [email protected] LIN.COM Not Defined ENABLED
    oracle.apps.ecx.processing.message.error [email protected] N.COM Not Defined ENABLED
    oracle.apps.ecx.processing.notification. [email protected] LIN.COM Not Defined ENABLED
    send
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Regards

  • How to identiy XML Gateway version installed

    How to identiy XML Gateway version installed

    Hi,
    Run ecxver.sql script -- See these docs for details:
    Note: 167630.1 - Oracle XML Troubleshooting Script
    Note: 337428.1 - XML Gateway Setup Testing and Diagnostics
    Note: 167629.1 - Oracle XML Gateway Troubleshooting Scripts
    Regards,
    Hussein

  • How can i convert data from DBF to oracle database 10g?

    Sir,
    How can i convert data from DBF to oracle database 10g?

    I assume you at least know how to dump the contents of foxpro dbf file into CSV format.
    Regarding SQL*Loader, hope this demo makes it a bit clear to you...
    http://www.princeton.edu/~storacle/sqlloader_demo.shtml
    I agree that it is an old web page (references Oracle 8.0.5) but basics remain the same.
    If it is still unclear to you after referring above link, then get an Oracle consultant.

  • How to load date field from a remote Oracle DB with DB Connect

    Hi,
    Does any one have experience extracting Date field from a remote Oracle database through DB Connect to BW?  I am experiencing data format issue.  The extracted data shows '04-Oct-0' for '10/4/05'.  It works fine if I create a view in Oracle database to preformat the data to '20051004'.  But, I am not allowed to create view in Remote DB.
    Any suggestion is very appreciated.
    Regards,
    Frank

    You have to change it to a varchar2 field. YYYYMMDD. I do not know of any other option.

  • How to Parse XML data directly from context variables in webdynpro

    Hello,
       I have two requirements:
    1) I have a context variable which has string value.
       I want to write the this value into a flat file.
       How do I do this in WebDynpro.
       Any sample code for this.
    2) In Webdynpro, I want to parse and process the XML data directly from a string context variable which
       has the value in XML format.
       How do I achieve this. Any pointers or sample codes for this.
    Thanks and Regards,
    Anupama.

    Anupama,
    Here is some link which talks about unpacking xml and converting to HTML.
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/eb/3dfb402eb5f76fe10000000a1550b0/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/eb/3dfb402eb5f76fe10000000a1550b0/content.htm</a>
    I have done something like this in portal development and not in webdynpro.But in principle it should work very where.

  • How to use XML Gateway for Order Import and Item Import?

    Hello XML gurus,
    I'm working in Oracle Apps area and do not have much knowledge on XML or web programming. Currently in my project there is a need to use Order Import and Item Import using interface tables and XML Gateway. The items/orders information will be in the XML format from Siebel system, there will be no custom processing...just process the data as-is.
    I've read the XML Gateway user guide but did not understand much.
    Anyone with similar implementation experience?
    I'm looking for a step-by-step guide on what needs to be done in Oracle Apps side to populate the interface tables from XML file and call the import APIs?
    Your inputs, suggestions, tips are highly appreciated. :)
    Thx,
    Jags

    I have a similar requirement to automate the order import and was looking at XML Gateway. Please update if you were able to find more information.
    - Ayyappa

  • XML Gateway outbound from BPEL

    We are trying to get the data from EBS using BPEL Process through XML Gateway outbound.
    We created XML Gateway DTD and Map and successfully posting to ECX_OUTBOUND and other sysyems(WebMethods).
    Now we are trying access it from BPEL. We created Receive activity to get the XML Payload from ECX_OUTBOUND. But Process is struck in receive activity. Receive activity is waiting for response.
    I am not sure we may be doing some thing wrong. Please help us.

    I have created screen-shots to show that.
    Receive
    Variable
    Port
    I have also tried adding header variable to receive activity in xml but it's not working
    <receive name="Receive_1" createInstance="yes"
    variable="Receive_1_Dequeue_InputVariable_1"
    partnerLink="ECX_OUTBOUND" portType="ns1:Dequeue_ptt"
    operation="Dequeue" bpelx:headerVariable="Variable_1"/>
    Thanks for your help
    Pawel
    What's more: When I change port type operation input message to Header_msg i gets the message to my Variable_1 of type Header_msg but data loaded to it is in format of this PROCESS_PO_007_msg
    I've found in documentation:
    Supporting for Normalized Message Properties
    To effectively set applications context values required in a BPEL process or to populate
    mandatory header variables for XML Gateway inbound transactions to complete
    successfully, Adapter for Oracle Applications provides a flexible mechanism that allows
    each context value and header variable to be set and passed in the adapter user interface
    directly through the Invoke activity. This message normalization feature not only
    provides a flexible solution on header support, but also simplifies the design-time tasks
    without using an Assign activity to pass header values.
    Setting Message Properties for Applications Context
    But there is nothing about Outbound transactions....
    Edited by: pawel.fidelus on 2009-12-18 02:59
    Edited by: pawel.fidelus on 2009-12-18 03:37

  • How to get XML format output from Hyperion Financial Reporting

    Dears,
    We are using Hyperion Financial Reporting to replace FSG in fusion. I found that Hyperion FR report can be exported to html/excel/pdf format. However, I would like the report to export to xml format.It means I only need the xml data source.
    Anyone who knows how to get the xml format output from Hyperion FR, is there any avaiable API?

    I think if you export the report, you will be able to open the .des file in Notepad/Wordpad and see xml content.

  • How to take XML data source from URL?

    Hi,
    I creating application which need to download some data from any web page. This page is creating via XSL (as stylesheet) .This XSL
    process some XML "data source" and generate HTML page. I wanna ask if exist some way how to take this XML "data source"? If i used
    URL and take InputStream I everytime obtain full generated HTML, JavaScript page - compiled by web browser. But if i look to "page
    source" of this page in web browser i see just that XML data source which i need to take (only at start of this xml is way to xsl
    style sheet).
    But this problem i have only at my required page.If i tried to take another page with similar structure code, it was succesful.
    Here is link : LINK
    Why i dont have permision take clear xml from this page?What is so special?
    Exist some way how to take this XML without generated html code?
    Thank you.

    I apologize for my english. I try explain my problem again:
    At this url [http://eu.wowarmory.com/item-info.xml?i=33677] is web page. If you look at "page source", web page is create via XML and XSLT. I need load this data source. I used DOMParser for that:
    URL url = new URL("http://eu.wowarmory.com/item-info.xml?i=33677");
    DOMParser parser = new DOMParser();
    parser.parse(url);
    XMLDocument doc = parser.getDocument();I get exception : Exception in thread "main" oracle.xml.parser.v2.XMLParserException: Expected '?>' instead of 'EOF'
    If i used it at another page (for example [http://www.w3schools.com/XML/simplexsl.xml|http://www.w3schools.com/XML/simplexsl.xml] ), compile was successful and i can work with this XMLDocument and etc.
    I try load it by InputStreamReader too:
    URL url = new URL("http://eu.wowarmory.com/item-info.xml?i=33677");
    try {
        BufferedReader br = new BufferedReader(new InputStreamReader(url.openStream());
        String line;
        while ((line = br.readLine() != null) {
            System.out.println(line);
    } catch (IOException e) {
        e.printStackTrace
    }i get only compiled HTML code by web browser. At second page i load successfuly XML data - not compiled by browser.
    Is possible to take original xml page source from this page? And what diferent is between this pages?
    Thank you and i hope, you can translate this post without headache :-) If it will be necessary, i can more specify some details.

  • How to generate XML Publisher report from PLSQL Stored Procedure in APPS

    Hi,
    I have concurrent program of type PLSQL Stored procedure.I need to generate XML Publisher report from the same.I have changed the output of the concurrent program as "XML" but when I tried running it,the XML tags are not generated.Due to this I am unable to create the template.Its a urgent issue.
    Please help me out .
    Thanks in advance.
    Kaveri

    Hi Kaveri
    Sadly there is nothing magic about that output field. The only program type that you can flip it to XML and then magically get XML is for Oracle Reports. For plsql you will need to recode the plsql to generate XML rather than text that you have now.
    You have some options, best option first:
    1. Move the sql to a data template - check the user guide and blog for help or
    2. Use SQL XML or XMLGEN (not great for large datasets) or
    3. Use dbms_output.put_line and write the XML file manually - not performant at all
    Regards, Tim

  • How to run a batch file from within an Oracle 9i Form?

    Hi, I would like to execute a batch file from within an oracle form - I'm assuming there's some PLSQL command I can use? I am not allowed to use any third party libraries, and I'm hoping I can get away without having to progam any C or Java to do it. I don't want to run my java program from my form, but my lecturer is insisting on it.
    Can anyone help?
    Thanx
    Adam

    Can u give me an example
    I need to run a batch files that does a series of step doing dir ( in 3 different folders)
    after each one it shows on screen with a pause & user press enter
    can this work out ?

  • Using Oracle ODBC Gateway connecting to a remote Oracle database

    Oracle 11gR2
    RHEL 6.4
    Has anyone use the Oracle ODBC Gateway to connect to another Oracle database?  Any issues with that configuration?  Where do I get the ODBC drivers for Linux?
    (I know, "why not use a dblink?" -- well that would be against company security policies)

    Hi,
       From the Oracle point of view we support using DG4ODBC for Oracle to Oracle connections. However, we have not actually tested it as DG4ODBC is primarily designed for access to non-Oracle databases.
    How DG4ODBC will work between Oracle databases depends on the ODBC driver and what that supports. You will need an ODBC Oracle driver which you can get from various suppliers including Oracle but also vendors such as DataDirect, Easysoft etc. You could try a Google search.
    You say you do not want to use database links but that is how DG4ODBC is used, You cannot do -
    sqlplus user/password@dg4odbc_oracle
    Once Dg4ODBC is setup and configured as in this note - if you are using Linux 64-bit -
    How to Configure DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX Itanium) to Connect to Non-Oracle Databases Post Install (Doc ID 561033.1)
    then in the Oracle database you create a database link and select from tables in the other Oracle database -
    select * from table@dg4odbc_db_link ;
    Regards,
    Mike

  • Connection issue from sqldeveloper to Oracle Database 10g

    I have installed Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 on my machine having platform Windows vista
    Now i have install sqldeveloper but i am not able to connect to oracle databse.
    GETTING AN ERROR Network adapter could not make it connection
    after that i have tried to check listners.ora through tnsping orcl getting following result
    C:\Users\Kailas>tnsping orcl
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on 08-APR-2
    011 00:20:05
    Copyright (c) 1997, 2006, Oracle. All rights reserved.
    Used parameter files:
    E:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = kailasLa
    pi)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
    TNS-12541: TNS:no listener
    Please let me know What should i do i want to start my practice sessions on sqldeveloper
    I am new in Oracle pl/sql development
    Please guide me on this.........................

    SQLDeveloper 3.0 production is supplied with the thin driver 11.2.0.2
    it needs 11.2.0.2 version to use thick which has a few additional features over thin.
    To avoid confusion with other Oracle software you can set the ORACLE_HOME in the session you start sqldeveloper in as described below:
    The version mismatch is often because SQLDeveloper is trying to use the 'thick' driver and 11.2.0.2 thick is not available,
    try
    thin by:
    1/(uncheck Tools->preferences->Datababae->advanced->use OCI/thick driver, and
    2/If necessary, set ORACLE_HOME for your cmd.exe session where sqldev is started from to where sqldeveloper is where %ORACLE_HOME%\jdbc\lib exists, (so SQLDeveloper does not try your existing ORACLE_HOME) and
    3/If using connection type TNS, use Connection Type TNS -> Network Alias.
    4/You may need to set Tools->preferences->Datababase->advanced->Tnsname directory to the directory containing tnsnames.ora
    -Turloch
    SQLDeveloper Team

Maybe you are looking for