I got one requirement in which we want to attach one image file with response in VSI (Virtual Service Image). After that when we will test that service with DevTest/SOAP UI, we want that stubbed response with attachment.
Response have SOAP message along with image details as binary data.
I am using Devtest 8.5.
I have never tried with image but below might be give you an idea on how to change the response.
Step#1: Goto Response body
Step#2: Click on settings icon(looks very small)
Step#3: Click on General -> Select General Image or Binary(based on your requirement)
Note: You might also need to know the character set to use for conversion.
Please check and let me know if this helps.
I have response like below.
------=_Part_3_30345399.1413353227843Content-Type: text/xml; charset=utf-8Content-Transfer-Encoding: binaryContent-ID: <0B3A679477B4CAF5DE758AE60EB20769>
------=_Part_3_30345399.1413353227843Content-Type: text/htmlContent-Transfer-Encoding: binaryContent-ID: <CA303B5BB1B9090AFBE6A5D3CFEDAC45>
See if this tech tip helps. Tech Tip #47: DevTest 8.2 - How To - Service Virtualization - SOAP With Attachments
Thanks for your reply. I have gone through the documentation which you proposed.
My requirement is, I have a SOAP request and response pairs and in response file have binary data which can send .PNG file. when we sent request through client, response should have soap message along with .PNG file.