On 22/04/2010, thorr09 <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

