Hi,
I'm tryig to parse a SOAP response, but using XML::Simple I am getting 'not well formed' error.
If i 'die' the returned data from the call I get..
So you can see there is all that header data prior to the SOAP:envelope , how do I either access just the SOAP XML with LWP or what would be the best way to parse it?
could I use a regex and remove everything upto the first <soap:
or is there a parser module for this?
I'm trying to get the value of the <url> data.
all help appreciated.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
I'm tryig to parse a SOAP response, but using XML::Simple I am getting 'not well formed' error.
If i 'die' the returned data from the call I get..
Code:
HTTP/1.1 200 OK
Cache-Control: private
Date: Thu, 04 Oct 2007 09:48:16 GMT
Server: Microsoft-IIS/6.0
Content-Length: 496
Content-Type: text/xml
Client-Date: Thu, 04 Oct 2007 09:48:29 GMT
Client-Peer: 83.138.164.244:443
Client-Response-Num: 1
Client-SSL-Cert-Issuer: /C=US/ST=UT/L=Salt Lake City/O=The USERTRUST Network/OU=[URL unfurl="true"]http://www.usertrust.com/CN=UTN-USERFirst-Hardware[/URL]
Client-SSL-Cipher: RC4-MD5
Client-SSL-Warning: Peer certificate not verified
Set-Cookie: dsfsdf; path=/
X-Powered-By: ASP.NET
<soap:Envelope xmlns:soap="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/envelope/"[/URL] soap:encodingStyle="[URL unfurl="true"]http://www.w3.org/2001/12/soap-encoding">[/URL]
<soap:Header/>
<soap:Body xmlns:res="[URL unfurl="true"]http://myurl">[/URL]
<object>
<Name></Name>
<Description></Description>
<Catagory></Catagory>
<Source></Source>
[b]<url>/test/key</url>[/b]
</object>
</soap:Body>
</soap:Envelope>
So you can see there is all that header data prior to the SOAP:envelope , how do I either access just the SOAP XML with LWP or what would be the best way to parse it?
could I use a regex and remove everything upto the first <soap:
or is there a parser module for this?
I'm trying to get the value of the <url> data.
all help appreciated.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!