aspose file tools*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Objective 4.7 - Describe creating a Web Service using JAX-WS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Objective 4.7 - Describe creating a Web Service using JAX-WS" Watch "Objective 4.7 - Describe creating a Web Service using JAX-WS" New topic
Author

Objective 4.7 - Describe creating a Web Service using JAX-WS

Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1174
Good Day,

Ivan's study guide says -

Developing the most basic form of a JAX-WS web service consists of the following steps:
- Write a Java class that contains the implementation of the service method(s).
- Annotate the above class with JAX-WS annotation(s).
- Compile, package and deploy the web service.
In the above case the web service container will generate the WSDL document


That's Java first or "bottom-up", right? Is there a "top-down" or "contract first" way within JAX-WS?

Regards,
Dan

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

Joined: Jul 09, 2001
Posts: 1174
Interestingly, Implementing Web Services using JAX-WS describes the exact same Java first approach in a very concise way.

Regards,
Dan
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Dan Drillich wrote:
That's Java first or "bottom-up", right? Is there a "top-down" or "contract first" way within JAX-WS?

Yes, there is.
If you want to start from a WSDL, then you generate the client and server artifacts using wsimport.
Finally you write the endpoint implementation class, which is to implement the generated interface of the service.

Edit:
I see your point - you feel that there is something missing from my study guide.
I can agree with you and even to the extent that I feel that I should add an example of contract-first development in that very section.
Thanks for pointing this out!
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1174
Thank you Ivan.
Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 518
    
    2

This conversation provoked me to ask "if contract first style of developing webservice, a part of SCJDWS 5.0". It is better to know the process, which seem to be followed by many other frameworks, but just curious if this is a part of the certification.


Regards
KumarRaja

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Have you seen section 9.3 in which there indeed is an example of WSDL-first development of a JAX-WS web service?
Admitted, the example is not as clear and concise as it can be.
I haven't had time to write anything yet so I thought I'd at least give you a pointer.
Best wishes!
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1174
Much appreciated Ivan!

Regards,
Dan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Objective 4.7 - Describe creating a Web Service using JAX-WS