cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1192
Views
5
Helpful
2
Replies

Getting output variables values in WebService Response

apriydar
Cisco Employee
Cisco Employee

I am trying a very simple workflow.

I have defined an output variable  "Result" for the process & setting its values inside the process.

Now when I invoke the process through a WebService call, I don't see that output variable's value in the response XML.

Any thought why so ?TEO.png

Below is what I get as response XML that I am getting, when I call above process through SOAP UI.

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">

   <s:Body>

      <StartNewScaleTestResponse xmlns="http://tempuri.org/">

         <StartNewScaleTestResult xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">

            <a:guid>c5b6abed-4446-655a-84a0-2012bcb521f1</a:guid>

         </StartNewScaleTestResult>

      </StartNewScaleTestResponse>

   </s:Body>

</s:Envelope>

I don't see the "Result" varaible's value here.

2 Replies 2

Shaun Roberts
Cisco Employee
Cisco Employee

Hi,

It does not return in that XML. Nor does the NBWS function like that exactly.

You must make the call into the NBWS to start the process. Then you must call the ProcessInstance?WSDL

or the process instance WSDL to get the output variables. You will see methods for GetOutputVariablesFor

See the screenshot below.

Calling that with the GUID from your first call (to start the process) will return you the output variables.

--Shaun Roberts
Principal Engineer, CX
shaurobe@cisco.com

In addition, you will need to poll the process status until process is not active. When process completes you should be able to obtain the output variable values

Sent from Cisco Technical Support iPad App

Review Cisco Networking for a $25 gift card