File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Learning jax-ws what should one know? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Learning jax-ws what should one know?" Watch "Learning jax-ws what should one know?" New topic
Author

Learning jax-ws what should one know?

Brendon Woodford
Ranch Hand

Joined: Jan 22, 2010
Posts: 53
Hi everybody ,
I have learnt jax-rpc and have seen how other technologies like XML, JAXP, JAXB, SAAJ, JAXR play a significant role in the background to exchange SOAP messages between the Requester and the Provider. I have written example programs and run them on weblogic8 server using hibernate as ORM. The example program is running fine.

Is it necessary to be proficient at XML, JAXP, JAXB, SAAJ, JAXR? I know a little bit of JAXP and while writing the example program I saw It was not needed explicitely ,things were done at the background by the tools.

Another question is : every other server uses its own way of creating webservices and client generation, deployment of the service ; for instance weblogic8 does it in a way using servicegen and clientgen options , the Apache axis does it in a different way. Is there a way to create the services and generating clients be done in a vendor independent way?

What is the most widely used way of generating Webservices ( Axis server tools, or Java's own wsgen tool or any other )

I am now keen to learn JAX-WS. what are the things one should need to know and how is it different from JAX-RPC? Can you refer any good ebook or tutorial for learning jax-ws?

Thank you very much
Brendon
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

I believe, nowadays, choosing a goot webservices development framework (for example AXIS2) or tool will allow you to achieve your business needs.


S.D. MADHAN
Not many get the right opportunity !
Brendon Woodford
Ranch Hand

Joined: Jan 22, 2010
Posts: 53

Is it necessary to be proficient at XML, JAXP, JAXB, SAAJ, JAXR? I know a little bit of JAXP and while writing the example program I saw It was not needed explicitely ,things were done at the background by the tools.

Baba prakash
Greenhorn

Joined: Jan 14, 2010
Posts: 5
Hi,
JAX-WS is extension to JAX-RPC introduced in JEE1.5. And from Java1.6 onwards We can develop JAX-WS webservices using JDK itself. JAX-WS internally uses JAXB and SAAJ APIS.


What is the most widely used way of generating Webservices ( Axis server tools, or Java's own wsgen tool or any other )?

Ans: Mostly we use AXIS, CXF webservice engines to generate webservices.

Is it necessary to be proficient at XML, JAXP, JAXB, SAAJ, JAXR? I know a little bit of JAXP and while writing the example program I saw It was not needed explicitely ,things were done at the background by the tools.
Ans: It is good to have some knowledge on above mentioned APIs to understand JAX-WS.

Is there a way to create the services and generating clients be done in a vendor independent way?
Yes we can do it. From Java1.6 onwards to create webservices we dont require any webservice frameworks.JAX-WS is part of JDK it self.


Thanks,
Babaprakash


Brendon Woodford
Ranch Hand

Joined: Jan 22, 2010
Posts: 53
hi Prakash

you wrote-
Yes we can do it. From Java1.6 onwards to create webservices we dont require any webservice frameworks.JAX-WS is part of JDK it self.


Developing webservices using jdk1.6 requires the service be placed in an application server. Which server do we use? An Axis2 server? or any other like Weblogic 10?
These Servers have their own way of deploying the webservice generated by their own webservice generating tools. How do we deploy jdk1.6 generated webservice in the app servers?
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Depending on which you are using , you just nerd to check thee documents regarding deploying webservices. Also, if you are using an IDE such as eclipse, there if cm AXIS plugin that you can download that will aid in development.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Kristofor Davison
Greenhorn

Joined: Jul 05, 2011
Posts: 6
take a look at Axis2 you can deploy the Axis2.war file on most servers and then you can the the axis2 admin console to deploy your web services
which means that the deployment is axis specific but not server specific (so if you must change server your web services should be unaffected).
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41634
    
  55
Baba prakash wrote:JAX-WS is extension to JAX-RPC introduced in JEE1.5.

No. JAX-WS completely replaces JAX-RPC, and it is independent of JEE - for example, you can use it in a servlet container.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Learning jax-ws what should one know?