read soap response

  • 16 years ago

    Hi,


    I'm having som trouble reading the response I get form my soap-server.  When i use the getLastResonse() i recive:


    Response:
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlnsOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:xmethods-delayed-quotes" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlnsOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:readDataResponse><mail xsi:type="xsd:string">[email protected]</mail><name xsi:type="xsd:string">test testesen</name></ns1:readDataResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>


    But how do I convert this into html?
    I want to extract the mail and name-variables returned, but I'm not sure how?


    I tried reading on www.php.net, but the only function i saw there was __call, and I didn't understand how to use it.


    Any ideas?


    best regards
    lars

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice: Nothing works and they don't know why.”