I would like to get the sessionID out of the following response:
<?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"> <soapenv:Body> <ns1:LogonResponse xmlns:ns1="http://this.is.some.package.name/webservice"> <sessionID>12345</sessionID> </ns1:LogonResponse> </soapenv:Body> </soapenv:Envelope> In the XPath Extractor GUI I have the XPath Query: //sessionID I know that is a valid query for this response because I tested it with another tool. This is a response from a login request in my thread group and I need the sessionID to send any further requests to my web service. Also if I place a valid sessionID in the default value in the GUI everything works. I need this to happen automatically though for load and stress testing with multiple users so I can't enter the sessionID manually. I just did that to debug this problem. I'm not using Tidy and I've tried with and without "Use Namespaces?" checked. The sessionID is a global UDV in thread group called "sessID" and that is the field in the Reference Name in the XPath Extractor GUI. I then use ${sessID} in any later requests. Like I said before it works if I login with another tool and then place a valid sessionID in the Default Value field, but that is a hack. Is there any special XPath syntax or rules that apply to JMeter in this case? Thanks in advance. -Paul

