• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Confusion because of different tutorial of Web service

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Do you pee on your compost? Does this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic