horvathv
13 years agoNew Contributor
scripting - call a service automatically
Hi experts,
I would like to call a service automatically if an other service receives a request.
So my scenario:
1. service A (one way service) receives a request
2. a script starts working automatically when the service A has received the request
3. service B is called by script
How could I do that in soapUI?
I found similar codes but how could I select the project of service B from the project of service A?
Where should I have to put the script at service A?
Thanks,
Viktor
I would like to call a service automatically if an other service receives a request.
So my scenario:
1. service A (one way service) receives a request
2. a script starts working automatically when the service A has received the request
3. service B is called by script
How could I do that in soapUI?
I found similar codes but how could I select the project of service B from the project of service A?
def project = mockResponse.mockOperation.mockService.project
def request = project.interfaces["NewWebServicePortBinding"].operations["sum"].getRequestByName("Request 2")
request.requestContent = mockRequest.requestContent
request.submit( new com.eviware.soapui.impl.wsdl.WsdlSubmitContext( request ), false )
Where should I have to put the script at service A?
Thanks,
Viktor