12 years ago
How can I parse the response XML to get data from a node
I see other post on this but can't seem to get it to work. (I am not using the pro version ..)
What I have is a reponse xml that looks like this:
soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:getOIDResponse xmlns:ns="http://activitymgr.ws.task.inventory.com">
<ns:return>mystringvalue</ns:return>
</ns:getOIDResponse>
</soapenv:Body>
</soapenv:Envelope>
I need to get the between <ns:return></ns:return>
I am currently using property transfer to put the response into a global variable but as expected, that is giving me the whole xml response.
1. Is XPATH the right way to go about this?
2. My property transfer GUI shows:
- A source (property=response)and a blank field presumably for an XPATH expression
- A Target (Global) and the target property. This also has blank field below it.
How do I use XPATH here? what is the syntax. Does it go in the source or destination field?
thanks in advance
Bill
What I have is a reponse xml that looks like this:
soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:getOIDResponse xmlns:ns="http://activitymgr.ws.task.inventory.com">
<ns:return>mystringvalue</ns:return>
</ns:getOIDResponse>
</soapenv:Body>
</soapenv:Envelope>
I need to get the between <ns:return></ns:return>
I am currently using property transfer to put the response into a global variable but as expected, that is giving me the whole xml response.
1. Is XPATH the right way to go about this?
2. My property transfer GUI shows:
- A source (property=response)and a blank field presumably for an XPATH expression
- A Target (Global) and the target property. This also has blank field below it.
How do I use XPATH here? what is the syntax. Does it go in the source or destination field?
thanks in advance
Bill