To run the client, assuming that you have already compiled the client while building
the sample, execute ant as follows:
ant run
??? ??? ??? ??? ???
Some XFire Binding Tools
[ 106 ]
Web Service using XFire Spring
XFireExporter
Having seen how to expose a POJO as web service using the XFire class,
org.codehaus.xfire.transport.http.XFireConfigurableServlet, our
next aim is to do the same using a different approach.
Sample Scenario
Here again, our aim is to expose a POJO as web service using XFire Spring support
class org.codehaus.xfire.spring.remoting.XFireExporter. Here, the XFire
class XFireExporter is internally leveraging Spring's remoting framework and as
such depends on the Spring libraries.
Code Listing
The artifacts in the code listing is shown in the following figure:
HelloXFireExport.war
META INF
MANIFEST.MF
WEB INF
classes
META INF
xfire
IHello.class
HelloServiceImpl.class
applicationContext.xml
log4J.properties
web.xml
xfire servlet.xml
lib
xfire all 1.1 RC1.jar
Chapter 5
[ 107 ]
We have few more artifacts to be packaged in this scenario and the packaging too is
slightly different as shown in the above figure.
Pages:
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167