@@ -536,10 +536,7 @@ public class AccountServiceImpl implements AccountService {
536
536
url =" http://www.springframework.org/spring-ws" >Spring Web
537
537
Services</ulink >, a solution for contract-first, document-driven web
538
538
services - highly recommended for building modern, future-proof web
539
- services. Last but not least, <ulink
540
- url =" http://xfire.codehaus.org" >XFire</ulink > also allows you to export
541
- Spring-managed beans as a web service, through built-in Spring
542
- support.</para >
539
+ services.</para >
543
540
544
541
<section id =" remoting-web-services-jaxrpc-export" >
545
542
<title >Exposing servlet-based web services using JAX-RPC</title >
@@ -995,64 +992,6 @@ public class AccountServiceEndpoint {
995
992
JAX-WS endpoint artifacts; you need to annotate them accordingly first.
996
993
Check the JAX-WS documentation for details on those requirements.</para >
997
994
</section >
998
-
999
- <section id =" remoting-web-services-xfire" >
1000
- <title >Exposing web services using XFire</title >
1001
-
1002
- <para >XFire is a lightweight SOAP library, hosted by Codehaus. Exposing
1003
- XFire is done using a XFire context that is shipping with XFire itself in
1004
- combination with a RemoteExporter-style bean you have to add to your
1005
- <interfacename >WebApplicationContext</interfacename >. As with all
1006
- methods that allow you to expose service, you have to create a
1007
- <classname >DispatcherServlet</classname > with a corresponding
1008
- <interfacename >WebApplicationContext</interfacename > containing the
1009
- services you will be exposing:</para >
1010
-
1011
- <programlisting language =" xml" >< servlet>
1012
- < servlet-name> xfire< /servlet-name>
1013
- < servlet-class> org.springframework.web.servlet.DispatcherServlet< /servlet-class>
1014
- < /servlet> </programlisting >
1015
-
1016
- <para >You also have to link in the XFire configuration. This is done by
1017
- adding a context file to the <literal >contextConfigLocations</literal >
1018
- context parameter picked up by the
1019
- <classname >ContextLoaderListener</classname > (or
1020
- <classname >ContextLoaderServlet</classname > for that matter).</para >
1021
-
1022
- <programlisting language =" xml" >< context-param>
1023
- < param-name> contextConfigLocation< /param-name>
1024
- < param-value> classpath:org/codehaus/xfire/spring/xfire.xml< /param-value>
1025
- < /context-param>
1026
-
1027
- < listener>
1028
- < listener-class> org.springframework.web.context.ContextLoaderListener< /listener-class>
1029
- < /listener> </programlisting >
1030
-
1031
- <para >After you added a servlet mapping (mapping <literal >/*</literal >
1032
- to the XFire servlet declared above) you only have to add one extra bean
1033
- to expose the service using XFire. Add for example the following
1034
- configuration in your <filename >'xfire-servlet.xml'</filename >
1035
- file:</para >
1036
-
1037
- <programlisting language =" xml" >< beans>
1038
-
1039
- < bean name="/Echo" class="org.codehaus.xfire.spring.remoting.XFireExporter">
1040
- < property name="serviceInterface" value="org.codehaus.xfire.spring.Echo"/>
1041
- < property name="serviceBean">
1042
- < bean class="org.codehaus.xfire.spring.EchoImpl"/>
1043
- < /property>
1044
- <lineannotation >< !-- the XFire bean is defined in the <filename >xfire.xml</filename > file --> </lineannotation >
1045
- < property name="xfire" ref="xfire"/>
1046
- < /bean>
1047
-
1048
- < /beans> </programlisting >
1049
-
1050
- <para >XFire handles the rest. It introspects your service interface and
1051
- generates a WSDL from it. Parts of this documentation have been taken
1052
- from the XFire site; for more detailed information on XFire Spring
1053
- integration, navigate to <ulink
1054
- url =" http://docs.codehaus.org/display/XFIRE/Spring" >http://docs.codehaus.org/display/XFIRE/Spring</ulink >.</para >
1055
- </section >
1056
995
</section >
1057
996
1058
997
<section id =" remoting-jms" >
0 commit comments