Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A question related to creating java based webservices

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am completely new to web services .please help me in learning that .

I heard that there are actually two approaches for developing java based web services
1. JAX -WS 2. JAX -RPC .

I am question here , where does Apache Axis stand here ?? Is it related to any of these two ??

Thank you .
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JAX-RPC is obsolete, don't use it for anything new; JAX-WS is the future.

Axis 1 implements JAX-RPC, but not JAX-WS.

Axis 2 implements JAX-WS, but not JAX-RPC.

Both implement SAAJ (another, more low-level, API for implementing WS in Java).
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much .

Do we get any advantage if we use Axis 2 directly instead of Jax - WS .

Also read that to use JAX -WS we need java 1.6 version or more .Is this true ??
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do we get any advantage if we use Axis 2 directly instead of Jax - WS .

JAX-WS is an API, while Axis 2 is an implementation of that API. So the choice is not between Axis 2 and JAX-WS, it is between Axis 2, Metro, and all the other existing JAX-WS implementations (the differences of which you can look up on their respective web sites, or search for the recent discussion on that subject in this forum).

Also read that to use JAX -WS we need java 1.6 version or more .Is this true ?

No. Java 6 includes JAX-WS and JAXB, but those libraries can be downloaded and added to Java 5 as well.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
simply Great .Thank you .
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. Java 6 includes JAX-WS and JAXB, but those libraries can be downloaded and added to Java 5 as well.


Hi ,

I am using java 5 version . Now i want to use wsimport , can you please tell me what are jar files i need to download to support this option .
waiting for your reply .
Thanks
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JAX-WS and JAXB can both be found on dev.java.net.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic