Forum Discussion

June2013's avatar
June2013
New Contributor
12 years ago

Display Response from Simulated Mock Servie to HTTP Test Req

I am using the soapUI 4.5.1. My request query is a URL. The URL looks like:

http://localhost:8080/readwrapper/v1/me ... 5fd58e0102

and the search criteria are embedded in the URL above, in which h0102a3727570b14038b349136f2a5fd58e0102 is the document ID that is going to be used for searching.

Because we are unable to connect to the real server for the time being for searching documents, we have to create a soapUI project to simulate the server and prepare a response document to be returned to the query request.

Problem I have: After I start the Mock Service and invoke the URL request, I cannot bring the content of the response document to be displayed in the HTTP Test Request.

Here are what I have configued in soapUI:

    1. I have managed to create a HTTP Test Request with searching criteria embedded in that URL. It is a Test Step configured under a TestSuite of the soapUI Project A.

    2. I have also created another soapUI Project B to simulate the server. Under the simulated service, I created a Mock Service with a response file called Response 1. My Mock Service endpoint is localhost:7075/mockRespondingGateway_Binding_Soap12

Question 1:
Are my soapUI configurations correct? Or I should configure my task in a different way to achieve what I would like to do?

Question 2:
After I

    a. start the Mock Service by pressing the green arrow in the Project B MockService; and
    b. start the HTTP Request Test Step by pressing the green arrow in the Project A

how do I manage to display the content of the response file (i.e., “Response 1”) in the blank panel of the HTTP Test Request?

Question 3:
Does the "port" in the request query URL have to be consistent with the Mock Service endpoint "port"?
No RepliesBe the first to reply