AnsweredAssumed Answered

SOAP-Web-Interface: How to process a SOAP response having xml-tags with namespaces using XPath?

Question asked by Christian_Metzger_946 on Feb 19, 2018
Latest reply on Feb 19, 2018 by Christian_Metzger_946
Hallo,

I have the following problem. I want to extract fields out of a SOAP-response. My response looks like this:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">    <soapenv:Body>        <ns0:Change_Query_ServiceResponse xmlns:ns0="urn:CHG_ChangeInterface_WS">             <ns0:Approval_Phase_Name>NORMAL - 001 - Annahmeprüfung (RFA-&gt;RFC)</ns0:Approval_Phase_Name>             <ns0:Chg_Assignee_Support_Company>MA 14-ADV</ns0:Chg_Assignee_Support_Company>
 ... and so on...

I want to export e.g. the value of <ns0:Approval_Phase_Name>. How do I define the wright XPATH mentioning the namespace of ns0?

Your documentation contains only examples without a namespace. Can you give me the XPath for this tag as an example?

Thank you!

Outcomes