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 Jsr181 Handler


JSR 181 defines an annotated Java syntax for programming web services and is built on the Java Language Metadata technology (JSR 175). It provides an easy to use syntax to describe web services at the source-code-level for the J2EE platform. It aims to make it easy for a Java developer to develop server applications that conform both to basic SOAP and WSDL standards. In this sample, we will increase the complexity of the web service by including a Transfer Object (TO) as a parameter. We will also see JSR 181 annotations work behind the scenes to generate the plumbing required to expose web services.

Sample Scenario

Here again, our aim is to expose a POJO as web service and use JSR 181 annotation support for this. Both the service interface and the service implementation will be annotated.

Code Listing

The artifacts in the code listing is shown in the following figure:

We will list out the different artifacts which make up this example in the following...