I am using "PayloadRootAnnotationMethodEndpointMapping" to map incoming request messages to End Points. If user sends a bad request or a wrong namespace I want to display customized error message.

To do this I created another endpoint with @Endpoint annotation and set the property 'defaultEndpoint' on PayloadRootAnnotationMethodEndpointMapping to this end point. But this is not working.

I am not sure what should be the localPart mapping in the Endpoint class because client could sent any type of message. Can any one please help me with the steps for 'defaultEndpoint' for PayloadRootAnnotationMethodEndpointMapping. I am particularly interested how to map the incoming request to default endpoint method.

Thank you!