Service Virtualization

 View Only
  • 1.  how to pass the dynamic header values from request headers to response headers

    Posted Oct 21, 2020 11:49 AM
    Team,
    Please could you help us with the technical assistance on the below request.
     
    We need to pass the header values from request to response which are dynamic.
    For example header keys are message-id=200, con-id=100 (200,100 header values changes with every request).
    Same header keys and values should also be present in Headers in response.
     
    Thanks & Regards
    Gopal


  • 2.  RE: how to pass the dynamic header values from request headers to response headers

    Broadcom Employee
    Posted Oct 21, 2020 12:23 PM
    Try capturing request headers into properties using Request Data Copier DPH and then use those properties in the Response-->Meta Data. In the below screenshot, select the Meta Data and give some Header_ which should create properties for all the Headers. 

    You can run the VSM in ITR and send a transaction against it and see all the properties then you can use the specific properties you are looking in Response->Meta Data with the notation {{PropertyName}}.

    Request Data Copier documentation is available at https://techdocs.broadcom.com/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-copier-data-protocol.html.

    Hope the information helps.

    Prema



  • 3.  RE: how to pass the dynamic header values from request headers to response headers

    Posted Oct 22, 2020 01:33 AM
    Hi Gopal,

    You can use Request Data Copier  or Request Data Manager for the same.

    Also, if you have SOAP header, you can use SOAP Header data protocol to manipulate the header values.

    Thanks


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