Failed when call SOAP web services to save OUT data values [message #1308223] |
Tue, 22 April 2014 01:39 |
Giang Khuong Messages: 5 Registered: September 2013 |
Junior Member |
|
|
Hi team,
I created a simple process with two Activities and three primitive data objects (String1, Int1, Boolean1).
1st Activity will OUT values to three data objects and 2nd Activity gets values from these objects (IN).
The thing is that I can start process, complete the first Activity by using SOAP UI but the Out Data Values (String1,Int1,Bollean1) have not been saved in database. Here is the script:
<soapenv:Header/>
<soapenv:Body>
<api:completeActivity>
<api:activityOid>18</api:activityOid>
<api:context>HelloQ2</api:context>
<api:outDataValues>
<!--Zero or more repetitions:-->
<api:parameter>
<api:name>String1</api:name>
<!--Optional:-->
<api:namespace>?</api:namespace>
<!--Optional:-->
<api:type>xsi:string</api:type>
<!--Optional:-->
<api:primitive>Ah ha</api:primitive>
<!--Optional:-->
<api:xml>
<!--You may enter ANY elements at this point-->
</api:xml>
</api:parameter>
<api:parameter>
<api:name>Int1</api:name>
<api:type>xsi:int</api:type>
<api:primitive>99</api:primitive>
</api:parameter>
<api:parameter>
<api:name>Boolean1</api:name>
<api:type>xsi:boolean</api:type>
<api:primitive>true</api:primitive>
</api:parameter>
</api:outDataValues>
<!--Optional:-->
<api:activate>true</api:activate>
</api:completeActivity>
</soapenv:Body>
</soapenv:Envelope>
PS: I can run entire process smoothly from Stardust portal with no problem.
Can anyone give me a solution on this?
Thank you very very much.!
Giang.
[Updated on: Tue, 22 April 2014 01:58] Report message to a moderator
|
|
|
Re: Failed when call SOAP web services to save OUT data values [message #1308617 is a reply to message #1308223] |
Tue, 22 April 2014 06:56 |
|
Giang,
the context field is not optional and should have the value of a valid context (manual activity = default, jsf = jsf, Engine = engine). I think you forgot to set it in your SOAP request. This worked for me:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:api="http://eclipse.org/stardust/ws/v2012a/api">
<soapenv:Header/>
<soapenv:Body>
<api:completeActivityAndActivateNext>
<api:activityOid>3</api:activityOid>
<api:context>default</api:context>
<api:outDataValues>
<!--Zero or more repetitions:-->
<api:parameter>
<api:name>Name</api:name>
<api:primitive>A2</api:primitive>
</api:parameter>
</api:outDataValues>
<!--Optional:-->
<api:activate>?</api:activate>
</api:completeActivityAndActivateNext>
</soapenv:Body>
</soapenv:Envelope>
Best regards
Rob
[Updated on: Tue, 22 April 2014 06:58] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03040 seconds