Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

Cisco Employee

Getting output variables values in WebService Response

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
Cisco Employee

Getting output variables values in WebService Response

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 shaurobe@cisco.com CIAC Adoption Pilot Engineering Lead
Cisco Employee

Re: Getting output variables values in WebService Response

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

714
Views
5
Helpful
2
Replies
CreatePlease login to create content