Hi,
maybe this is a stupid question:
In our project we had different versions of our webservice with different endpoint mappings.
Now we're cleaning up and are deleting the old versions and keep only the newest version. So far so good and all works fine.
Now I try to pass back an error response if someone - by accident - uses one of the old interface versions.
My hope was, to "just edit" the Exception Resolver to handle this:
(Here the appropriate entry is missing, as I don't know (yet) the exact package and class name to enter here ...)Code:<bean id="endpointExceptionResolver" class="org.springframework.ws.soap.server.endpoint.SoapFaultMappingExceptionResolver"> <property name="defaultFault"> <value>RECEIVER,Server error</value> </property> <property name="exceptionMappings"> <props> <prop key="org.springframework.oxm.UnmarshallingFailureException">SENDER,Invalid request</prop> </props> </property> </bean>
But unfortunately, when I try to access the webservice with the wrong version, I get simply nothing. An empty response.
In the websphere logs I found an entry like:
Which gives me the idea, that this is only a warning and not an exception, so it can't be handled by the exception resolver.Code:[29.12.10 13:57:42:812 CET] 00000034 EndpointNotFo W org.springframework.ws.server.MessageDispatcher dispatch No endpoint mapping found for [AxiomSoapMessage [...]
Is there a way to configure Spring framework to handle such things and pass back an "meaningfull" response ?
Thx and best regards
Christian


Reply With Quote