Friday, March 9, 2012

How to read soap file

Hi all,

I am sending request to the third party server EX:"Http://somesight.sight.net/company.asp?AC="1000"&Item="200"&DT=05/08/2007" I am getting file in soap format

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

- <SOAP-ENV:Envelope xmlnsTongue TiedOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

- <SOAP-ENV:Body>

- <mTongue TiedtreamIResponse xmlns:m="uri:EXmsg">

<Success>false</Success>

</mTongue TiedtreamImageResponse>

- <SOAP-ENV:Fault>

<faultcode>SOAP-ENV:Error</faultcode>

<faultstring>No matching items were found.</faultstring>

</SOAP-ENV:Fault>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

My question is how to read this line <faultstring>No matching items were found.</faultstring> . I need to capture the message in the variable.

Thanks for your help in advance

Soap is built over XML, so you could use an XML parser to get that line fairly easily.

Hope this helps

John Gordon (MSFT)

No comments:

Post a Comment