cancel
Showing results for 
Search instead for 
Did you mean: 

Transfer values from one service to another services ?

Highlighted
Contributor

Transfer values from one service to another services ?

Hi Team,

 

I have a requirement where I need to send the values of one servcies to another or all services.

 

Thanks

Senthil. M 

5 REPLIES 5
Highlighted
Community Hero

Re: Transfer values from one service to another services ?

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?

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Highlighted
Contributor

Re: Transfer values from one service to another services ?

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 ?

 

 

Virtual Service 1.PNGVirtual Service 2.PNG

 

Thanks

Senthil. M

Community Hero

Re: Transfer values from one service to another services ?

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.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Highlighted
Contributor

Re: Transfer values from one service to another services ?

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

Highlighted
Community Hero

Re: Transfer values from one service to another services ?

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?

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================