have you read the user manual?

http://jakarta.apache.org/jmeter/usermanual/build-ws-test-plan.html

usually this kind of error occurs because Apache SOAP doesn't like the
message. Make sure the message has <?xml .... > and the namespaces are
correct.

peter


On 11/14/05, Richard Gaywood <[EMAIL PROTECTED]> wrote:
>
> Sorry to keep plaguing the list like this, I think I'm being a bit thick
> this month but I just keep failing to grasp what JMeter is telling me :o(
>
> I've moved on from SQL testing for the moment as our senior DBA is tied up
> on another project and am currently trying to test a SOAP-driven web
> service. I've been using the WebService(SOAP) Request component, which
> seems
> to offer all the functionality I want -- the WSDL parsing is certainly
> working. However, when I try and run the test I get this error message in
> jmeter.log:
>
>
> 2005/11/14 16:20:34 ERROR - jmeter.threads.JMeterThread:
> java.lang.IllegalArgumentException: Root element of a SOAP message must
> be:
> 'http://schemas.xmlsoap.org/soap/envelope/:Envelope'.
> at org.apache.soap.Envelope.unmarshall(Envelope.java:306)
> at org.apache.soap.Envelope.unmarshall(Envelope.java:228)
> at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(
> WebServiceSampler.java:458)
> at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(
> HTTPSamplerBase.java:503)
> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
> at java.lang.Thread.run(Unknown Source)
>
> Thing is, I think my SOAP request is right. Here is the text in the
> "SOAP/XML-RPC Data" field of the WebService Request configuration form in
> the JMeter GUI:
>
> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soap="
> http://schemas.xmlsoap.org/soap/envelope/";>
> <soap:Body>
> <MyStuff />
> </soap:Body>
> </soap:Envelope>
>
> Now, I reckon the outermost tag is pretty definitely <soap:Envelope>
> there,
> so what is the error message in the logs really trying to tell me? I have
> a
> logging proxy running between JMeter and the server, so I know JMeter
> isn't
> making it as far as putting any requests out on the wire -- so it can't be
> anything server-side.
>
>

Reply via email to