Forum Discussion
https://www.soapui.org/rest-testing/working-with-rest-requests.html
https://www.soapui.org/soap-and-wsdl/headers-and-attachments.html
http://stackoverflow.com/questions/12467901/soapui-multipart-form-data-rest-request-with-file-attachments
Thanks Rao,
I am already familiar with how to add attachments and headers in SoapUI.
My question is "Is there a workaround to let me use the multipart/related Content-Type header in SoapUI?"
The only multipart headers SoapUI provides is multipart/form-data and multipart/mixed.
Any help is appreciated,
Dave
- OriginalName39 years agoOccasional Visitor
I ran into the same issue with a previous project of mine. What I ended up doing was abandoning SoapUI and testing through a local Java Application I created. Sadly it was the only way I could find to move forward.
That being said, I absolutely loved using SoapUI and was really surprised to find this isn't possible. I hope this gets fixed because I'd like to use it again in future projects. - nmrao9 years agoChampion Level 3I believe that you should be able to type "multipart/related". Isn't the case? Then please show the screen shot.
- maddzy9 years agoOccasional Contributor
Hi Rao,
I have tried to type in "multipart/related" manually, but no attachment is actually added when you do that.
I have attached a screenshot where I have typed in "multipart/related" and here is the raw output of that request:
POST http://localhost:8280/ab/service/dri HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: multipart/related;charset=UTF-8 Content-Transfer-Encoding: binary Content-Length: 1467 Host: localhost:8280 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5) <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> <ac:PostRq xmlns:ac="http://www.ACORD.org/Standards/AcordMsgSvc/1.4.0" xmlns="http://www.ACORD.org/Standards/AcordMsgSvc/Inbox" xsi:schemaLocation="http://www.ACORD.org/Standards/AcordMsgSvc/1.4.0 AcordMsgSvc_v-1-4-0.xsd"> <ac:Sender> <ac:PartyId>urn:duns:236196817</ac:PartyId> <ac:PartyRoleCd>ServiceProvider</ac:PartyRoleCd> <ac:PartyName>Xchanging</ac:PartyName> </ac:Sender> <ac:Receiver> <ac:PartyId>urn:lloyds:1274</ac:PartyId> <ac:PartyRoleCd>Insurer</ac:PartyRoleCd> <ac:PartyName>ACORD Testing Agent</ac:PartyName> </ac:Receiver> <ac:Application> <ac:ApplicationCd>ACORD-Repository</ac:ApplicationCd> <ac:SchemaVersion>http://www.ACORD.org/Standards/AcordMsgSvc/1.4.0</ac:SchemaVersion> </ac:Application> <ac:TimeStamp>2016-08-29T07:20:42-04:00</ac:TimeStamp> <ac:MsgItem> <ac:MsgId>3c43f778-2d8a-4dba-b6d9-ec86974e4c59</ac:MsgId> <ac:MsgTypeCd>RepositoryOperationRs</ac:MsgTypeCd> </ac:MsgItem> <ac:WorkFolder> <ac:MsgFile> <ac:FileId>cid:828f430d-6848-4227-ba6e-fe79dfe970fc</ac:FileId> <ac:FileFormatCd>text/xml</ac:FileFormatCd> </ac:MsgFile> </ac:WorkFolder> </ac:PostRq> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Thanks for your replies, I appreciate the suggestions.
Dave
- nmrao9 years agoChampion Level 31. Is this request in a Test Suite -> Test Case -> Test Step?
2. Is the attachment type right?
<ac:FileFormatCd>text/xml</ac:FileFormatCd>
3. Can you show the screen shot by clicking on Attachment(1)?
4. Is cid matching?
Related Content
- 10 years ago
Recent Discussions
- 15 years ago