-
Notifications
You must be signed in to change notification settings - Fork 317
Closed
Description
Gordon Dickens opened SWS-777 and commented
Given the following configuration:
<bean class="org.springframework.ws.soap.server.endpoint.SoapFaultMappingExceptionResolver">
<property name="exceptionMappings">
<value>
org.springframework.dao.EmptyResultDataAccessException=CLIENT,Entity not found
</value>
</property>
<property name="defaultFault" value="SERVER"/>
</bean>
The result in 2.0.5 is correct:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring xml:lang="en">Entity not found</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The result in 2.1.0.RC1 is INCORRECT:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring xml:lang="en">Incorrect result size: expected 1, actual 0</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Affects: 2.1 RC1
Issue Links:
- Extending SoapFaultAnnotationExceptionResolver results in competing annotation resolvers with backwards order [SWS-793] #875 Extending SoapFaultAnnotationExceptionResolver results in competing annotation resolvers with backwards order
("is duplicated by") - <sws:annotation-driven/> should register a SoapFaultAnnotationExceptionResolver [SWS-772] #857 sws:annotation-driven/ should register a SoapFaultAnnotationExceptionResolver
Referenced from: commits 504e6b7
Metadata
Metadata
Assignees
Labels
type: bugA general bugA general bug