Service Virtualization

  • 1.  Binary Reponse in Image File

    Posted Aug 05, 2016 07:29 AM

    Hi,

     

    We are vitualizing MQ transactions and expecting image file in readable format.

    Response Data format is in binary(Image1) and converting it to text using script able data protocol:

     

    byte [] b = lisa_vse_response.getBodyBytes ();

    String s = new String(b, "x-IBM1025");

    lisa_vse_response.setBodyText (s);

     

    After Scriptable data protocol window we can see transactions in text format(image2),but while creating image file we are getting a warning message(image3) and image file created as binary.

     

    If any one have the solution please respond to this case.

     

    Thanks

    victorious



  • 2.  Re: Binary Reponse in Image File

    Posted Aug 05, 2016 08:47 AM

    Images missing!!!



  • 3.  Re: Binary Reponse in Image File

    Posted Aug 06, 2016 10:48 AM

    Did you try changing the content-type to whatever format you needed and tested it ?



  • 4.  Re: Binary Reponse in Image File

    Posted Aug 08, 2016 04:03 AM

    Hi,

     

    In Data protocol window i changed the format using scriptable data protocol and able to see converted format in next window(image2),while creating VSI we are getting the warning.

     

    Thanks

    Jaya



  • 5.  Re: Binary Reponse in Image File

    Posted Aug 08, 2016 12:36 AM

    Hi Vishnu,

     

    I too faced the same issue some time back. This might be because of the encoding. Please refer to the below thread.

    https://communities.ca.com/thread/241751648



  • 6.  Re: Binary Reponse in Image File

    Posted Aug 08, 2016 04:01 AM

    Hi,

     

    i checked your post too, that solution worked for you?

     

    By changing request\response format  to UTF-16 Little Endian are you able to get expected request\response?

     

    Please share the solution worked for you.

     

    Thanks

    Jaya



  • 7.  Re: Binary Reponse in Image File
    Best Answer

    Posted Aug 09, 2016 05:49 AM

    I was able to get through this, using encoding.

     

    Regards,

    Aman.



  • 8.  Re: Binary Reponse in Image File

    Posted Aug 09, 2016 09:08 AM

    Hi Amam,

     

    Thanks for the inputs, In your case you are generating image and model file using RR pair where you have option Encoding.

     

    In my case image and model files are generated by recording,please let me know where can i using encoding while recording the transactions.

     

    Regards

    Jaya



  • 9.  Re: Binary Reponse in Image File

    Posted Aug 10, 2016 09:48 AM

    Did you mean Content-Type is send to 'Encoding' or some other encoding method



  • 10.  Re: Binary Reponse in Image File

    Posted Aug 10, 2016 09:59 AM

    Hi,

     

    We are Virtualization MQ Transactions,while recording using convert options(Encoding and charcter set) we are able to get response in readable format.

     

    Earlier we are getting in binary format,using scriptable dataprotocal we are getting warnings.

    CA.png

    Attached snap shot for reference.

     

    Thanks

    Jaya