Hello,

 

We're trying to use JMeter  for testing our SOAP webservices. Everything
seems to work ok if I use Response Assertion, but I'm unable to get
tests working with XPath assertion.

 

I setup a SOAP Webservice Request which sends a xml package looking like
this (snipped)

 

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns1="http://soap.q-go.net/soap_client/wsdl/schema";><SOAP-ENV:Body>
<ns1:SOAP_ask>...... SNIP...

 

and in the result tree I see my SOAP response XML package nicely
formatted like:

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns1="http://soap.q-go.net/soap_client/wsdl/schema";><SOAP-ENV:Body>
<ns1:SOAP_askResponse><ns1:resp>match</ns1:resp>.. .SNIP....

 

 

As a simple test I added an XPath assertion: //ns1:resp

With "use namespaces" set to true..

 

However I keep receiving the error message "Prefix must resolve to a
Namespace: ns1". I tested this with JMeter 2.3.1 and nightly build
r642735 

 

In the documentation is stated you can only use the Namespace from the
root element, where the ns1 is defined in my case, in the send package
AND the received package..

 

Does anyone have an idea how to fix this problem? 

 

I seem to be unable to get the suggested local-name() tip suggested to
work ..

 

 

Greetings Tim

 

Reply via email to