• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Confusion because of different tutorial of Web service

 
Gourav Bansal
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am new to web service. I am going through the different web tutorial or example over the internet. Some of the tutorial that I read are using listener entry in web.xml and sun-jaxws.xml for endpoint information. eg
http://java.dzone.com/articles/jax-ws-deployment-five-minute

While when I going to other tutorials they are using nothing listener and sun-jaxws.xml file eg.

http://javabrains.koushik.org/p/java-ee.html
http://docs.oracle.com/javaee/7/tutorial/doc/jaxws001.htm#BNAYN

I am confused here are they both different type of WS or different way to implement the same type of WS. Which I should follow ?
 
Surendra Kumar
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Former is an example of a web application invoking the service so you need some listener (and it seems to be Sun's implementation so you have follow that documentation). (Apache Axis2 is another implementation in which case you have to use CXFServlet etc.)

The latter is just a simple java application so you don't need a listener.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apache Axis2 is another implementation in which case you have to use CXFServlet etc.

"CXFServlet" does not sound like an Apache Axis2 class, it sounds like an Apache CXF class.
 
Surendra Kumar
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:"CXFServlet" does not sound like an Apache Axis2 class, it sounds like an Apache CXF class.


Yes, you're right. Thanks for correction.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic