File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Starting Out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Starting Out" Watch "Starting Out" New topic
Author

Starting Out

Anirudh Vyas
Ranch Hand

Joined: Oct 23, 2006
Posts: 93
Hi,

Can someone point me to a "Hello" World web service example ( which has a web service deployed ( goes through the steps ( it could be on JBOSS or WAS ... anythings good ), and then a client that calls / uses that services to get something back ( can / probably should be as simple as "Hello World" ).

I am familiar with SOAP RPC basics, but a little confused about jargons related to WSDL and UDDI etc. ...


Thanks for advice in advance,

Regards
Vyas, Anirudh


Vyas, Anirudh
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
You only need Java SE 6

Webservices in JDK 6
Introducing JAX-WS 2.0 With the Java SE 6 Platform, Part 1

However that won't clarify any confusion that you may have regarding WSDL and UDDI.

Maybe this topic can be of some help.
And don't forget the Web services FAQ.
Jose Campana
Ranch Hand

Joined: May 28, 2007
Posts: 339
Hi there !

I'm looking for the exact same thing as Anirudh. It's so easy to create Web Services in .NET, I saw a guy today do it in 5 minutes. I was wondering if its like that in Java.

...and most of all I would like to know If I could try a "Hello World" example using Glass Fish? (Is there a tutorial around?)

Good Luck,

Jose
[ February 19, 2008: Message edited by: Jose Campana ]
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Originally posted by Jose Campana:
It's so easy to create Web Services in .NET, I saw a guy today do it in 5 minutes.


Most likely you saw somebody use MS Visual Studio to create an ASP.NET web service on IIS.

I was wondering if its like that in Java. ...and most of all I would like to know If I could try a "Hello World" example using Glass Fish? (Is there a tutorial around?)


For a comparison you would have to look at creating a JAX-WS web service on Glassfish/Sun Application Server 9.0 with the NetBeans IDE.

NetBeans IDE 5.5: Web Services (JAX-WS) in Java EE 5
NetBeans IDE 6.0: Getting Started with RESTful Web Services on GlassFish
Jose Campana
Ranch Hand

Joined: May 28, 2007
Posts: 339
Hello Peer!

Sorry for the delayed response!.. I have not been an active member of the ranch for quite a long time now.

You assumptions are correct, that guy was using Visual Studio (which I hate) and deployed the service to IIS. It seems that you have some sort of grievance against that particular process (WS in Visual Studio --> IIS), right? Why would that be?

Thanks for the links you gave me, I'll have to check them out right away! I wish I had more time in my hands to be able to study more.

Anyways, you bartenders rock!
Thanks for the help!

Sincerely,
Jose
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Originally posted by Jose Campana:
It seems that you have some sort of grievance against that particular process (WS in Visual Studio --> IIS), right? Why would that be?


My "grievance" as you call it, is not with the tool itself. I'm not fond of the "contract last" approach that you can also practice with NetBeans and Glassfish (or any IDE + JEE 5 App Server of your choice). People seem to interpret "looks fast and easy to do" as "is the right way to do it" - which isn't the case. "Contract last" lowers the barriers to the point where you create a web service interface without much thought about what your web service interface looks like and how usable it is from the web service client perspective. "Contract last" is so easy that it is used by people who do have not background to make a judgment whether or not the generated "web service interface" is utterly confounding to any prospective web service client (and whether and how to tweak it).
You are shifting from the object-oriented paradigm to a message and service-oriented paradigm - so you have to expect that some accommodations have to be made.

See web service magic pixie dust and contract first.
Jose Campana
Ranch Hand

Joined: May 28, 2007
Posts: 339
Howdi Peer !

Well, I checked the articles, and they're really great! thanks for giving 'em to me. It's pretty valuable info. for a newbie like myself.

Keep on the fantastic job, and once more sorry for the delayed replies.

Best Regards,

Jose
Salil Surendran
Ranch Hand

Joined: Jan 16, 2004
Posts: 38
Hello,
I went to the java web services tutorial and downloaded their app server and their java web services developer pack. However, the tutorial seems to point to some completely different source. Like the jwsdp has jaxws/samples/fromjava and the tutorial says it should have examples/jwstutorial/jaxws/HelloService. Can someone point me to where I can get the right tutorial?


Thanks,<br />Salil Surendran
Salil Surendran
Ranch Hand

Joined: Jan 16, 2004
Posts: 38
Originally posted by Peer Reynders:
You only need Java SE 6

Webservices in JDK 6
Introducing JAX-WS 2.0 With the Java SE 6 Platform, Part 1

However that won't clarify any confusion that you may have regarding WSDL and UDDI.

Maybe this topic can be of some help.
And don't forget the Web services FAQ.


Wow this tutorial is really good.
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by Peer Reynders:
You only need Java SE 6


How would you deploy it without an application server?
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by ankur rathi:


How would you deploy it without an application server?


I just read in above mentioned tutorial that light weight HTTP server is part of JDK 6 where it's published (deployed).
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
See this topic for a stripped down version of the Web Services Made Easy with JAX-WS 2.0 tutorial that uses just Java SE 6 rather than being deployed on Glassfish.
[ March 20, 2008: Message edited by: Peer Reynders ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Starting Out