Service Virtualization

Expand all | Collapse all

How to fetch a value from property when request is not SOAP or XML?

  • 1.  How to fetch a value from property when request is not SOAP or XML?

    Posted 01-08-2019 02:00 PM

    Hi Team,

    We have a Crypto call - for which we did live recording to capture request & response. While creating VSI & VSM - Lisa automatically captured Datat protocol as REST.

     

    Help Needed: In response, I have to send same Nonce number which is generated at request side. How to capture value of Nonce (For ex in this case: 1546963344905) in property and use it as property for response. Any help with respect to code would really help me.

     

    recorded_raw_request :

    Nonce=1546963344905 [Please see screenshot how it is shown]
    Token-Serial=56655
    Response-Auth-KeyId=28
    Token-CAP=43273172
    Token-CAP-Mode=2

     

     

    abrsh01 Rick.Brown deoma03 Kevin_Bowen Josh_Hendrick



  • 2.  Re: How to fetch a value from property when request is not SOAP or XML?

    Posted 01-08-2019 02:04 PM

    You could use Create Property based on Surrounding Values filter to do this . Please look at the post below

    https://communities.ca.com/message/242026408-re-create-property-based-on-surrounding-values-use?commentID=242026408#comm… 

     

    Thanks

     

    Shiney