Question:
- When invoking a Web service from Web Service Execution XML step, we supply the WSDL URL in the endpoint field of the step. While virtualizing, we put VS recorder in between DevTest test case and the LIVE Web service. In this case, in the test case Endpoint we give the host and port of the VS recorder to redirect the traffic via VS recorder. Where to supply the URI of the WSDL URL in this case?
All supported versions
The complete URI always comes from the client request. The client need to send the full request that includes protocol, hostname, port number and URI. In case of virtualization, the host name and port number would be of VS recorder and the target host and target port in VS recorder will be of LIVE web server.
For example, if the web service URL is
http://HOSTDEF:8080/itko-examples/services/UserControlService?wsdl
Where HOSTABC and 8080 is the host and port where live service is running, and lets say your VS recorder is running on host HOSTDEF and listen port 8003, then during VS recording, configure the VS recorder with target host and target port as HOSTABC and 8080 respectively. The client should then invoke http://HOSTDEF:8003/itko-examples/services/UserControlService?wsdl to redirect the transaction via VS recorder.
Please note the URI /itko-examples/services/UserControlService?wsdl is still part of client request endpoint and specified no where in the VS recorder.