Service Virtualization

 View Only
  • 1.  POST Request Header Validation

    Posted Aug 12, 2020 02:45 PM
    Hi All,

    We have scenario to virtualize POST request JSON message. We need to validate the Header sent in request for mandatory fields.

    I have used RR Pair with request file having Header at the start followed by JSON Body and have used JSON Data protocol. But with this approach Header is set in the metadata tab and is not available for adding validation .

    Can anyone please suggest a way to handle this scenario?


  • 2.  RE: POST Request Header Validation

    Broadcom Employee
    Posted Aug 12, 2020 03:06 PM
    Hi Ekta,

    Try using Request Data Manger DPH and make the Hearer data as argument for matching transaction which should help yopu.

    Documentation on Request Data Manager DPH is available at https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/devops/devtest-solutions/10-6/using/using-service-virtualization/using-devtest-workstation-with-service-virtualization/creating-service-images/using-data-protocols/request-data-manager-data-protocol.html.

    -Prema



  • 3.  RE: POST Request Header Validation

    Posted Aug 13, 2020 12:56 AM
    Hi Ekta,

    You can use RDP for the same.

    PFB the screenshot for the same:


    Post adding a parameter from header, the vsi will look as below:

    Thanks


    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------