Parsing SOAP response using libxml in Ruby

Posted by abhishektiwari on Stack Overflow See other posts from Stack Overflow or by abhishektiwari
Published on 2010-04-27T15:18:42Z Indexed on 2010/04/27 19:03 UTC
Read the original article Hit count: 449

Filed under:
|
|

I am trying to parse following SOAP response coming from Savon SOAP api

<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:getConnectionResponse xmlns:ns="http://webservice.jchem.chemaxon">
            <ns:return>
                &lt;ConnectionHandlerId>connectionHandlerID-283854719&lt;/ConnectionHandlerId>
            </ns:return>
        </ns:getConnectionResponse>
    </soapenv:Body>
</soapenv:Envelope>

I am trying to use libxml-ruby without any success. Basically I want to extract anything inside tag and the connectionHandlerID value.

© Stack Overflow or respective owner

Related posts about ruby

Related posts about soap