SoapEater
13 years agoNew Contributor
Socket Timeout when testing Mock Server
Hey guys,
I've written a mock for a web service and tried to test it by sending a request via soapUI.
The mock consists of a bunch of java classes. It's only task is to receive an incoming request
of a client (which is soapUI during the tests), parse the request, choose a soap response template
depending on the content of the request and send that response back to the client.
By now, the mock server is able to read incoming requests and parse them for information.
However, when I try to send the response back to soapUI via java socket, I get the following
message in the statusbar of soapUI:
Error getting response; java.net.SocketTimeoutException: Read timed out.
If I raise the timeout value in the soapUI environment, the error will just appear a bit later.
I cannot image what I'm doing wrong. Any ideas?
Thank you in advance for any hints you can give me.
soapEater
I've written a mock for a web service and tried to test it by sending a request via soapUI.
The mock consists of a bunch of java classes. It's only task is to receive an incoming request
of a client (which is soapUI during the tests), parse the request, choose a soap response template
depending on the content of the request and send that response back to the client.
By now, the mock server is able to read incoming requests and parse them for information.
However, when I try to send the response back to soapUI via java socket, I get the following
message in the statusbar of soapUI:
Error getting response; java.net.SocketTimeoutException: Read timed out.
If I raise the timeout value in the soapUI environment, the error will just appear a bit later.
I cannot image what I'm doing wrong. Any ideas?
Thank you in advance for any hints you can give me.
soapEater