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 <[email protected]> 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 <[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] > > > > > > > > > -- > 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: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

