Forum Discussion
Hi,
Can you provide more details?
Considering, that service virtualization is an imulation of the real service, how is it expected to function in real life?
Hi Alex,
I have 2 services, Now I want the value of Customer Number from Servcie 1- ABCD interface response. So, I can use them in createsomething interface resposne of Servcie 2.
Is that posible to capture and transfer the values from one service to another services ?
Thanks
Senthil. M
- AlexKaras5 years agoChampion Level 3
Hi,
Thank you for the screenshots, but I am still not sure that I got the use case...
So... It is expected that your tested application will interact with two web services. These web services are now virtualized as Service1 and Service2.
A) In a real life, your application is going to send a request to Service1 and get a response. Some data from this response can be used to create a request to Service2. So it is your tested application that is responsible for the values transfer, not the services.
B) I can imagine a scenario with a tightly coupled web services, so that when Service1 receives a request, it sends additional request to Service2, waits for the response and only then responds to the client. I don't think this is your case, but if it is, then you should send a request to Service2 from within the request handler of Service1. Again, I don't see the need for the values transfer.
What I am missing in your use case?
If option A) corresponds to your use case but there is no tested application yet, you may consider to use SoapUI. Set it to consume Service1 and Service2 and create a test that will send a request to Service1, process the response and request Service2 using some data returned from Service1.
- senthkum5 years agoContributor
Thanks Alex, for your explaination, my query here is Service1 send a request and gets the response, but the values of service1 response need to be transfered to service2 response and sometime to service2 request also. is this doable in serviceV pro.
Thanks
Senthil. M
- AlexKaras5 years agoChampion Level 3
Hi Senthil,
> Service1 send a request and gets the response
Web services never send requests. By definition, they are servicing requests from clients. I.e. client sends request to the service, service processes obtained request and responds to the client with response.
If, internally, service needs to request some other service before responding to the client, this means that the service starts to act as a client in relation to this another service and must be named and considered as such for this given context.
As per above: service never sends requests. It is a client that prepares request data, requests the service and obtains response from it.
Can you provide a sample step-by-step use case of what you are looking for, so we can consider this exact example?
Related Content
- 7 years ago
- 3 years ago
Recent Discussions
- 5 days ago
- 10 days ago