You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by danigv <da...@hotmail.com> on 2009/12/29 11:02:57 UTC

Problem with Xpath extractor and SOAP response

Hi,

im trying to extract CODI_LOCALITAT value from this response:

<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:registrarITResponse xmlns:ns1=""
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xmlns:ns2="http://xxxxxx.presentacio.webservices/IRegistrarItWS.xsd"
xsi:type="ns2:xxxxxx_EnregistrarItVO">
<adressa xsi:type="ns2:xxxxxx_AdressaVO">
<BLOC xsi:type="xsd:string">1</BLOC>
<CODI_LOCALITAT xsi:type="xsd:string">08850</CODI_LOCALITAT>
......

I tryed a few types of querys byt anyone works.
Can anyone help me??

Thanks!!!!!
-- 
View this message in context: http://old.nabble.com/Problem-with-Xpath-extractor-and-SOAP-response-tp26952843p26952843.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Problem with Xpath extractor and SOAP response

Posted by Deepak Shetty <sh...@gmail.com>.
The XML you've posted doesnt seem to be valid(i added closing tags and
loaded in FF)

XML Parsing Error: must not undeclare prefix
Line Number 7, Column 1:<ns1:registrarITResponse xmlns:ns1=""
^

If i fix this by providing some dummy namespace your query works fine for
me.

regards
deepak

On Tue, Dec 29, 2009 at 2:25 AM, danigv <da...@hotmail.com> wrote:

>
> Do you refer to the xpath query??
>
> it is
>
> //*[local-name()='registrarITResponse']/return/adressa/CODI_LOCALITAT/text()
>
>
> Andrey Pohilko-2 wrote:
> >
> > Hi!
> >
> > Could you give us example of your Xpath extractor settings to test with
> > this
> > response text?
> >
> >
> > С уважением,
> > Андрей Похилько
> > -----Original Message-----
> > From: danigv [mailto:danigv86@hotmail.com]
> > Sent: Tuesday, December 29, 2009 1:03 PM
> > To: jmeter-user@jakarta.apache.org
> > Subject: Problem with Xpath extractor and SOAP response
> >
> >
> > Hi,
> >
> > im trying to extract CODI_LOCALITAT value from this response:
> >
> > <?xml version='1.0' encoding='UTF-8'?>
> > <SOAP-ENV:Envelope
> > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> > <SOAP-ENV:Body>
> > <ns1:registrarITResponse xmlns:ns1=""
> > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
> > <return
> > xmlns:ns2="http://xxxxxx.presentacio.webservices/IRegistrarItWS.xsd"
> > xsi:type="ns2:xxxxxx_EnregistrarItVO">
> > <adressa xsi:type="ns2:xxxxxx_AdressaVO">
> > <BLOC xsi:type="xsd:string">1</BLOC>
> > <CODI_LOCALITAT xsi:type="xsd:string">08850</CODI_LOCALITAT>
> > ......
> >
> > I tryed a few types of querys byt anyone works.
> > Can anyone help me??
> >
> > Thanks!!!!!
> > --
> > View this message in context:
> >
> http://old.nabble.com/Problem-with-Xpath-extractor-and-SOAP-response-tp26952
> > 843p26952843.html
> > Sent from the JMeter - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Problem-with-Xpath-extractor-and-SOAP-response-tp26952843p26952993.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

RE: Problem with Xpath extractor and SOAP response

Posted by danigv <da...@hotmail.com>.
Do you refer to the xpath query??

it is
//*[local-name()='registrarITResponse']/return/adressa/CODI_LOCALITAT/text()


Andrey Pohilko-2 wrote:
> 
> Hi!
> 
> Could you give us example of your Xpath extractor settings to test with
> this
> response text? 
> 
>  
> С уважением,
> Андрей Похилько
> -----Original Message-----
> From: danigv [mailto:danigv86@hotmail.com] 
> Sent: Tuesday, December 29, 2009 1:03 PM
> To: jmeter-user@jakarta.apache.org
> Subject: Problem with Xpath extractor and SOAP response
> 
> 
> Hi,
> 
> im trying to extract CODI_LOCALITAT value from this response:
> 
> <?xml version='1.0' encoding='UTF-8'?>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <SOAP-ENV:Body>
> <ns1:registrarITResponse xmlns:ns1=""
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
> <return
> xmlns:ns2="http://xxxxxx.presentacio.webservices/IRegistrarItWS.xsd"
> xsi:type="ns2:xxxxxx_EnregistrarItVO">
> <adressa xsi:type="ns2:xxxxxx_AdressaVO">
> <BLOC xsi:type="xsd:string">1</BLOC>
> <CODI_LOCALITAT xsi:type="xsd:string">08850</CODI_LOCALITAT>
> ......
> 
> I tryed a few types of querys byt anyone works.
> Can anyone help me??
> 
> Thanks!!!!!
> -- 
> View this message in context:
> http://old.nabble.com/Problem-with-Xpath-extractor-and-SOAP-response-tp26952
> 843p26952843.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Problem-with-Xpath-extractor-and-SOAP-response-tp26952843p26952993.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: If Error Then Restart Thread

Posted by Deepak Shetty <sh...@gmail.com>.
hi
the only workaround I know of is
http://theworkaholic.blogspot.com/2009/11/dependent-tests-in-jmeter-kind-of.html
An IF controller with evaluate for all children= true combined with
JMeterThread.last_sample_ok
regards
deepak

On Tue, Dec 29, 2009 at 3:39 PM, Rod MacPherson <rmacpherson@healthation.com
> wrote:

> We want to maintain a given load but we do not want threads with failed
> assertions to continue? We do not want the load to trickle to zero over
> time (by stopping threads that fail an assertion) and we do not want to
> generate bogus errors by allowing a failed thread to continue. In effect
> we want "Restart Thread On Error".
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

If Error Then Restart Thread

Posted by Rod MacPherson <rm...@healthation.com>.
We want to maintain a given load but we do not want threads with failed
assertions to continue? We do not want the load to trickle to zero over
time (by stopping threads that fail an assertion) and we do not want to
generate bogus errors by allowing a failed thread to continue. In effect
we want "Restart Thread On Error".  

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


RE: Problem with Xpath extractor and SOAP response

Posted by Andrey Pohilko <ap...@fininfor.ru>.
Hi!

Could you give us example of your Xpath extractor settings to test with this
response text? 

 
С уважением,
Андрей Похилько
-----Original Message-----
From: danigv [mailto:danigv86@hotmail.com] 
Sent: Tuesday, December 29, 2009 1:03 PM
To: jmeter-user@jakarta.apache.org
Subject: Problem with Xpath extractor and SOAP response


Hi,

im trying to extract CODI_LOCALITAT value from this response:

<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:registrarITResponse xmlns:ns1=""
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xmlns:ns2="http://xxxxxx.presentacio.webservices/IRegistrarItWS.xsd"
xsi:type="ns2:xxxxxx_EnregistrarItVO">
<adressa xsi:type="ns2:xxxxxx_AdressaVO">
<BLOC xsi:type="xsd:string">1</BLOC>
<CODI_LOCALITAT xsi:type="xsd:string">08850</CODI_LOCALITAT>
......

I tryed a few types of querys byt anyone works.
Can anyone help me??

Thanks!!!!!
-- 
View this message in context:
http://old.nabble.com/Problem-with-Xpath-extractor-and-SOAP-response-tp26952
843p26952843.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org