|
24 | 24 | Spring-WS's XML handling is extremely flexible. An endpoint can choose from |
25 | 25 | a large amount of XML handling libraries supported by Spring-WS, including the DOM family (W3C DOM, JDOM, |
26 | 26 | dom4j, and XOM), SAX or StAX for faster performance, XPath to extract information from the message, or even |
27 | | - <link linkend="oxm">marshalling techniques</link> (JAXB, Castor, XMLBeans, JiBX, or XStream) to convert |
| 27 | + marshalling techniques (JAXB, Castor, XMLBeans, JiBX, or XStream) to convert |
28 | 28 | the XML to objects and vice-versa. |
29 | 29 | </para> |
30 | 30 | </section> |
|
314 | 314 | the dispatcher servlet does not load the default adapters, and is unable to handle standard Spring-MVC |
315 | 315 | <interfacename>Controllers</interfacename>. Therefore, we add the |
316 | 316 | <classname>SimpleControllerHandlerAdapter</classname> at the end. |
317 | | - <footnote> |
318 | | - <para> |
319 | | - By default, the Spring MVC <classname>DispatcherServlet</classname> configures the following |
320 | | - handler adapters in version 2.5: |
321 | | - <itemizedlist> |
322 | | - <listitem><para><classname>org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter</classname></para></listitem> |
323 | | - <listitem><para><classname>org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter</classname></para></listitem> |
324 | | - <listitem><para><classname>org.springframework.web.servlet.mvc.throwaway.ThrowawayControllerHandlerAdapter</classname></para></listitem> |
325 | | - <listitem><para><classname>org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter</classname></para></listitem> |
326 | | - </itemizedlist> |
327 | | - </para> |
328 | | - </footnote> |
329 | 317 | </para> |
330 | 318 | <para> |
331 | 319 | In a similar fashion, you can wire up a <classname>WsdlDefinitionHandlerAdapter</classname> to make sure |
@@ -669,7 +657,7 @@ public class SampleEndpoint extends AbstractDomPayloadEndpoint { |
669 | 657 | Rather than handling XML directly using DOM, you can use marshalling to convert the payload of the XML |
670 | 658 | message into a Java Object. Spring Web Services offers the |
671 | 659 | <classname>AbstractMarshallingPayloadEndpoint</classname> for this purpose, which is built on the |
672 | | - marshalling abstraction described in <xref linkend="oxm"/>. The |
| 660 | + Spring's OXM package. The |
673 | 661 | <classname>AbstractMarshallingPayloadEndpoint</classname> has two properties: |
674 | 662 | <property>marshaller</property> and <property>unmarshaller</property>, in which you can inject in the |
675 | 663 | constructor or by setters. |
@@ -721,7 +709,9 @@ public class MarshallingOrderEndpoint extends AbstractMarshallingPayloadEndpoint |
721 | 709 | ]]><lineannotation><!-- Other beans, such as the endpoint mapping --></lineannotation><![CDATA[ |
722 | 710 | </beans>]]></programlisting> |
723 | 711 | <para> |
724 | | - In this sample, we configure a <link linkend="oxm-jaxb2">Jaxb2Marshaller</link> for the |
| 712 | + In this sample, we configure a |
| 713 | + <ulink url="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/oxm.html#oxm-jaxb2">Jaxb2Marshaller</ulink> |
| 714 | + for the |
725 | 715 | <classname>OrderRequest</classname> and <classname>Order</classname> classes, and inject that |
726 | 716 | marshaller together with the |
727 | 717 | <classname>DefaultOrderService</classname> into our endpoint. This business service is not shown, but |
@@ -756,7 +746,8 @@ public class MarshallingOrderEndpoint extends AbstractMarshallingPayloadEndpoint |
756 | 746 | </SOAP-ENV:Body> |
757 | 747 | </SOAP-ENV:Envelope>]]></programlisting> |
758 | 748 | <para> |
759 | | - Instead of JAXB 2, we could have used any of the other marshallers described in <xref linkend="oxm"/>. |
| 749 | + Instead of JAXB 2, we could have used <ulink |
| 750 | + url="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/oxm.html">any Spring OXM marshallers</ulink>. |
760 | 751 | The only thing that would change in the above example is the configuration of the |
761 | 752 | <literal>marshaller</literal> bean. |
762 | 753 | </para> |
|
0 commit comments