This discussion is archived
2 Replies Latest reply: Jan 25, 2013 1:26 AM by Bhabani Ranjan RSS

Problem Regarding OdiInvokeWebService

Anindya Chatterjee Newbie
Currently Being Moderated
Hi,
I want to invoke a web service through odi using OdiInvokeWebService tool.So the problem is in Test or Production Environment the WSDL URL of the web service will be changed .AS the WSDL URL is hardcoded inside OdiInvokeWebService tool(i.e in WSDL URL Parameter) what shall I do now??

NB:-Can I use variable instead of WSDL URL?If yes then where should I store the variables value(i.e WSDL URL)?


Please Advice
Thanks
Anindya
  • 1. Re: Problem Regarding OdiInvokeWebService
    JeromeFr Expert
    Currently Being Moderated
    Hi,

    You can store the variable value in a parameter table and refresh your variable at the beginning of your package.
    Then you can just put the variable name instead of the url in the WSDL URL parameter.


    Regards,
    JeromeFr
  • 2. Re: Problem Regarding OdiInvokeWebService
    Bhabani Ranjan Guru
    Currently Being Moderated
    It should work. I did a quick test on this and found that variable is properly substituted with project name.

    OdiInvokeWebService "-URL=#PRO_SCOTT.MYVAR" "-PORT_TYPE=requestPortType" "-OPERATION=invokeStartScen"
    <?xml version = '1.0' encoding = 'UTF8'?>
    <OdiStartScenRequest xmlns="xmlns.oracle.com/odi/OdiInvoke/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <Credentials xmlns="">
    <OdiUser>SUPERVISOR</OdiUser>
    <OdiPassword>SUNOPSIS</OdiPassword>
    <WorkRepository>WORKREP91</WorkRepository>
    </Credentials>
    <Request xmlns="">
    <ScenarioName>#PRO_SCOTT.SCEN_NAME</ScenarioName>
    <ScenarioVersion>001</ScenarioVersion>
    <Context>GLOBAL</Context>
    <Synchronous>true</Synchronous>
    <SessionName>WEBSERVICE_VAR_TEST</SessionName>
    <LogLevel>5</LogLevel>
    </Request>
    </OdiStartScenRequest>

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points