Skip to content

Commit 258a474

Browse files
committed
Remove XFire reference documentation (SPR-7434)
XFire is now CXF (per http://xfire.codehaus.org), and given that Spring does not actually ship with any explicit XFire support, it makes sense to remove the documentation completely. CXF does provide support for writing services with Spring, and they provide their own documentation. See http://cxf.apache.org/docs/writing-a-service-with-spring.html
1 parent 1503a13 commit 258a474

File tree

1 file changed

+1
-62
lines changed

1 file changed

+1
-62
lines changed

spring-framework-reference/src/remoting.xml

Lines changed: 1 addition & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -536,10 +536,7 @@ public class AccountServiceImpl implements AccountService {
536536
url="http://www.springframework.org/spring-ws">Spring Web
537537
Services</ulink>, a solution for contract-first, document-driven web
538538
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>
543540

544541
<section id="remoting-web-services-jaxrpc-export">
545542
<title>Exposing servlet-based web services using JAX-RPC</title>
@@ -995,64 +992,6 @@ public class AccountServiceEndpoint {
995992
JAX-WS endpoint artifacts; you need to annotate them accordingly first.
996993
Check the JAX-WS documentation for details on those requirements.</para>
997994
</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">&lt;servlet&gt;
1012-
&lt;servlet-name&gt;xfire&lt;/servlet-name&gt;
1013-
&lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
1014-
&lt;/servlet&gt;</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">&lt;context-param&gt;
1023-
&lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
1024-
&lt;param-value&gt;classpath:org/codehaus/xfire/spring/xfire.xml&lt;/param-value&gt;
1025-
&lt;/context-param&gt;
1026-
1027-
&lt;listener&gt;
1028-
&lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
1029-
&lt;/listener&gt;</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">&lt;beans&gt;
1038-
1039-
&lt;bean name="/Echo" class="org.codehaus.xfire.spring.remoting.XFireExporter"&gt;
1040-
&lt;property name="serviceInterface" value="org.codehaus.xfire.spring.Echo"/&gt;
1041-
&lt;property name="serviceBean"&gt;
1042-
&lt;bean class="org.codehaus.xfire.spring.EchoImpl"/&gt;
1043-
&lt;/property&gt;
1044-
<lineannotation>&lt;!-- the XFire bean is defined in the <filename>xfire.xml</filename> file --&gt;</lineannotation>
1045-
&lt;property name="xfire" ref="xfire"/&gt;
1046-
&lt;/bean&gt;
1047-
1048-
&lt;/beans&gt;</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>
1056995
</section>
1057996

1058997
<section id="remoting-jms">

0 commit comments

Comments
 (0)