Book Image

Service Oriented Java Business Integration

Book Image

Service Oriented Java Business Integration

Overview of this book

Table of Contents (23 chapters)
Service Oriented Java Business Integration
Credits
About the Author
Acknowledgement
About the Reviewers
Preface

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:

We have few more artifacts to be packaged in this scenario and the packaging too is slightly different as shown in the above figure. Since we are using the same classes (IHello and HelloServiceImpl) as used in the previous example here too, they are not repeated here. We will look at the other artifacts in detail here:

  1. 1. IHello.class: This is same as in the previous example.

  2. 2. HelloServiceImpl...