Java Reference
In-Depth Information
<url-pattern> /services/*</url-pattern>
In the Spring MVC configuration file, weather-servlet.xml , you declare a bean for the weather
service implementation and export it as a web service by using XFireExporter .
<beans xmlns=""
xsi:schemaLocation=" " >
<bean id="weatherService"
class="" />
<bean name="/WeatherService"
<property name="xfire" ref="xfire" />
<property name="serviceBean" ref="weatherService" />
<property name="serviceInterface"
value="" />
For an XFireExporter instance, you have to configure a service object to export and its service
interface. Note that this exporter requires a reference to the core xfire bean for actual web
service processing. The xfire bean is defined in the bean configuration file bundled with the XFire
library. You only have to configure ContextLoaderListener in your web.xml to load this file from the
<web-app ...>
Now you can deploy your web application to a web container such as Apache Tomcat 6.0. Then you
can access this web service with the following URL:
Search WWH ::

Custom Search