LANSA INTEGRATOR - SOAP AGENT and XML response

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
kno_dk
Posts: 89
Joined: Tue Feb 23, 2016 12:00 am

LANSA INTEGRATOR - SOAP AGENT and XML response

Post by kno_dk » Fri Dec 15, 2017 2:10 am

Hi.

I am going to use a soap service. The response from this webservice is in most cases XML data. In the Integrator studion (The WSDL) it is just like this:
<s:element name="TD2TypeIDResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="TD2TypeIDResult">
<s:complexType mixed="true">
<s:sequence>
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>

and the answer data is like this:
<TD2TypeIDResponse xmlns="http://xxx.com">
<TD2TypeIDResult>
<ctmessage xmlns="">
<status>
<resultcode>1</resultcode>
<resultdescription>OK</resultdescription>
<server>xxx.com</server>
</status>
<ctdata numresultsets="1">
<resultset name="Types" numrecords="1">
<Types id="edf37e5ab8f62d858daed887802684be" result="Cars - Audi - A6 2.0 (1994-1995)" />
</resultset>
</ctdata>
</ctmessage>
</TD2TypeIDResult>
</TD2TypeIDResponse>

How do I use/consume this XML "Document" in my function?
any suggestion?
any examples?

/klaus

Post Reply