Some of our end users, the ones that use the web services we write, sometimes don't properly format their XML. Specifically they don't put the XSD namespace. When they don't have the namespace of the request defined in the SOAP envelope, spring just returns a HTTP 404 Not Found. When viewing this in Soap UI it looks like an empty response, because there is no body/content.
What I would like to do is instead return a SOAP fault or a custom message of some sort. Looking at the code in WS when the endpoint is not found a NoEndpointFoundException is thrown by the MessageDispatcher. Skipping the handlers and interceptors. Then consumed in WebServiceMessageReceiverObjectSupport
We can use and set the defaultEndpoint which will always throw an exception/fault but it seems a little clunky.
This is Spring WS 2.0.4.RELEASE
the implementation appears to be the same in 2.0.5 and 2.1.0