mockService port still LISTEN when Mock Service Stopped

soapUI pro announcements and discussions

mockService port still LISTEN when Mock Service Stopped

Postby PT » 08 Mar 2012 19:06

Problem 1:
I'm running a MockService on port8086 on UNIX and sending SOAP requests from another UNIX server. After I load the project file and open the Mock Service, a netstat -an | grep 8086 shows nothing. After I start the MockService the same command shows the port listening. Requests sent to Mock Service are successful at this point. If I stop the MockService and check the port, I see it is still LISTENing. Why is the port still LISTENING and is there anyway to turn this off besides starting and stopping soapui.

Problem 2:
If I send messages to the MockService at this point the response I get is an html response not related to service. Minimally I would have expected a SOAP Fault in return. Why is an html response being sent and can this be turned off.

This came back from the mock server
HTTP/1.1 200 OK..Content-Type: text/html; charset=iso-8859-1..Transfer-Encoding: chunked..Server: Jetty(6.1.x)....5F..<html><body><p>There are currently 0 running soapUI MockServices</p><ul></ul></p></body></|html>..
PT
soapui pro users
soapui pro users
 
Posts: 6
Joined: 23 Oct 2009 19:49

Re: mockService port still LISTEN when Mock Service Stopped

Postby M McDonald » 08 Mar 2012 20:06

I could be wrong, but I believe it is actually the MockServiceRunner that is listening, which then passes requests to the appropriate Mock Service, so you can have multiple Mock Services on the same port. When no services are actually running, the runner is still active and provides a helpful message to that effect.
M McDonald
Wizard
Wizard
 
Posts: 625
Joined: 21 Feb 2008 00:04
Location: New York

Re: mockService port still LISTEN when Mock Service Stopped

Postby SmartBear Support » 09 Mar 2012 14:11

Hi,

correct - there is a setting in the global HTTP Preferences to stop the MockEngine if no services are running (at the bottom) - this is not enabled by default - maybe you can use that?

regards,

/Ole
SmartBear Software
SmartBear Support
Administrator
Administrator
 
Posts: 6702
Joined: 16 Feb 2009 10:53


Return to soapUI Pro Support