Service Virtualization

  • 1.  Request data available in/after Listener step

    Posted Apr 28, 2017 12:55 PM

    How do I get access to the incoming request data after the Listener step?  For example request_tag1_subTag2_subSubTag3.

    I have added a JSR step after the Listener step, but was told the request data is not available after the Listener step.  Is it possible to parse the request (for particular XML tags in an XML message of course) in or after the Listener step and set to a property?

    Ultimately, I'd like to get request data accessible in the JSR step I added, but sounds like it may not be possible.



  • 2.  Re: Request data available in/after Listener step
    Best Answer

    Posted Apr 28, 2017 02:59 PM

    I am able to fetch the request step with below code. I can use this XML req to extract other parameters.

     

    P.S. Make sure navigation from Listener to next step, if being efficient, is JSR step.

     

    Thanks,

    Monika