Prev | Current Page 159 | Next

Binildas A Christudas

"Service-Oriented Java Business Integration"


To run the client, assuming that you have already compiled the Client, while
building the sample, execute ant as follows:
ant run
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.
Some XFire Binding Tools
[ 110 ]
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:
1.


Pages:
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171