Creating a WSDL and building a webservice

Hi,

I want to build my own webservice using starting from wsdl approach. I am going to be using axis and deploying the application on tomcat. I have the following questions:

1) How do I generate a wsdl at the first place? Are there any free UI based tools available to do the same? I know XML Spy does that and perhaps I can use its trial version to create a new wsdl.

2) After the wsdl is generated do I need to do some magic, before I can use wsdl2java utility i.e. creating a folder structure etc..

3) How do I deploy this service to tomcat?
Prompt response is much appreciated.

Thanks,
ncheeku
ncheeku14Asked:
Who is Participating?
 
Siva Prasanna KumarConnect With a Mentor Principal Solutions ArchitectCommented:
May be this is the simplest possible :)

http://www.tutorialspoint.com/wsdl/wsdl_example.htm

0
 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
Download latest Eclipse from here you can create as well as build web service in no time.

http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/europa/winter/eclipse-jee-europa-winter-win32.zip

Create a New Dynamic  Web Project, and let me know later I can tell u step by step how to develop the web service, also download the latest tomcat.
0
 
ncheeku14Author Commented:
I just downloaded the above and created a dynamic web project. How can I start creating the wsdl now..thanks..naresh..
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
right click on the created project and select new WSDL
0
 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
Do you know how to write a WSDL ? if not please go through

http://developers.sun.com/appserver/reference/techart/overview_wsdl.html or WSDL specs at the end of the page in the same link.
0
 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
if you are done with WSDL after that you need to follow these steps for consturucting stub classes from your WSDl,

Please Eclipse WTP use axis 1.x Wsdl2java wizard for generating the web service stubs, it also adds all the  required jars for your class path. you just need to implement you java function and you web service is good to go.

http://www.eclipse.org/webtools/jst/components/ws/1.5/tutorials/TopDownWebService/TopDownWebService.html
0
 
ncheeku14Author Commented:
thanks shivaspk, i am gonna go through this tonight and tommorow and will let you know by tmrw...
0
 
ncheeku14Author Commented:
hi shivaspk, this is very very good resource. :) However as I am new to this its taking me a bit of time to understand the wsdl structure there. I was wondering if you can provide me with a simple sample wsdl and I can go from there.

Thanks, ncheeku14
0
 
ncheeku14Author Commented:
thanks shivaspk..this works out perfectly for me.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.