This commit is contained in:
Arjen Poutsma
2007-05-18 21:37:51 +00:00
parent 8c16222def
commit 4cf07f7560
2 changed files with 12 additions and 12 deletions

View File

@@ -5,9 +5,9 @@
<bookinfo>
<title>Spring Web Services - Reference Documentation</title>
<releaseinfo>
&version;
</releaseinfo>
<!-- <releaseinfo> -->
<!-- &version; -->
<!-- </releaseinfo> -->
<authorgroup>
<author>
@@ -57,12 +57,7 @@
</para>
</partintro>
<xi:include href="common.xml" />
<chapter id="server">
<title>Document-driven Web services with Spring-WS</title>
<para>This chapter will contain the reference for server-side Spring-WS usage.</para>
</chapter>
<!--<xi:include href="server.xml" />-->
<xi:include href="server.xml" />
<xi:include href="client.xml" />
<xi:include href="security.xml" />
<xi:include href="oxm.xml" />

View File

@@ -394,7 +394,7 @@ public class AnnotationOrderEndpoint {
endpoint. Because the endpoint class can have multiple request handling methods, we need to instruct
Spring-WS which method to invoke for which request. This is done using the
<interfacename>@PayloadRoot</interfacename> annotation: the <methodname>getOrder</methodname> method
will be invoked for requests with a <literal>orderRequest</literal> local name, and a
will be invoked for requests with a <literal>orderRequest</literal> local name and a
<uri>http://samples</uri> namespace URI; the <methodname>order</methodname> method for requests with
a <literal>order</literal> local name. For more information about these annotations, refer to
<xref linkend="server-method-endpoint-mapping"/>.
@@ -415,7 +415,12 @@ public class AnnotationOrderEndpoint {
</bean>
<bean id="marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
<property name="contextPath" value="samples"/>
<property name="classesToBeBound">
<list>
<value>samples.OrderRequest</value>
<value>samples.Order</value>
</list>
</property>
</bean>
<bean class="org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping"/>
@@ -432,7 +437,7 @@ public class AnnotationOrderEndpoint {
<para>
As an alternative to using marshalling, we could have used <link linkend="xpath">XPath</link> to
extract the information out of the incoming XML request. Spring-WS offers another annotation for
this purpose: <interfacename>@XPathParam</interfacename>. You simply annotate a method paramters
this purpose: <interfacename>@XPathParam</interfacename>. You simply annotate method parameters
with this annotation, and it will be bound with the evaluation of that annotation.
Here is an example:
</para>