jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: how to put a byte array in the SOAP request of Jmeter
Date Thu, 22 Apr 2010 12:05:38 GMT
If you are referring to the SOAPAction just set this in the header manager.

Also, both SOAP samplers allow one to send the contents of a file.
Have you tried creating the file with the contents you want?

On 22/04/2010, thorr09 <bvili009@gmail.com> wrote:
>
>  Thanks for your reply...
>  Hmm...I am not sure how could I use the http sampler, I do not know where to
>  put the webmethod name that needs to be tested.
>
>
>  sebb-2-2 wrote:
>  >
>  > On 22/04/2010, thorr09 <bvili009@gmail.com> wrote:
>  >>
>  >>  Hi guys,
>  >>
>  >>  I am trying to test a webservice I have currently written in Java. The
>  >>  method that is called remotely looks like this transfer(byte[] document,
>  >>  String name, Boolean compressed). I want to use Jmeter. I have created a
>  >>  thread group, a WebService(SOAP) Request sampler. I have also loaded the
>  >>  wsdl file. My question is related to the SOAP/xml-rpc data field. I
>  >> should
>  >>  put here the SOAP request. My problem is that i do not know how to send
>  >> a
>  >>  document as byte array to the method?
>  >>
>  >>  I post a part from my request so far:
>  >>
>  >>  <doc:transfer
>  >>  soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
>  >>          <document xsi:type="xsd:base64Binary">?</document>
>  >>
>  >>          <name xsi:type="soapenc:string"
>  >>
>  >> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">fileName</name>
>  >>
>  >>           <compressed xsi:type="soapenc:boolean"
>  >>
>  >> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">false</compressedt>
>  >>
>  >>  </doc:transfer>
>  >>
>  >>  As you see, I have no problem putting the string value and the boolean
>  >> value
>  >>  to the two parameters. But I do not know how to convert a file to byte
>  >> array
>  >>  and put that value to the document tag in the SOAP request. What I would
>  >>  like to do is to test my application for several different files taken
>  >> from
>  >>  the file system.
>  >>
>  >>  I would really appreciate if you could help me out. Thank you!
>  >
>  > You don't have to use the SOAP sampler.
>  >
>  > You could potentially use the HTTP Sampler, which can send files.
>  >
>  >> --
>  >>  View this message in context:
>  >> http://old.nabble.com/how-to-put-a-byte-array-in-the-SOAP-request-of-Jmeter-tp28326240p28326240.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/how-to-put-a-byte-array-in-the-SOAP-request-of-Jmeter-tp28326240p28327637.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


Mime
View raw message