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
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -694,7 +694,7 @@ If you want to use a different scope, such as prototype, see the {spring-framewo
694
694
Note that all abstract base classes provided in Spring-WS are thread safe, unless otherwise indicated in the class-level Javadoc.
695
695
696
696
[[server-atEndpoint-methods]]
697
-
=== `@Endpoint` handling methods
697
+
== `@Endpoint` handling methods
698
698
699
699
For an endpoint to actually handle incoming XML messages, it needs to have one or more handling methods.
700
700
Handling methods can take wide range of parameters and return types.
@@ -721,7 +721,7 @@ The `order` method takes an `Element` (annotated with `@RequestPayload`) as a pa
721
721
This means that the payload of the message is passed on this method as a DOM element.
722
722
The method has a `void` return type, indicating that no response message is sent.
723
723
724
-
==== Handling Method Parameters
724
+
=== Handling Method Parameters
725
725
726
726
The handling method typically has one or more parameters that refer to various parts of the incoming XML message.
727
727
Most commonly, the handling method has a single parameter that maps to the payload of the message, but it can also map to other parts of the request message, such as a SOAP header.
@@ -832,7 +832,7 @@ You can even extend this mechanism to support your own parameter types.
832
832
See the Javadoc of {spring-ws-api}/server/endpoint/adapter/DefaultMethodEndpointAdapter.html[`DefaultMethodEndpointAdapter`] and {spring-ws-api}/server/endpoint/adapter/method/MethodArgumentResolver.html[`MethodArgumentResolver`] to see how.
833
833
834
834
[[server-xpath-param]]
835
-
===== `@XPathParam`
835
+
==== `@XPathParam`
836
836
837
837
One parameter type needs some extra explanation: `@XPathParam`.
838
838
The idea here is that you annotate one or more method parameters with an XPath expression and that each such annotated parameter is bound to the evaluation of the expression.
@@ -884,7 +884,7 @@ By using the `@XPathParam`, you can bind to all the data types supported by XPat
884
884
885
885
In addition to this list, you can use any type that can be converted from a `String` by a Spring {spring-framework-docs}/core/validation/convert.html#core-convert-ConversionService-API[conversion service].
886
886
887
-
==== Handling method return types
887
+
=== Handling method return types
888
888
889
889
To send a response message, the handling needs to specify a return type.
890
890
If no response message is required, the method can declare a `void` return type.
0 commit comments