You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-ws-docs/src/docs/asciidoc/server.adoc
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1190,7 +1190,40 @@ Rather than expose the innards of your application by giving an exception and st
1190
1190
Endpoint exception resolvers are automatically picked up by the `MessageDispatcher`, so no explicit configuration is necessary.
1191
1191
1192
1192
Besides implementing the `EndpointExceptionResolver` interface, which is only a matter of implementing the `resolveException(MessageContext, endpoint, Exception)` method, you may also use one of the provided implementations.
1193
+
1193
1194
The simplest implementation is the `SimpleSoapExceptionResolver`, which creates a SOAP 1.1 Server or SOAP 1.2 Receiver fault and uses the exception message as the fault string.
1195
+
You can subclass it to customize the fault, as shown in the following example:
1196
+
1197
+
[source,java]
1198
+
----
1199
+
public class CustomSoapExceptionResolver extends SimpleSoapExceptionResolver {
1200
+
1201
+
private final Transformer transformer;
1202
+
1203
+
public CustomSoapExceptionResolver(Transformer transformer) {
0 commit comments