| || |
how to put a byte array in the SOAP request of Jm
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:
<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>
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!