This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Why context listeners not configured in web.xml in some way of WS implementation? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Why context listeners not configured in web.xml in some way of WS implementation?" Watch "Why context listeners not configured in web.xml in some way of WS implementation?" New topic
Author

Why context listeners not configured in web.xml in some way of WS implementation?

Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 518
    
    2

Hello All,

My question is in reference to Ivan's notes (Chapter 9). I'm comparing the setup between generating service and client artifacts from WSDL and the implementing XML Based, Document style WS.

Under section 9.3 "Create WSDL and Generate Service Implementation from XMLSchema", there is no explicit inclusion of WSServletContextListeners and Servlet mapping is not included in web.xml. Also, there is no reference to the usage of sun-jaxws.xml in this case.

But under section 9.4, "XML-Based, Document Style JAX-WS Web Service", there is a reference to the usage of Listeners, Servlet Mappings and the usage of sun-jaxws.xml.

Why there is a difference here? In what way having or not having the listeners configured in web.xml, will have impact on the Web Service.

Please advice.

Thanks

Regards
KumarRaja

Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1167
Kumar,

It's interesting to see that in section 9.3 we see a shell web.xml -



Whereas in section 9.4, we see a full fledged web.xml -




Not sure if JAX-WS RI web services deployment made simplified sheds light on it.

Regards,
Dan



William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
@Kumar: I will consider the question answered by Dan.
I do not hesitate to attempt additional clarification, upon request.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 518
    
    2

Thank you Dan and Ivan.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Dan Drillich wrote:
It's interesting to see that in section 9.3 we see a shell web.xml -
...
Whereas in section 9.4, we see a full fledged web.xml -

A very good observation!
Section 9.4 has a more complete web.xml deployment descriptor due to the fact that the Metro deployment descriptor, sun-jaxws.xml, is also used in the example.
At that time, I were not able to make the example work without the web.xml deployment descriptor configured as seen in the study notes. This may have changed with GlassFish v3 - I haven't tried.
Best wishes!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why context listeners not configured in web.xml in some way of WS implementation?
 
Similar Threads
Web Services Certification Material
Sample Questions for 288 - Need answers
SCDJWS Beta!!!!!!
Deployment of JAX-WS webservice: sun-jaxws.xml and web.xml
SCJWSD Beta Exam