Service Virtualization

 View Only
Expand all | Collapse all

How to use multipart REST request in LISA

  • 1.  How to use multipart REST request in LISA

    Posted Jan 20, 2016 07:27 AM
      |   view attached

    I am using lisa 8.1 , unable to send the multipart request using lisa REST step.

    .REST step details.are attached in the  screenshot.

     

    Let me know if any global property that we need to set in the local.properties file or is there a way to get this working in devtest(lisa)

     

    from soap UI i am able to test the same request which has a mulipart message option as well: below is the soap ui raw request:

     

    POST https://<<server>>:1122/api/v1/testClaims HTTP/1.1

    Accept-Encoding: gzip,deflate

    Content-Type: multipart/form-data; boundary="----=_Part_0_5121047.1453290094034"

    MIME-Version: 1.0

    Authorization: Basic xyxxxxxx=

    Content-Length: 1609

    Host: myhost.com:1122

    Connection: Keep-Alive

    User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

     

    ------=_Part_0_5121047.1453290094034

    Content-Type: application/json; name="mymessage-Message - Flood.json"

    Content-Transfer-Encoding: binary

    Content-Disposition: form-data; name="mymessage-Message"; filename="mymessage-Message - Flood.json"

     

     

    {

        "dateOfIncident": "2016-01-05",

        "typeOfClaim": "Flood",

        "consumer": "myconsumer",

      "incidentDescription": "myFlood",



  • 2.  Re: How to use multipart REST request in LISA

    Posted Jan 26, 2016 10:33 AM

    when soap UI can support, can lisa achieve this in REST Step ?