Invoke ODI Scenario using Webservice
Hi,
I have deployed the ODI Public webservices container using Axis2.
I have generated a scenario using ODI Designer.
I have a SOAP request in hand.
Having these, please can any one tell me how can I invoke the scenario using webservices?
Thanks
Hi user648715 !
I have the similar question. I published the ODIInvoke webservices but I don´t know how to generate scenario into ODI Design correctly.
I think you should use a BPEL to invoke this webservice. Please, see this article http://oracleradio.blogspot.com/2007/12/oracle-bpel-pm-oracle-data-integrator.html , can be interesting.
Thanks for your attention !
Regards,
Joao.
Similar Messages
-
Invoking ODI scenario using ESS
Hi all,
As a part of data migration , I am required to invoke an ODI scenario using a java program which in turn is invoked by an ESS job. So as a part of this, how would it be possible for me to invoke the ODI scenario via java code. Are there any web service that is provided by ODI to invoke scenarios. I am new to ODI.
Thanks and Regards
RohinHi,
I was able to expose a webservice that could invoke a scenario. This is how I went about doing it.
1. Created a J2EE agent by following the steps in this link
http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/odi/odi_11g/setup_jee_agent/setup_jee_agent.htm
2. Create a physical agent and logical agent in ODI IDE
Goto : http://agentHost:port/oraclediagent/OdiInvoke?wsdl
I then used httpanalyser from JDEV and was able to give the name of the scenario and the version number as input parameter. And "SEND REQUEST"...(There has to be better ways to do this I am new to this..)
The scenario should execute successfully. You can also view the results of scenario execution in the operator navigator in ODI IDE.
Regards
Rohin -
Invoking ODI scenario from BPEL using Asynchronous callbacks
It has been given in many sites that for invoking an odi scenario, odi-public-ws.aar must be uploaded to AXIS2 framework as the web service uses AXIS2 as the web service container. For doing this first the AXIS2 should be deployed in OC4J.
I am working with a scenario like this. I didnt deploy AXIS2 and neither uploaded the odi-public-ws.aar. Still i am getting the result as success. BPEL is invoking the ODI scenario and callback is happening too.
I, also tried invoking ODI scenario in a remote system. Got the result for that too. I am using ODI 10.1.3.4 and J-Dev 10.1.3.3 and SOA suite 10.1.3.1.
Can anyone suggest how without AXIS2 framework the process is success?Hi,
Thanks its working now. I am facing another issue. I do not use parameters in my Scenario. Now when i run my scenario i m getting the following error. I think its because i have not assigned anything to the Variable element. I guess its taking null value for Variable element here and cheking if such a variable exists. Have you come accross such an issue? If so, please sugest remedy.
java.lang.Exception: Specified variable not found in the Repository : null
at com.sunopsis.dwg.dbobj.SnpSession.a(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.y(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSessionPreTrt(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.h.y(h.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Thread.java:619)
Edited by: silas.john on May 13, 2009 1:29 AM -
Invoking ODI Scenario from a BPEL process - Resolved
I new to Oracle products.
I am exploring Oracle Data Integrator tool.
I would like to call ODI scenario from a BPEL process.
I created a scenario in ODI, I have SOA suite10.1.3.3 installed in my machine.
In some portal I have read that, we need to deploy apache axis to Oracle App server and then deploy the ODI public web service to axis. This public web service facilitates us to call scenario from partner link.
Following are my questions:
1) I guess Oracle App server acts as webservice container too. Why should I use apache axis here?
2)If axis must be used, please let me know how to deploy it to OAS.
If axis is not required, please guide me how to deploy public web service to OAS.
Thanks!!Hi:
I have similar problem, when invoke ODI Scenario from a BPEL Process, the error in ODI Designer is:
java.lang.NullPointerException
at com.sunopsis.dwg.dbobj.SnpSession.a(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.y(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSessionPreTrt(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.h.y(h.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Thread.java:595)
In the BPEL Console the result is OK and process complete, but in the INVOKE scenario send message:
<messages><ODI_REQUEST><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="part1"><invokeScenarioRequest xmlns="xmlns.oracle.com/odi/OdiInvoke/">
*<RepositoryConnection xmlns=""*
<JdbcDriver>oracle.jdbc.driver.OracleDriver</JdbcDriver>
<JdbcUrl>jdbc:oracle:thin:@192.168.1.109:1521:ORCL</JdbcUrl>
<JdbcUser>dimaster</JdbcUser>
<JdbcPassword>sabr0sa</JdbcPassword>
<OdiUser>SUPERVISOR</OdiUser>
<OdiPassword>SUNOPSIS</OdiPassword>
<WorkRepository>TESTWORKREP1</WorkRepository>
</RepositoryConnection>
*<Command xmlns="">*
<ScenName>P_TRASPASOSOP09</ScenName>
<ScenVersion>2</ScenVersion>
<Context>Global</Context>
<LogLevel>5</LogLevel>
<SyncMode>0</SyncMode>
<SessionName/>
<Keywords/>
<Variables>
<Name/>
<Value xmlns:ns1="http://xmlns.oracle.com/Recepcion">
<ns1:Escenario>P_TRASPASOSOP09</ns1:Escenario>
<ns1:Version>2</ns1:Version>
<ns1:Contexto>Global</ns1:Contexto>
<ns1:ID>1</ns1:ID>
<ns1:NivelLogeo>5</ns1:NivelLogeo>
</Value>
</Variables>
</Command>
*<Agent xmlns="">*
<Host>192.168.1.109</Host>
<Port>20910</Port>
</Agent>
</invokeScenarioRequest>
</part></ODI_REQUEST><ODI_RESPONSE><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="part1"><odi:invokeScenarioResponse xmlns:odi="xmlns.oracle.com/odi/OdiInvoke/">
<odi:CommandResultType>
<odi:Ok>true</odi:Ok>
<odi:SessionNumber>445000</odi:SessionNumber>
</odi:CommandResultType>
</odi:invokeScenarioResponse>
</part></ODI_RESPONSE></messages> -
Invoke ODI Scenario (11g) in BPEL (11g)
Hello -
I'm developing a BPEL process to load data from SQL Server to Oracle database using ODI . And after that I'm doing more orchestration in the BPEL process. I'm using
1) Oracle Data Integrator 11g (11.1.1.3)
2) Oracle SOA Suite 11g (Web Logic Server)
Have created a scenario in ODI 11.1.1.3 to read data from SQL Server and load into Oracle Database. I would like call this ODI scenario in BPEL 11g as a FIRST Activity.
Please help me the STEPS I need to
1) To expose the ODI scenario as a web service?
2) And to invoke ODI scenario in BPEL
3) Do I need configure/install public web services or anyother checks I need to do on ODI_server domain(WLS) to ensure it has all the components it need ?
Detailed steps are greatly appreciated
Thanks
BabuI hope you have found your answer but if not here are some pointers when working in the 11g ODI version. As far as I understand all generated scenarios will be exposed as a web service. ODI provides a small set of service methods available via the agent to invoke those services:
invokeStartScen
invokeRestartScen
getSessionStatus
getVersion
To get the WSDL for ODI, simply point your browser or partner descriptor to a running ODI agent: http://agentHost:port/oraclediagent/OdiInvoke?wsdl
For me running on my local host I can access both the Stand Alone or JEE agents on thier running ports:
Stand Alone running on 8886: http://localhost:8886/oraclediagent/OdiInvoke?wsdl
JEE running on 19001 deployed to WLS: http://localhost:19001/oraclediagent/OdiInvoke?wsdl
As you can see there is no difference between the two agents and they both return with the same list of operations:
<wsdl:binding name="InvokeRequestSOAP11Binding" type="odi:requestPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
*<wsdl:operation name="invokeStartScen">*
<soap:operation soapAction="xmlns.oracle.com/odi/OdiInvoke/invokeStartScen" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
*<wsdl:operation name="getSessionStatus">*
<soap:operation soapAction="xmlns.oracle.com/odi/OdiInvoke/getSessionStatus" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
*<wsdl:operation name="getVersion">*
<soap:operation soapAction="xmlns.oracle.com/odi/OdiInvoke/getVersion" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
*<wsdl:operation name="invokeRestartSess">*
<soap:operation soapAction="xmlns.oracle.com/odi/OdiInvoke/invokeRestartSess" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
Once you have this then you can invoke the different methods from what ever tool you are using and here are some samples:
Getting the Version -- No Parameters are Required
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:odi="xmlns.oracle.com/odi/OdiInvoke/">
<soapenv:Header/>
<soapenv:Body>
<odi:getWebServiceVersionRequest/>
</soapenv:Body>
</soapenv:Envelope>
Invoking a Scenario -- Scenario: LD_ODI_CERTS Scenario Version: 5 Context: GLOBAL
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:odi="xmlns.oracle.com/odi/OdiInvoke/">
<soapenv:Header/>
<soapenv:Body>
<odi:OdiStartScenRequest>
<!--You may enter the following 2 items in any order-->
<Credentials>
<!--You may enter the following 3 items in any order-->
<OdiUser>SUPERVISOR</OdiUser>
<OdiPassword>SUPERVISOR</OdiPassword>
<WorkRepository>workrep</WorkRepository>
</Credentials>
<Request>
*<ScenarioName>LD_ODI_CERTS</ScenarioName>*
*<ScenarioVersion>005</ScenarioVersion>*
*<Context>GLOBAL</Context>*
<Synchronous>true</Synchronous>
<SessionName>LD_ODI_CERTS</SessionName>
<Keywords>WebService</Keywords>
<LogLevel>5</LogLevel>
</Request>
</odi:OdiStartScenRequest>
</soapenv:Body>
</soapenv:Envelope>
This is covered in section 14 of the Developers Guide for ODI ([Working with Web Services in Oracle Data Integrator|http://fmwdocs.us.oracle.com/doclibs/fmw/E14571_01/integrate.1111/e12643/web_services.htm#CJAJEBEJ]) and further expanded in section 19.7 ([Running Integration Processes|http://fmwdocs.us.oracle.com/doclibs/fmw/E14571_01/integrate.1111/e12643/running_executions.htm#BABDHJJF]).
If you need additional asistance with the creation of the scenario, well that is another question ;)
Edited by: Sydney on Oct 20, 2010 11:45 AM -
Invoking a scenario using web service
Hi Experts,
Could anyone pls suggest how to pass variables from SOAP to ODI 11g(11.1.1.6.3)
Here we are using wsdl utility to invoke a scenario using web service and trying to pass a variable like the below
The scenario is triggered successfully without passing a parameter.
But when i try to pass a variable like the below,am getting error
Variables name='PROJECT_CODE'
Variables value='JI-2015'
In ODI 11g, i have generated a scenario with a variable PROJECT_CODE as a declare variable and tried triggering from both the environments
From ODI 11g:
When I try to trigger the scenario from wsdl, in that variable step(in operator), I got error as ODI-17546: Specified variable not found in the Repository
But in the work repository SNP_VAR table I could still see the variable name under VAR_NAME column.
From ODI 10g:
When i try to do the same from odi 10g, the scenario execution is success.
But the variable had taken only NULL value instead of taking the value which i passed from wsdl.
Could you pls advise where am going wrongvariable should be passed in the soap message by adding variables elements. Refer to Note ID [1499852.1]
<Variables>
<Name>Project.Variable1</Name>
<Value>Variable1Value</Value>
</Variables>
<Variables>
<Name>Project.Variable2</Name>
<Value>Variable2Value</Value>
</Variables>
<Variables>
<Name>Project.Variable3</Name>
<Value>Variable3Value</Value>
</Variables> -
How to invoke odi scenario from bpel without passing plain text password
Hi
We have following requirement,we would like to invoke odi scenario from oracle bpel process.But one problem is we dont want to pass the odi password as plain text.Please let me know how do i achive this task.
Thanks
BajiHi,
Thanks its working now. I am facing another issue. I do not use parameters in my Scenario. Now when i run my scenario i m getting the following error. I think its because i have not assigned anything to the Variable element. I guess its taking null value for Variable element here and cheking if such a variable exists. Have you come accross such an issue? If so, please sugest remedy.
java.lang.Exception: Specified variable not found in the Repository : null
at com.sunopsis.dwg.dbobj.SnpSession.a(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.y(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSessionPreTrt(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.h.y(h.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Thread.java:619)
Edited by: silas.john on May 13, 2009 1:29 AM -
How to run ODI scenario using command prompt
Hi expets
Please let me know if we can run ODI scenario using command prompt or any way other than operator.
Regards
JanakiramGo to <ODI_HOME>/oracledi/bin in command prompt and invoke startscen command with teh below parameters.
Edited by: Guru Sankar on Feb 28, 2011 4:19 PM -
Error while invoking ODI Scenario from BPEL
Hi,
I have created a BPEL process for invoking ODI Scenario as mentioned in the http://www.oracle.com/technology/obe/fusion_middleware/odi/ODIscenario_BPELcallback/ODIscenario_BPELcallback.htm
when i am deploying the process through console in i am getting this error Connection refused: connect..+
outputVariable>
-<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
-<ODIProcessResponse xmlns="http://xmlns.oracle.com/ODIService">
<conversationId>b7367ada046f7040:2c3c2fb3:123c698ac08:-7f49
</conversationId>
<result>Connection refused: connect
</result>
<elapsedTime>953
</elapsedTime>
<odiPlan>
========== OdiInformation =======
- mSyncMode :SYNC
- mScenarioName :TEST_INTERFACE
- mScenarioVersion:001
- mLogLevel :5
- mContext :GLOBAL
- mOdiHostname :localhost
- mOdiHostPort :20910
</odiPlan>
</ODIProcessResponse>
</part>
</outputVariable>
Regards,
Ezhilan R.Hi, how are you?
I did works including a parameter in my scenario and put value in this parameter on call scenario from BPEL. If i remove the parameter on the scenario and the call, its dont works.
Try include a parameter in your scenario. -
Invoke ODI Scenario from BPEL Process
Hi:
My problem is when invoke ODI Scenario from a BPEL Process, the error in ODI Designer is:
Return Code 7000
java.lang.NullPointerException
at com.sunopsis.dwg.dbobj.SnpSession.a(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.y(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSessionPreTrt(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.h.y(h.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Thread.java:595)
In the BPEL Console the result is OK and process complete, but in the task INVOKE Scenario send message:
<messages><ODI_REQUEST><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="part1"><invokeScenarioRequest xmlns="xmlns.oracle.com/odi/OdiInvoke/">
<RepositoryConnection xmlns=""
<JdbcDriver>oracle.jdbc.driver.OracleDriver</JdbcDriver>
<JdbcUrl>jdbc:oracle:thin:@192.168.1.109:1521:ORCL</JdbcUrl>
<JdbcUser>dimaster</JdbcUser>
<JdbcPassword>sabr0sa</JdbcPassword>
<OdiUser>SUPERVISOR</OdiUser>
<OdiPassword>SUNOPSIS</OdiPassword>
<WorkRepository>TESTWORKREP1</WorkRepository>
</RepositoryConnection>
<Command xmlns="">
<ScenName>P_TRASPASOSOP09</ScenName>
<ScenVersion>2</ScenVersion>
<Context>Global</Context>
<LogLevel>5</LogLevel>
<SyncMode>0</SyncMode>
<SessionName/>
<Keywords/>
<Variables>
<Name/>
<Value xmlns:ns1="http://xmlns.oracle.com/Recepcion">
<ns1:Escenario>P_TRASPASOSOP09</ns1:Escenario>
<ns1:Version>2</ns1:Version>
<ns1:Contexto>Global</ns1:Contexto>
<ns1:ID>1</ns1:ID>
<ns1:NivelLogeo>5</ns1:NivelLogeo>
</Value>
</Variables>
</Command>
<Agent xmlns="">
<Host>192.168.1.109</Host>
<Port>20910</Port>
</Agent>
</invokeScenarioRequest>
</part></ODI_REQUEST><ODI_RESPONSE><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="part1"><odi:invokeScenarioResponse xmlns:odi="xmlns.oracle.com/odi/OdiInvoke/">
<odi:CommandResultType>
<odi:Ok>true</odi:Ok>
<odi:SessionNumber>445000</odi:SessionNumber>
</odi:CommandResultType>
</odi:invokeScenarioResponse>
</part></ODI_RESPONSE></messages>
You have response a problem?
Edited by: user2080320 on 16-oct-2008 11:18Hi,
I'm also trying to implement the scenario of invoking ODI from BPEL process. I need a document with the steps to guide me thru the whole process.
Thanks in advance!. -
Hi Experts,
I have problem, when I invoke ODI scenario from a BPEL Process, the error in ODI Designer is:
java.lang.NullPointerException
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.bindSessVar(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.bindSessVar(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskPreTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.g.y(g.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Thread.java:595)
Thanks in advance
Thanks
Phani
Edited by: Phanikanth on Jun 22, 2010 6:10 AMHi,
I'm also trying to implement the scenario of invoking ODI from BPEL process. I need a document with the steps to guide me thru the whole process.
Thanks in advance!. -
Invoking ODI Scenario from BPEL
Hi,
I tried invoking a scenario from BPEL. I started the agent before invoking the scenario. However I am getting the following error in the Agent
java.lang.NullPointerException
at com.sunopsis.dwg.dbobj.SnpScen.getObjectLst(SnpScen.java)
at com.sunopsis.dwg.dbobj.SnpScen.getScenarionByCodeAndVersion(SnpScen.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.b(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.t(e.java)
at com.sunopsis.dwg.cmd.h.y(h.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Thread.java:595)
java.lang.NullPointerException
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.t(e.java)
at com.sunopsis.dwg.cmd.h.y(h.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Thread.java:595)
And i am getting the following error in BPEL Console
<remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html; charset=iso-8859-1</summary>
</part></remoteFault>
I am not able to solve the issue. Request you all to help
Thanks and Regards.
Edited by: user10714505 on May 12, 2009 11:06 PMHi,
Thanks its working now. I am facing another issue. I do not use parameters in my Scenario. Now when i run my scenario i m getting the following error. I think its because i have not assigned anything to the Variable element. I guess its taking null value for Variable element here and cheking if such a variable exists. Have you come accross such an issue? If so, please sugest remedy.
java.lang.Exception: Specified variable not found in the Repository : null
at com.sunopsis.dwg.dbobj.SnpSession.a(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.y(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSessionPreTrt(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.h.y(h.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Thread.java:619)
Edited by: silas.john on May 13, 2009 1:29 AM -
Problem while invoking ODI Scenario from BPEL
Hi,
I am trying to invoke a scenario from BPEL process through ODIPublicWebService.
When I initiate the process, its failing with following error message....
InvokeDeptAdmin_invokeScenario_OutputVariable>
-<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="part1">
-<ns1:invokeScenarioResponse xmlns:ns1="xmlns.oracle.com/odi/OdiInvoke/">
<ns1:Ok>false
</ns1:Ok>
<ns1:SessionNumber>23101
</ns1:SessionNumber>
<ns1:ErrorMessage>Agent didn't execute this command:
</ns1:ErrorMessage>
</ns1:invokeScenarioResponse>
</part>
</InvokeDeptAdmin_invokeScenario_OutputVariable
I observed that its failing as I am not giving any input to optional parameters like
<xsd:element name="SessionName" minOccurs="0" type="xsd:string" />
<xsd:element name="Keywords" minOccurs="0" type="xsd:string" />
<xsd:element name="Variables" maxOccurs="unbounded" minOccurs="0" type="VariableType" />
I can see following empty tags in my Audit of BPELConsole....
<SessionName/>
<Keywords/>
<Variables/>
And null is being considered as a variable by the Agent and following Exception is thrown in the Operator
java.lang.Exception: Specified variable not found in the Repository : null
at com.sunopsis.dwg.dbobj.SnpSession.a(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.y(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSessionPreTrt(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.h.y(h.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Unknown Source)
Please let me know how can I overcome this problem
Appreciate earliest response.
Thanks!!!
Message was edited by:
user644377Hi, how are you?
I did works including a parameter in my scenario and put value in this parameter on call scenario from BPEL. If i remove the parameter on the scenario and the call, its dont works.
Try include a parameter in your scenario. -
Invoke ODI scenario from Fusion ESS
Hi,
We have developed one ODI scenario as part of our project to migrate the data from source(oracle DB) to target(oracle DB).
We would need to call this ODI scenario from a ESS Job to migrate the data to target.
Can you please let us know, what job type need to be defined for ESS job and
how the ODI scenario can be invoked from the ESS job ?
ThanksCan you go to the command line from ESS?
Install the Agent only runtime client so its visible to ESS and run startcmd.sh in this format :
startcmd.sh OdiStartScen -SCEN_NAME=PURGE_OPERATOR_LOG -SCEN_VERSION=-1 -CONTEXT=GLOBAL -AGENT_CODE=DGDW_AGN
If you want to specify the agent.
or simply :
startscen.sh PURGE_OPERATOR_LOG -1 GLOBAL NAME=DGDW_AGN
if you are happy for the machine where the Agent software has been installed to orchestrate the job.
Failing that, you could look at invoking your scenario from web services ? -
Jython script error..while invoking odi scenario
while running the below jython script i am getting the following error..any idea how to resolve this..not able to find any solution in the net
Jython Script
==========
import os
scen_name="DVM"
scen_ver="001"
odiscen="startcmd.bat OdiStartScen -SCEN_NAME="+scen_name+"-SCEN_VERSION="+scen_ver
if os.system(odiscen) <> 0:
raise odiscen
Error:
====
ODI-1217: Session GetFileNames (412355) fails with return code 7000.
ODI-1226: Step GetFileNames fails after 1 attempt(s).
ODI-1232: Procedure GetFileNames execution fails.
Caused By: org.apache.bsf.BSFException: exception from Jython:
Traceback (most recent call last):
File "<string>", line 6, in <module>
startcmd.bat OdiStartScen -SCEN_NAME=DVM-SCEN_VERSION=001i tried with spaces also..and also added context also in the script..but still getting the same error
import os
scen_name="DVM"
scen_ver="001"
cont="E1APS"
odiscen="startcmd.bat OdiStartScen -SCEN_NAME="+scen_name+" -SCEN_VERSION="+scen_ver+" -CONTEXT="+cont
if os.system(odiscen) <> 0:
raise odiscen
Maybe you are looking for
-
Would appreciate in connecting Remote App on iPad to iTunes. It used to work find, before iTunes 11.0 - but now pop up window to input 4 digit code does not appear. Any ideas how to prompt window to open on iMac? Remote App works OK, but says that H
-
How to reset the password on Laserjet pro 400 MFP m425dw
Need to reset a forgotten password on this printer
-
Role creation and authorization objects in sap
Hi i want to know the full relationship between creation of roles , authorization objects ,authorizations in web as abap Please explain the process in detail the use of PFCG and all its options and how to create Z roles
-
Create new rows or update rows in database table
I have few table in database. I catch some values in my bean. Now I must put that values in my database tables. Values are in different tables. How can I update tables in database? Ok I know that my solution is updateable (entity) viewObject but plea
-
Slow installation for indesign CS4 trial
I have downloaded the trial issue for indesign cs4 and try to install it on my PC, it is really slow, it is about 10 hours now and the install progression is only at "Adobe Output Module", it is about 25% of the total installation if I look at progre