Query a SOAP Response Body with Xpath in Web Request Control


Using Xpath to parse XML containing  namespaces in the Web Request control.



To successfully query XML containing  namespaces in the Web Request control you must add wild cards for each element after the last element containing a namespace. Alternatively, you can bypass all nodes and find only the desired node.

Example XML Response:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<AddResponse xmlns="http://tempuri.org/">


Example XPath queries:


wildcards after namespace


selecting only desired nodes:


Version history
Revision #:
2 of 2
Last update:
‎04-21-2021 10:55 AM
Updated by: