Forum Discussion

JLancaster's avatar
JLancaster
Occasional Contributor
14 years ago

mockService port still LISTEN when Mock Service Stopped

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>..

2 Replies

  • M_McDonald's avatar
    M_McDonald
    Super Contributor
    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.
  • 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