Service Virtualization

  • 1.  Generating request xml in devtest 10.0

    Posted Feb 08, 2018 01:20 AM

    How to create virtual services in devtest to generate request xml from sample xml's or xsd file?



  • 2.  Re: Generating request xml in devtest 10.0

    Posted Feb 08, 2018 12:52 PM

    Can you provide an example of what you are trying to achieve?

    Normally We can generate a virtual response for a request.

     

    We use Request / Response Pairs as "XML samples" to generate Virtual Services:

    Create a Service Image from Request-Response Pairs in the UI - DevTest Solutions - 10.2 - CA Technologies Documentation 

     

    We can also create a Virtual Service from a WSDL file:

    Create a Service Image from a WSDL - DevTest Solutions - 10.2 - CA Technologies Documentation 

     

    Best Regards



  • 3.  Re: Generating request xml in devtest 10.0

    Posted Feb 09, 2018 08:34 AM

    Hi Artur,

     

    There are three components A,B & C.

    The component A sends request to B and B sends it to C, C sends response back.

    I have virtualized Component C using RR pairs. So component B sends request to my VS and VS sends response back.

    Now I want to virtualize component B which sends request to C wherein Component C will consume request coming from VS and send response.

    Is it possible to do?



  • 4.  Re: Generating request xml in devtest 10.0

    Posted Feb 09, 2018 09:04 AM

    Note: Both virtual service will not be used at same time.



  • 5.  Re: Generating request xml in devtest 10.0

    Posted Feb 10, 2018 10:14 AM

    Hi,

     

    If I understand correctly, In some cases you want to send the request to component C and in few cases respond from component B itself,

     

    Case1:   (component A)  <----req-rsp----> (component B[Virtual Service])

     component A will get the response from Virtual Service B, Here Virtual Service C is not required since you have the option to configure component C response in Virtual Service B

     

    Case2:   (component A)  <----req-rsp----> (component B[use live invocation in VS ]) <----req-rsp----> (component C)  

    component A will get the response from component C, Here Virtual Service B will act as a Gateway

     

    Best Regards,

    Venkat Yedida 



  • 6.  Re: Generating request xml in devtest 10.0

    Posted Feb 12, 2018 06:33 AM

    Hi

     

    You are right Venkat.

    I need to do the case 1 virtualization.

    Could you please guide me how to achieve this?

     

    Thanks



  • 7.  Re: Generating request xml in devtest 10.0
    Best Answer

    Posted Feb 13, 2018 03:50 AM

    Hi,

     

    Create Virtual Service using Request and Response (Component C) in layer B. 

     

    Best Regards,

    Venkat Yedida