Service Virtualization

  • 1.  I need to stub an XML request that gets SOAP Response + PDF Attachment(Binary Format)

    Posted Mar 14, 2016 03:12 AM

    Hi Team,

     

    I have a requirement where i have a SOAP Request and when this request reaches Lisa, the response has the Soap Response and also a PDF Document that comes as an attachment.

    This PDF Document is in binary format.

     

    Can someone please help.

     

    Thanks

    Krishna



  • 2.  Re: I need to stub an XML request that gets SOAP Response + PDF Attachment(Binary Format)



  • 3.  Re: I need to stub an XML request that gets SOAP Response + PDF Attachment(Binary Format)

    Posted Mar 15, 2016 07:55 AM

    Thanks sdetweil2. I was able to successfully stub just the PDF File which is in binary format.

    But my requirement is something like this to be more clear

     

    1. SOAP Request A.xml reaches Middleware M

    2. Now the Middleware responds back with Aresponse.xml and along with this a PDF File as well comes as attachment (Soap Response that has attachment) looks something like this

    -----=_Part_0_15742342.145343243

    Content-Type: text/xml; charset=utf-8

    Content-Transfer-Encoding: binary

    Content-Id: <213456654434543>

     

    <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:

    -----

    ----

    --

    -

    </Aresponse>

    </soapenv:Body>

    </soapenv:Envelope>

    ------=_Part_0_15742342.145343243

    Content-Type: application/pdf

    Content-Transfer-Encoding: binary

    Content-Id: <EBF7DF6EAB32B0970B33B96138F6C306>

     

     

    %PDF-1.4

    %????

    1 0 obj

    <<

    /Author  

    ----some binary text here

    --

    --

    -

    %%EOF

    ------=__Part_0_15742342.145343243--

     

     



  • 4.  Re: I need to stub an XML request that gets SOAP Response + PDF Attachment(Binary Format)

    Posted Mar 15, 2016 08:05 AM

    I haven't done this, but it may require a script to build the package to get the content headers properly.



  • 5.  Re: I need to stub an XML request that gets SOAP Response + PDF Attachment(Binary Format)

    Posted Dec 16, 2016 10:07 AM

    Hello Lalitha,

     

    Is thi sorted , if yes then please guide us. I tried same thing and testing using SOAP UI , not getting positive result. It is impacting our testing. Please help on priority.

     

    Any one SME please help me.

     

    thanks..

    Shivam Garg