Forum Discussion

cwtob's avatar
12 years ago

Getting mockservice to response when deployed as war

I have a project that contains a SOAP mock service and an empty mock service (no mock operations) that has an OnRequest script to programmatically return a non-SOAP response. I am able to start both services locally and send requests to them and they respond like I'd expect.

I have tried deploying my project as a war to a tomcat server. I am then able to send the SOAP requests to the server and get back the expected responses. But I am not able to get the server to recognize my custom mock service. In the mock service properties, I have the path set to /ServiceData. The top of the OnRequest script simply does:

log.info ""
log.info "<< Got ServiceData request: " + mockRequest.getMethod() + " " + mockRequest.getPath() + " >>"

When I run the service locally (going to http://localhost:8080/ServiceData/PrepareOrder, I see these log lines in the script log:

Sun Jan 20 00:47:16 MST 2013:INFO:<< Got ServiceData request: PUT /ServiceData/PrepareOrder >>

When I attempt the same PUT command against the server, I don't see the log lines show up in the Groovy log output section.

Anyone have any ideas what I'm missing?

Thanks for any help.
No RepliesBe the first to reply