aspose file tools
The moose likes Web Services and the fly likes Confusion because of different tutorial of Web service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of RabbitMQ in Depth this week in the Open Source forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Confusion because of different tutorial of Web service" Watch "Confusion because of different tutorial of Web service" New topic
Author

Confusion because of different tutorial of Web service

Gourav Bansal
Ranch Hand

Joined: Jun 27, 2010
Posts: 41
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

Joined: Jul 04, 2006
Posts: 236
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

Joined: Mar 22, 2005
Posts: 42956
    
  73
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

Joined: Jul 04, 2006
Posts: 236
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Confusion because of different tutorial of Web service