You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Bronagh McElduff <Br...@mobilecohesion.com> on 2005/11/16 13:25:54 UTC

Webservice sampler - mulitpart support

Hi all,

Does JMeter support mulltipart webservice requests?  My understanding 
was that it did.  However, I have found that the following occurs:

Testcase 1:
SOAP request sent using web service sampler (no attached mimetypes).
An ethereal snoop on the port to which JMeter is sending captures the 
request.

Testcase 2:
SOAP request (same as used in tc1) sent using web service sampler with 
following multipart message.
Regardless of whether this request is sent as an attached file or 
submitted via the test area of the Webservice sampler, an ethereal snoop 
on the port to which JMeter is sending indicates that no request has 
been send out from JMeter

--CC_MIME_BOUNDARY
Content-Type: multipart/mixed; 
boundary="----=_Part_0_14434757.1105641565812"
MIME-Version: 1.0

------=_Part_0_14434757.1105641565812
Content-Type: application/smil; charset="utf-8"
MIME-Version: 1.0
Content-ID: <frog.smil>
Content-Location: frog.smil
Content-Transfer-Encoding: quoted-printable

<?xml=20version=3D"1.0"=20encoding=3D"utf-8"?>

<!DOCTYPE=20smil=20PUBLIC=20"-//W3C//DTD=20SMIL=202.0//EN"

=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20"http://www.w3.org/2001/SMIL20=

/SMIL20.dtd">

<smil=20xmlns=3D"http://www.w3.org/2001/SMIL20/Language">

=09<head>

=09=09<layout>

=09=09=09<root-layout=20width=3D"320"=20height=3D"240"=20title=3D"My=20SMIL=

=20message=C3=A7=C3=A9"/>

=09=09=09<region=20id=3D"Image"=20width=3D"150"=20height=3D"60"=20left=3D"0=

"=20top=3D"0"/>

=09=09=09<region=20id=3D"Text"=20width=3D"150"=20height=3D"35"=20left=3D"0"=

=20top=3D"70"/>

=09=09</layout>

=09</head>

=09<body>

=09=09<par=20dur=3D"4s">

=09=09=09<img=20src=3D"frog.gif"=20region=3D"Image"/>

=09=09=09<text=20src=3D"frog.txt"=20region=3D"Text"/>

=09=09</par>

=09</body>

</smil>


------=_Part_0_14434757.1105641565812
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-ID: <frog.txt>
Content-Location: frog.txt
Content-Transfer-Encoding: quoted-printable

This=20is=20a=20green=20jumping=20frog.=C3=A7=C3=A9

------=_Part_0_14434757.1105641565812
Content-Type: image/jpeg; charset="utf-8"
MIME-Version: 1.0
Content-ID: <2.jpg>
Content-Location: 2.jpg
Content-Transfer-Encoding: base64

/9j/4AAQSkZJRgABAQEASABIAAD//gAXQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q/9sAQwD/////////
////////////////////////////////////////////////////////////////////////////
/9sAQwH/////////////////////////////////////////////////////////////////////
/////////////////8AAEQgAAgACAwEiAAIRAQMRAf/EABUAAQEAAAAAAAAAAAAAAAAAAAAD/8QA
FBABAAAAAAAAAAAAAAAAAAAAAP/EABQBAQAAAAAAAAAAAAAAAAAAAAD/xAAUEQEAAAAAAAAAAAAA
AAAAAAAA/9oADAMBAAIRAxEAPwCYAP/Z
------=_Part_0_14434757.1105641565812
Content-Type: image/gif; charset="utf-8"
MIME-Version: 1.0
Content-ID: <1.gif>
Content-Location: 1.gif
Content-Transfer-Encoding: base64

R0lGODdhAgACAIAAAAAAABQUFCwAAAAAAgACAAACAoRTADs=
------=_Part_0_14434757.1105641565812--
--CC_MIME_BOUNDARY--

Any help would be much appreciated.

Kind regards,
Bronagh






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


Re: Webservice sampler - mulitpart support

Posted by Peter Lin <wo...@gmail.com>.
hmm, looks like apache SOAP is slowly being phased out and the javadocs have
been retired.  I'm looking into switching to Apache AXIS, which has better
support for multi-part attachements.

peter

Re: Webservice sampler - mulitpart support

Posted by Bronagh McElduff <Br...@mobilecohesion.com>.
Thanks for the prompt response, Peter. Will raise the enhancement now.
Cheers,
Bronagh

Peter Lin wrote:

>Although Apache SOAP supports multiplart, more work is probably needed to
>provide support for it in the webservice sampler. please open an enhancement
>bugzilla for it. right now I'm not sure what it would take to implement it,
>but I can take this weekend.
>
>thanks
>
>peter
>
>
>On 11/16/05, Bronagh McElduff <Br...@mobilecohesion.com> wrote:
>  
>
>>Hi all,
>>
>>Does JMeter support mulltipart webservice requests? My understanding
>>was that it did. However, I have found that the following occurs:
>>
>>Testcase 1:
>>SOAP request sent using web service sampler (no attached mimetypes).
>>An ethereal snoop on the port to which JMeter is sending captures the
>>request.
>>
>>Testcase 2:
>>SOAP request (same as used in tc1) sent using web service sampler with
>>following multipart message.
>>Regardless of whether this request is sent as an attached file or
>>submitted via the test area of the Webservice sampler, an ethereal snoop
>>on the port to which JMeter is sending indicates that no request has
>>been send out from JMeter
>>
>>--CC_MIME_BOUNDARY
>>Content-Type: multipart/mixed;
>>boundary="----=_Part_0_14434757.1105641565812"
>>MIME-Version: 1.0
>>
>>------=_Part_0_14434757.1105641565812
>>Content-Type: application/smil; charset="utf-8"
>>MIME-Version: 1.0
>>Content-ID: <frog.smil>
>>Content-Location: frog.smil
>>Content-Transfer-Encoding: quoted-printable
>>
>><?xml=20version=3D"1.0"=20encoding=3D"utf-8"?>
>>
>><!DOCTYPE=20smil=20PUBLIC=20"-//W3C//DTD=20SMIL=202.0//EN"
>>
>>=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20"
>>http://www.w3.org/2001/SMIL20=
>>
>>/SMIL20.dtd">
>>
>><smil=20xmlns=3D"http://www.w3.org/2001/SMIL20/Language">
>>
>>=09<head>
>>
>>=09=09<layout>
>>
>>
>>=09=09=09<root-layout=20width=3D"320"=20height=3D"240"=20title=3D"My=20SMIL=
>>
>>=20message=C3=A7=C3=A9"/>
>>
>>
>>=09=09=09<region=20id=3D"Image"=20width=3D"150"=20height=3D"60"=20left=3D"0=
>>
>>"=20top=3D"0"/>
>>
>>
>>=09=09=09<region=20id=3D"Text"=20width=3D"150"=20height=3D"35"=20left=3D"0"=
>>
>>=20top=3D"70"/>
>>
>>=09=09</layout>
>>
>>=09</head>
>>
>>=09<body>
>>
>>=09=09<par=20dur=3D"4s">
>>
>>=09=09=09<img=20src=3D"frog.gif"=20region=3D"Image"/>
>>
>>=09=09=09<text=20src=3D"frog.txt"=20region=3D"Text"/>
>>
>>=09=09</par>
>>
>>=09</body>
>>
>></smil>
>>
>>
>>------=_Part_0_14434757.1105641565812
>>Content-Type: text/plain; charset="utf-8"
>>MIME-Version: 1.0
>>Content-ID: <frog.txt>
>>Content-Location: frog.txt
>>Content-Transfer-Encoding: quoted-printable
>>
>>This=20is=20a=20green=20jumping=20frog.=C3=A7=C3=A9
>>
>>------=_Part_0_14434757.1105641565812
>>Content-Type: image/jpeg; charset="utf-8"
>>MIME-Version: 1.0
>>Content-ID: <2.jpg>
>>Content-Location: 2.jpg
>>Content-Transfer-Encoding: base64
>>
>>
>>/9j/4AAQSkZJRgABAQEASABIAAD//gAXQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q/9sAQwD/////////
>>
>>////////////////////////////////////////////////////////////////////////////
>>
>>/9sAQwH/////////////////////////////////////////////////////////////////////
>>
>>/////////////////8AAEQgAAgACAwEiAAIRAQMRAf/EABUAAQEAAAAAAAAAAAAAAAAAAAAD/8QA
>>
>>FBABAAAAAAAAAAAAAAAAAAAAAP/EABQBAQAAAAAAAAAAAAAAAAAAAAD/xAAUEQEAAAAAAAAAAAAA
>>AAAAAAAA/9oADAMBAAIRAxEAPwCYAP/Z
>>------=_Part_0_14434757.1105641565812
>>Content-Type: image/gif; charset="utf-8"
>>MIME-Version: 1.0
>>Content-ID: <1.gif>
>>Content-Location: 1.gif
>>Content-Transfer-Encoding: base64
>>
>>R0lGODdhAgACAIAAAAAAABQUFCwAAAAAAgACAAACAoRTADs=
>>------=_Part_0_14434757.1105641565812--
>>--CC_MIME_BOUNDARY--
>>
>>Any help would be much appreciated.
>>
>>Kind regards,
>>Bronagh
>>
>>
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>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


Re: Webservice sampler - mulitpart support

Posted by Peter Lin <wo...@gmail.com>.
Although Apache SOAP supports multiplart, more work is probably needed to
provide support for it in the webservice sampler. please open an enhancement
bugzilla for it. right now I'm not sure what it would take to implement it,
but I can take this weekend.

thanks

peter


On 11/16/05, Bronagh McElduff <Br...@mobilecohesion.com> wrote:
>
> Hi all,
>
> Does JMeter support mulltipart webservice requests? My understanding
> was that it did. However, I have found that the following occurs:
>
> Testcase 1:
> SOAP request sent using web service sampler (no attached mimetypes).
> An ethereal snoop on the port to which JMeter is sending captures the
> request.
>
> Testcase 2:
> SOAP request (same as used in tc1) sent using web service sampler with
> following multipart message.
> Regardless of whether this request is sent as an attached file or
> submitted via the test area of the Webservice sampler, an ethereal snoop
> on the port to which JMeter is sending indicates that no request has
> been send out from JMeter
>
> --CC_MIME_BOUNDARY
> Content-Type: multipart/mixed;
> boundary="----=_Part_0_14434757.1105641565812"
> MIME-Version: 1.0
>
> ------=_Part_0_14434757.1105641565812
> Content-Type: application/smil; charset="utf-8"
> MIME-Version: 1.0
> Content-ID: <frog.smil>
> Content-Location: frog.smil
> Content-Transfer-Encoding: quoted-printable
>
> <?xml=20version=3D"1.0"=20encoding=3D"utf-8"?>
>
> <!DOCTYPE=20smil=20PUBLIC=20"-//W3C//DTD=20SMIL=202.0//EN"
>
> =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20"
> http://www.w3.org/2001/SMIL20=
>
> /SMIL20.dtd">
>
> <smil=20xmlns=3D"http://www.w3.org/2001/SMIL20/Language">
>
> =09<head>
>
> =09=09<layout>
>
>
> =09=09=09<root-layout=20width=3D"320"=20height=3D"240"=20title=3D"My=20SMIL=
>
> =20message=C3=A7=C3=A9"/>
>
>
> =09=09=09<region=20id=3D"Image"=20width=3D"150"=20height=3D"60"=20left=3D"0=
>
> "=20top=3D"0"/>
>
>
> =09=09=09<region=20id=3D"Text"=20width=3D"150"=20height=3D"35"=20left=3D"0"=
>
> =20top=3D"70"/>
>
> =09=09</layout>
>
> =09</head>
>
> =09<body>
>
> =09=09<par=20dur=3D"4s">
>
> =09=09=09<img=20src=3D"frog.gif"=20region=3D"Image"/>
>
> =09=09=09<text=20src=3D"frog.txt"=20region=3D"Text"/>
>
> =09=09</par>
>
> =09</body>
>
> </smil>
>
>
> ------=_Part_0_14434757.1105641565812
> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-ID: <frog.txt>
> Content-Location: frog.txt
> Content-Transfer-Encoding: quoted-printable
>
> This=20is=20a=20green=20jumping=20frog.=C3=A7=C3=A9
>
> ------=_Part_0_14434757.1105641565812
> Content-Type: image/jpeg; charset="utf-8"
> MIME-Version: 1.0
> Content-ID: <2.jpg>
> Content-Location: 2.jpg
> Content-Transfer-Encoding: base64
>
>
> /9j/4AAQSkZJRgABAQEASABIAAD//gAXQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q/9sAQwD/////////
>
> ////////////////////////////////////////////////////////////////////////////
>
> /9sAQwH/////////////////////////////////////////////////////////////////////
>
> /////////////////8AAEQgAAgACAwEiAAIRAQMRAf/EABUAAQEAAAAAAAAAAAAAAAAAAAAD/8QA
>
> FBABAAAAAAAAAAAAAAAAAAAAAP/EABQBAQAAAAAAAAAAAAAAAAAAAAD/xAAUEQEAAAAAAAAAAAAA
> AAAAAAAA/9oADAMBAAIRAxEAPwCYAP/Z
> ------=_Part_0_14434757.1105641565812
> Content-Type: image/gif; charset="utf-8"
> MIME-Version: 1.0
> Content-ID: <1.gif>
> Content-Location: 1.gif
> Content-Transfer-Encoding: base64
>
> R0lGODdhAgACAIAAAAAAABQUFCwAAAAAAgACAAACAoRTADs=
> ------=_Part_0_14434757.1105641565812--
> --CC_MIME_BOUNDARY--
>
> Any help would be much appreciated.
>
> Kind regards,
> Bronagh
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>