Bug 53628 - Feature Request -Jmeter does not support Soap Request with attachment.
Summary: Feature Request -Jmeter does not support Soap Request with attachment.
Status: NEEDINFO
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 5.0
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-31 10:11 UTC by Arti Tripathi
Modified: 2019-02-21 14:15 UTC (History)
1 user (show)



Attachments
bug screenshot (270.50 KB, application/msword)
2012-07-31 11:06 UTC, Arti Tripathi
Details
Soap request created as http request (254.50 KB, application/msword)
2012-08-01 06:05 UTC, Arti Tripathi
Details
Sample wsdl (3.98 KB, application/xml)
2012-08-07 08:46 UTC, Arti Tripathi
Details
SoapUI Project file (17.81 KB, text/xml)
2012-10-30 05:52 UTC, Arti Tripathi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arti Tripathi 2012-07-31 10:11:43 UTC
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.
Comment 1 Arti Tripathi 2012-07-31 10:13:31 UTC
It is a feature Request and if this has already been fixed then please provide the Build.
Comment 2 Philippe Mouawad 2012-07-31 10:16:53 UTC
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
Comment 3 Arti Tripathi 2012-07-31 10:21:07 UTC
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
Comment 4 Philippe Mouawad 2012-07-31 10:40:52 UTC
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
Comment 5 Arti Tripathi 2012-07-31 11:06:48 UTC
Created attachment 29142 [details]
bug screenshot
Comment 6 Arti Tripathi 2012-07-31 11:09:16 UTC
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
Comment 7 Arti Tripathi 2012-07-31 11:10:14 UTC
Main Issue is i have bno idea where to attach the file in Web service soap request in Jmeter.
Comment 8 Philippe Mouawad 2012-07-31 11:16:46 UTC
You CAN try:
Regular http sampler with raw request as body.
It has attach file option.
Comment if it worked for you.
Regards
Philippe
Comment 9 Arti Tripathi 2012-08-01 06:04:07 UTC
I tried but getting error sending screenshot attached.
Comment 10 Arti Tripathi 2012-08-01 06:04:53 UTC
I tried but getting error sending screenshot attached.
Comment 11 Arti Tripathi 2012-08-01 06:05:43 UTC
Created attachment 29146 [details]
Soap request created as http request
Comment 12 Philippe Mouawad 2012-08-03 08:27:07 UTC
Hello,
WOuld it be possible for you to attach your WSDL removing any server or private information ?

Thank you
Regards
Comment 13 Arti Tripathi 2012-08-07 08:44:36 UTC
Hi,
Please find the web service file for your reference and provide an update on same?
Comment 14 Arti Tripathi 2012-08-07 08:45:12 UTC
Hi,
Please find the web service file for your reference and provide an update on same?
Comment 15 Arti Tripathi 2012-08-07 08:46:02 UTC
Created attachment 29176 [details]
Sample wsdl
Comment 16 Philippe Mouawad 2012-08-20 21:04:03 UTC
Could you attach here your soap project ?
Thanks
Comment 17 Arti Tripathi 2012-10-30 05:52:01 UTC
Created attachment 29523 [details]
SoapUI Project file
Comment 18 Arti Tripathi 2012-10-30 05:52:47 UTC
Hi,

I have uploaded SoapUI project file.
Comment 19 Soap27 2015-07-09 02:54:09 UTC
Hi

Has there been any enhancement made for this bug?
Is soap with mtom attachment supported in any jmeter version
Comment 20 Michael Osipov 2018-12-04 16:12:51 UTC
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
Comment 21 Johan 2019-02-21 14:15:45 UTC
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