Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>It appears to be an issue with the way the namespacing is handled. Using the XML Tools plugin for Notepad++ and the XML you've provided, the XPATH Current Node Selector can't even find the <code>getFormDataResponse</code> node correctly. It simply fails with "Unknown Exception".</p> <p>I also tried to manually evaluate the following expressions:</p> <ul> <li><code>/soap:Envelope/soap:Body</code> (works)</li> <li><code>/soap:Envelope/soap:Body/getFormDataResponse</code> (fails)</li> <li><code>/soap:Envelope/soap:Body//getFormDataResponse</code> (fails)</li> <li><code>/soap:Envelope/soap:Body/*[local-name() = 'getFormDataResponse']</code> (fails)</li> <li><code>/soap:Envelope/soap:Body/descendants::*[local-name() = 'getFormDataResponse']</code> (fails)</li> <li><code>/soap:Envelope/soap:Body/descendants::getFormDataResponse</code> (fails)</li> </ul> <p>If I modify the XML so the EchoSign namespaces are in the Envelope with a prefix, like so:</p> <pre><code>&lt;soap:Envelope xmlns:echo="http://api.echosign" xmlns:dto8="http://dto8.api.echosign" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt; &lt;soap:Body&gt; &lt;echo:getFormDataResponse&gt; &lt;echo:getFormDataResult&gt; &lt;dto8:errorCode&gt;OK&lt;/dto8:errorCode&gt; &lt;dto8:errorMessage xsi:nil="true" /&gt; &lt;dto8:formDataCsv&gt;SOME DATA&lt;/dto8:formDataCsv&gt; &lt;dto8:success&gt;true&lt;/dto8:success&gt; &lt;/echo:getFormDataResult&gt; &lt;/echo:getFormDataResponse&gt; &lt;/soap:Body&gt; &lt;/soap:Envelope&gt; </code></pre> <p>then the path selector can get all the way down to the <code>formDataCsv</code> node correctly. It returns the path: <code>/soap:Envelope/soap:Body/echo:getFormDataResponse/echo:getFormDataResult/dto8:formDataCsv</code>. Not sure how helpful that is because you're not in control of the XML that EchoSign sends to you, but I'm not sure how to correctly format the XPATH to deal with the namespaces.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload