Forum Discussion

Thomas_Bonds's avatar
Thomas_Bonds
Occasional Contributor
15 years ago

[Resolved]MOCK service does not seem to recv incoming msgs

I've got a situation where a MOCK service is started up. However, HTTP messages
coming in don't appear in the SOAPUI GUI. I'm not getting any log messages or error
messages or anything to help me debug the situation.

I can prove, using wireshark, that messages are coming into the correct IP address, port, and URI
for the MOCK service. However, the wireshark also shows I never get a response to the incoming
requests. The fact that wireshark shows no response and the fact that the SOAPUI GUI
shows no incoming messages to the MOCK service tells me that the OS is not actually
forwarding the message to the SOAPUI application.

I've tried to capture logs during the time the system receives the incoming message.
I don't see anything logged in the file soapui.log or soapui-errors.log when the message
comes in.

What's my next step for debugging?

Bob

5 Replies

  • Hi Bob,

    sorry for the delay on this; could you just add a

    log.info "Hello!"

    to the onRequest script of the mockservice?

    Also, try disabling MockService HTTP Logging in the global HTTP Preferences.. does that make any difference?

    regards!

    /Ole
    eviware.com
  • Thomas_Bonds's avatar
    Thomas_Bonds
    Occasional Contributor
    Well, it's been a while since I received your reply.

    I did what you asked, namely, I set the onRequest script to log.info "Hello!".

    When we originally ran the test, the HTTP logging was already disabled.

    We also set the afterRequest script to log.info "Goodbye!"

    Then we examined the script log.

    When we see the script log, we see "Hello!". So this tells me that the
    SOAPUI script is receiving the incoming SOAP message.

    However, we never see the "Goodbye" message, so this tells me that
    the afterRequest script is never executed. This aligns with my snoop
    output, where we never see the return response coming from the SOAPUI.

    What is our next step for debugging this vexing issue.
  • Hi Bob,

    Ok. What is the exact HTTP message that you are sending to the MockService? A SOAP Request? or just a "plain" HTTP Get?

    regards!

    /Ole
    eviware.com
  • Thomas_Bonds's avatar
    Thomas_Bonds
    Occasional Contributor
    Just to let you know, we figured out the issue must have been with the MOCK service we had.
    We used a different version of it, which differed in some obscure XML, and that solved our problem.