In this blog I am going explain how to design, create and deploy JAXWS based web service. I am going to create a simple User Management web service which would have create, select, update and delete for User. you can find the source code for this blog in my google code repositoty. Soon I will provide source code location.
I would be using JAVA 6, Eclipse - Galileo JEE (with Maven plugin & Embed Jetty plugin) & Fedora 11 OS for development and soapui for testing.
JAXWS is the XML based web service release over the traditional RPC based JAX-RPC web service model. JAXWS only supports JAXB as a data binding framework. JAXWS has been released officially with JDK 1.6. You can also download its reference implementation from java.net
There are two methods for web service development top-down and bottom-up.
top-down
In this approch we have to design WSDL and XML Schema first and using Java Web Service framework provided tool generate server side service classes. So in short we would call it as "WSDL first approach". With this approach you can use any web service framework since it is driven by WSDL and XSD. Using these two inputs you can generate server artifacts easily.
bottom-up
In this approach we have to write code first and using framework provided tool generate the WSDL and data binding XML code. In short we would call it "Code first approach". In the bottom-up approach web service design is tightly coupled with the web service framework, since we are writing code first and then generating server artifacts from it.
updating soon...
No comments:
Post a Comment