Please login or register to access secure site features.

Note: By continuing to use DevConnect Program Services you agree to our latest Registered Member Terms.

Sign in using DevConnect ID

Forgot password?

Trouble logging in?

Submit a ticket for Registration Support.

I have an SSO ID

?
sign in

Don't have a DevConnect or SSO ID ?

Create a DevConnect account or join the program.

register now
^
Forum Index » Avaya Orchestration Designer » Process XML from webservice   XML
 
Author Message
GertLeusink



Joined: 23/11/2015 06:45:33
Messages: 4
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: 06/11/2013 14:29:24
Messages: 3720
Online

Do you have the Java Object checked on the wsop editor? You should be able to get a Java object back.
SteffenBisgaard



Joined: 16/04/2008 02:22:09
Messages: 6
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: 06/11/2013 14:29:24
Messages: 3720
Online

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: 16/04/2008 02:22:09
Messages: 6
Offline

Hi Wilson,
Would you have any pointers or link to documentation on how to do that?
WilsonYu



Joined: 06/11/2013 14:29:24
Messages: 3720
Online

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: 16/04/2008 02:22:09
Messages: 6
Offline

Is there any sample code available for this that you know of?
WilsonYu



Joined: 06/11/2013 14:29:24
Messages: 3720
Online

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: