Skip to main content



      Home
Home » Archived » Eclipse Process Manager (Stardust) » Failed when call SOAP web services to save OUT data values
Failed when call SOAP web services to save OUT data values [message #1308223] Mon, 21 April 2014 21:39 Go to next message
Eclipse UserFriend
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: Mon, 21 April 2014 21:58] by 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 02:56 Go to previous message
Eclipse UserFriend
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 02:58] by Moderator

Previous Topic:Stardust API's Deployment - Poll Data via Query API
Next Topic:Using Audit Trail Database
Goto Forum:
  


Current Time: Sun Jun 22 02:27:59 EDT 2025

Powered by FUDForum. Page generated in 0.05012 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top