Forum Discussion
maddzy
Occasional Contributor
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
nmrao
8 years agoChampion Level 3
I believe that you should be able to type "multipart/related". Isn't the case? Then please show the screen shot.
- maddzy8 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
- nmrao8 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?- maddzy8 years agoOccasional Contributor
Hi,
1. Yes it is.
2. Yes that is the correct type.
3. See attached.
4. Yes the cid is matching.
Dave
Related Content
Recent Discussions
- 5 days agoruchisingh