Service Virtualization

 View Only
  • 1.  Format of JSON and XML Path in filters

    Posted Dec 12, 2015 10:27 PM

    Hi ,

     

    Please help me with example of JSON and XMl path Filters in Service virtualization.

     

    JSON Path : To filter specific entity form REST request

    XML Path : to filter specific entity form XML request

     

    Best Regards,

    Akshay A



  • 2.  Re: Format of JSON and XML Path in filters

    Broadcom Employee
    Posted Dec 15, 2015 01:13 PM

    Akshay,  have you tried  " Json" Data protocol  for Json requests?  and for  XML  you could use the  Generic XML payload parser for specific entity.

     

    What version of DEVTEST are you using?  Is it possible for you to provide us with a sample Json /XML resquest and response?

     

    If you could open a ticket with Support.ca.com,  we can do a webex to look at this request.

    .

     

     

    Thanks

     

    Shiney Abraham



  • 3.  Re: Format of JSON and XML Path in filters

    Posted Jun 22, 2016 04:25 PM

    Hi Akshay,

     

    for JSON path filter, you need to use JSON path format like,

    $.store.book[i].author which will return the value of author.

     

    for Xpath filter, you need to use Xpath format like,

    /store/book[1]/title.text() which will return the value of title.

     

    Revert if more details required.