You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Mark Courneyea <ma...@autoskill.com> on 2004/02/10 23:34:22 UTC
Using proxy to record script with xml POSTed to servlet - help!
So I got the JMeter proxy to work in order to record test scripts - very nice - but when it arrives at a POST with xml data, it seems to need to resolve the xml into a name/value pair.
After searching this mailing list, I seemed to come up with 2 possible solutions as work arounds:
1) use a header manager to change content-type to text/xml
Result: the content-type as shown in the recorded test script is already text/xml so that can't be the problem
2) use a SOAP/XML-RPC sampler
Result: nothing. I added it as a child to the original http request. When that didn't work, I tried putting it at the same level, just after the original http request. I made sure the garbled xml was removed from the name\value list in the original. I made sure the proper name\value pairs were added to the original.
My first question is - is this a bug in the script recording from the proxy or something I am doing? I am so hoping it is something I am doing.
My second question is - assuming I am working with a bug, is the work around I am attempting possible? If so, can someone point me in the right direction?
Any and all help is appreciated.
Mark Courneyea
Software Specialist
AutoSkill International
http://www.autoskill.com
(613) 235-6740 ext. 269
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Using proxy to record script with xml POSTed to servlet - help!
Posted by Jordi Salvat i Alabart <js...@atg.com>.
The Proxy and HTTP Sampler components are currently capable only of
handling requests in application/x-www-urlencoded and
multipart/form-data formats. (And the later still has limitations in
that it can transfer one single file parameter). Their behaviour in
handling anything else is undefined.
The SOAP/XML sampler is a sampler by itself. You should create one such
component INSTEAD of the failing HTTP Sampler.
--
Salut,
Jordi.
Mark Courneyea wrote:
> So I got the JMeter proxy to work in order to record test scripts - very nice - but when it arrives at a POST with xml data, it seems to need to resolve the xml into a name/value pair.
>
> After searching this mailing list, I seemed to come up with 2 possible solutions as work arounds:
>
> 1) use a header manager to change content-type to text/xml
>
> Result: the content-type as shown in the recorded test script is already text/xml so that can't be the problem
>
> 2) use a SOAP/XML-RPC sampler
>
> Result: nothing. I added it as a child to the original http request. When that didn't work, I tried putting it at the same level, just after the original http request. I made sure the garbled xml was removed from the name\value list in the original. I made sure the proper name\value pairs were added to the original.
>
> My first question is - is this a bug in the script recording from the proxy or something I am doing? I am so hoping it is something I am doing.
>
> My second question is - assuming I am working with a bug, is the work around I am attempting possible? If so, can someone point me in the right direction?
>
> Any and all help is appreciated.
>
>
> Mark Courneyea
> Software Specialist
> AutoSkill International
> http://www.autoskill.com
> (613) 235-6740 ext. 269
>
>
>
> ---------------------------------------------------------------------
> 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