Service Virtualization

Expand all | Collapse all

How to change "Operation" name in VSI

  • 1.  How to change "Operation" name in VSI

    Posted 09-21-2016 12:34 PM

    The "Operation" name is automatically detected when processing the VSI after Recording. For Soap, as an example, it is decided from the message header service name.

    We have a case where we would like to specify what tag/argument to use for Operation name setting.

    Can this be done manually after recording (hope so) or is it possible to change the rule setting this Operation value?



  • 2.  Re: How to change "Operation" name in VSI

    Posted 09-21-2016 01:07 PM

    Request Data Manager Data Protocol - DevTest Solutions - 9.5 - CA Technologies Documentation 

     

    After recording (or reprocessing your existing recording) add another protocol handler, and use it to copy the field you want in the request to the Operation field for the VSI..



  • 3.  Re: How to change "Operation" name in VSI

    Posted 09-26-2016 09:33 AM

    Hi,

    Adding the Request Data Manager but the Operation field is not proposed as a target for argument copy...

    Any clue on how to list "Operation name" field ? 



  • 4.  Re: How to change "Operation" name in VSI

    Posted 09-26-2016 09:39 AM
    sursu06 - can you assist? Thanks!




  • 5.  Re: How to change "Operation" name in VSI

    Posted 09-26-2016 09:56 AM

    Hello,

     

            You can use the Generic XML Payload Parser handler in addition to SOAP and select the field that you would like to set as operation name in that. Please find a screenshot below for that. Please let me know if this works for you.

     

    Thanks,

    Surya

    .



  • 6.  Re: How to change "Operation" name in VSI

    Posted 09-26-2016 10:28 AM

    Hi Surya,

     

    Thanks for your reply but We have again an issue. The parser take all arguments for the name:

     

     

    Thanks for your help.

     

    Julien 



  • 7.  Re: How to change "Operation" name in VSI

    Posted 09-26-2016 10:45 AM

    Hello Julien,

     

     If you see in the example I shared, I selected the ZIP field (tag) value under txt and not the field (tag) itself. In your case, please let me know what  you are trying to set as operation Name.

     

    Thank You,

    Regards,

    Surya.



  • 8.  Re: How to change "Operation" name in VSI

    Posted 09-26-2016 11:04 AM

    Hi Surya,

     

    We need to put in operation : "getOutwardFares"

     

    Thanks for your help.

     

    Regards,

     

    julien



  • 9.  Re: How to change "Operation" name in VSI

    Posted 09-28-2016 05:25 AM

    So the problem, it takes all attributes in this element in the name..

     

    There is a function to select just the name of the tag? 



  • 10.  Re: How to change "Operation" name in VSI

    Posted 09-28-2016 08:02 AM

    You can use local-name(/soap:Envelope/soap:Header...) as the Set Operation xPath to select just the element name without the namespace.

     

    :-)



  • 11.  Re: How to change "Operation" name in VSI

    Posted 09-28-2016 08:29 AM

    Thank you Steve, it works.