Need help in creating SV to send input to Micro service
I got a micro service fully developed and deployed in our environment, i want to create a virtual service which will get the data from DB and need to serve GET and POST request to that micro service, not sure how to build that please help me this should work asynchronously.
Note: I'm using Runtime server 2021.2 version Windows
Comments
-
Hi,
For the GET and POST requests that you want to turn into a virtual service, do you have any sort of definition for them? An OpenAPI document or some other document that defines their payloads?
Here are some general tutorial videos
https://docs.parasoft.com/display/SVC20212/Video+Tutorials#VideoTutorials-VirtualizeVideosThese two videos might be good places to start
Creating a Virtual Asset from Sample Request/Response Pairs https://docs.parasoft.com/display/SVC20212/Video+Tutorials#VideoTutorials-CreatingaVirtualAssetfromSampleRequest/ResponsePairs
Creating a Virtual Asset from a Service Description https://docs.parasoft.com/display/SVC20212/Video+Tutorials#VideoTutorials-CreatingaVirtualAssetfromaServiceDescription
1 -
Thanks for the video tutorials, this helps, sorry for not specific in my question, i want to sent some argument which will be read from data table, for e.g.: http://www.example.com?arg1= < data from table >
this url should send to target micro service, please help me on that.Thanks in Advance
0 -
Hi,
These links may help, they about how data sources (in your case a Database Data Source) can be used to parameterize and correlate
https://docs.parasoft.com/display/SOAVIRT20211/Understanding+How+Virtualize+Uses+Data+Sources
https://www.youtube.com/watch?v=bQ-bMyDDvUAHope these help!
1