Author Message
GertLeusink
Joined: Nov 23, 2015
Messages: 5
Offline
Hi, I have an issue with processing the XML data coming back from web service. The issue seems to be that the result requires a complex type with a complex type which orchestration Designer does not know. The response from the web service looks like:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:getSessionDataByCLIResponse xmlns:ns1="http://www.telecats.nl/nl.telecats.sessionDB.sessionDB-service">
<ns1:sessionData>
<ns1:keyValueList>
<ns1:KeyValue>
<ns1:key>test</ns1:key>
<ns1:value>waarde</ns1:value>
</ns1:KeyValue>
<ns1:KeyValue>
<ns1:key>nummer</ns1:key>
<ns1:value>12341234</ns1:value>
</ns1:KeyValue>
</ns1:keyValueList>
<ns1:nrOfItems>2</ns1:nrOfItems>
<ns1:sessionId>93002bc9-013d-496c-9e6f-c77efc9c4cdb</ns1:sessionId>
</ns1:sessionData>
</ns1:getSessionDataByCLIResponse>
</soap:Body>
</soap:Envelope>

Any suggestions on how to process this? We can limit the number of keyvalue pairs to 1, but we can't change the webservice.
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
Do you have the Java Object checked on the wsop editor? You should be able to get a Java object back.
SteffenBisgaard
Joined: Apr 16, 2008
Messages: 9
Offline
Hi,
If we use a java object (checkmark in the Output parameters "Use Java Obj), we get this back:

Storing [connectivity.ws.beans.SessionData@6c965fef] to:SimpleVariableName

How can we see the actual data?

WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
Apparently, there is a SessionData object you can access using Java code. In this Java object, you would be able to use its "get" methods to dig into the structure of values.
SteffenBisgaard
Joined: Apr 16, 2008
Messages: 9
Offline
Hi Wilson,
Would you have any pointers or link to documentation on how to do that?
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
You would have to know a little bit of programming. The object type should have already been created in the project's beans directory according to WSDL file.
SteffenBisgaard
Joined: Apr 16, 2008
Messages: 9
Offline
Is there any sample code available for this that you know of?
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
We don't have a concrete example. Every object is different. You just need to call the property or the method to get its value.
Go to:   
Mobile view