Jmeter does not support Soap Request with attachment. I have a Soap Web Service that has a file parameter and that file needs to be attached with request. Jmeter UI has no option to attach file using WebService(SOAP) Request.
It is a feature Request and if this has already been fixed then please provide the Build.
Hello, What is your Jmeter version ? What is the kind of Webservice you are testing ? is it Soap with Attachments ? as per: http://www.w3.org/TR/SOAP-attachments or somethinkg else ? Anyway your request is a enhancement not a bug. Regards Philippe
Hi, Jmeter version is 2.6 r1237317. Yes i am testing Soap with Attachments where i am passing the Soap envelope as: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hip="http://pb.com/engageone/hubble/HipGenService" xmlns:xm="http://www.w3.org/2005/05/xmlmime"> <soapenv:Header/> <soapenv:Body> <hip:generateTemplateHip> <hip:templateXML xm:contentType="application/?"> <xop:Include href="cid:TestTemplate.xml" xmlns:xop="http://www.w3.org/2004/08/xop/include"> </xop:Include> </hip:templateXML> </hip:generateTemplateHip> </soapenv:Body> </soapenv:Envelope> and i need to attach a template file along with the request. Please confirm if J meter supports this feature some how or you guys are working on this Feature. Thanks, Arti
Can you try your request in something like Soap UI or Fiddler or tcpproxy and attach it here ? I am not sure you're using the same specification. Furthermore in your previous request, you are declaring xm prefix associated to http://www.w3.org/2005/05/xmlmime, but I don't see any usage of it in your request. Is it the complete request ? Regards Philippe
Created attachment 29142 [details] bug screenshot
Hi, Yes I am able to receive correct response in SoapUI because there is a feature of attaching file with Soap Request. i am attaching XML and RAW request of SoapUI: XML- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hip="http://pb.com/engageone/hubble/HipGenService" xmlns:xm="http://www.w3.org/2005/05/xmlmime"> <soapenv:Header/> <soapenv:Body> <hip:generateTemplateHip> <hip:templateXML xm:contentType="application/?"> <xop:Include href="cid:TestTemplate.xml" xmlns:xop="http://www.w3.org/2004/08/xop/include"> </xop:Include> </hip:templateXML> </hip:generateTemplateHip> </soapenv:Body> </soapenv:Envelope> RAW Request- POST http://DRSDEV.pbi.global.pvt/axis2/services/HipGenSvc HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: multipart/related; type="application/xop+xml"; start="<rootpart@soapui.org>"; start-info="text/xml"; boundary="----=_Part_40_15477882.1343732046466" SOAPAction: "generateTemplateHip" MIME-Version: 1.0 RAW Response received: HTTP/1.1 200 OK Date: Tue, 31 Jul 2012 10:54:08 GMT Server: Apache/2.2.22 (Win32) Axis2C/1.6.0 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: multipart/related; boundary=MIMEBoundaryd557645a-4c5d-478f-ad1b-71305c23e3f3; type="application/xop+xml"; start="<0.17dde13d-75a6-4d59-8f16-c8a98764ea7f@apache.org>"; start-info="text/xml"; charset="UTF-8" --MIMEBoundaryd557645a-4c5d-478f-ad1b-71305c23e3f3 content-transfer-encoding: binary content-id: <0.17dde13d-75a6-4d59-8f16-c8a98764ea7f@apache.org> content-type: application/xop+xml;charset=UTF-8;type="text/xml"; <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><hgs:generateTemplateHipResponse xmlns:hgs="http://pb.com/engageone/hubble/HipGenService"><hgs:hipFile><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:Package_Template1_0fe0a825-66dd-44c1-85f8-68e67405a7aa"></xop:Include></hgs:hipFile></hgs:generateTemplateHipResponse></soapenv:Body></soapenv:Envelope> --MIMEBoundaryd557645a-4c5d-478f-ad1b-71305c23e3f3 content-transfer-encoding: binary content-id: <Package_Template1_0fe0a825-66dd-44c1-85f8-68e67405a7aa> content-type: application/octet-stream
Main Issue is i have bno idea where to attach the file in Web service soap request in Jmeter.
You CAN try: Regular http sampler with raw request as body. It has attach file option. Comment if it worked for you. Regards Philippe
I tried but getting error sending screenshot attached.
Created attachment 29146 [details] Soap request created as http request
Hello, WOuld it be possible for you to attach your WSDL removing any server or private information ? Thank you Regards
Hi, Please find the web service file for your reference and provide an update on same?
Created attachment 29176 [details] Sample wsdl
Could you attach here your soap project ? Thanks
Created attachment 29523 [details] SoapUI Project file
Hi, I have uploaded SoapUI project file.
Hi Has there been any enhancement made for this bug? Is soap with mtom attachment supported in any jmeter version
The SOAP sampler has been removed from JMeter. Only HTTP Sampler which means that you have implement XOP on your own. You'd be better off with https://github.com/spinning10/JMeterSoapSampler/wiki
for version 5.0 of Jmeter there is something implemented that solves the sending of attachments of a soap service in Jmeter, I need to send a different file in each request. Thank you