Service Virtualization

  • 1.  How to create Virtual Service response with Binary data in Response?

    Posted Nov 06, 2017 12:45 PM

    Hi Friends,


    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.

     

    Thanks,

    .



  • 2.  Re: How to create Virtual Service response with Binary data in Response?

    Posted Nov 07, 2017 10:36 AM

    Hello, 

     

    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.



  • 3.  Re: How to create Virtual Service response with Binary data in Response?

    Posted Nov 07, 2017 12:13 PM

    Hi Sai,

     

    I have response like below.

     

    ------=_Part_3_30345399.1413353227843
    Content-Type: text/xml; charset=utf-8
    Content-Transfer-Encoding: binary
    Content-ID: <0B3A679477B4CAF5DE758AE60EB20769>

     

    <Response XML>

     

    ------=_Part_3_30345399.1413353227843
    Content-Type: text/html
    Content-Transfer-Encoding: binary
    Content-ID: <CA303B5BB1B9090AFBE6A5D3CFEDAC45>

     

    Thanks,

    Venu



  • 4.  Re: How to create Virtual Service response with Binary data in Response?
    Best Answer

    Posted Nov 07, 2017 10:43 AM


  • 5.  Re: How to create Virtual Service response with Binary data in Response?

    Posted Nov 07, 2017 04:41 PM

    Hi Joel,

     

    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.

     

    Thanks,

    Venu