Results 1 to 2 of 2

Thread: NoEndpointFoundException

Hybrid View

  1. #1
    Join Date
    May 2009
    Posts
    7

    Default NoEndpointFoundException

    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
    Last edited by gbonk; Jun 22nd, 2012 at 02:32 PM.

  2. #2
    Join Date
    May 2009
    Posts
    7

    Default

    the implementation appears to be the same in 2.0.5 and 2.1.0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •