Solved

Creating a WSDL and building a webservice

Posted on 2008-06-20
9
1,134 Views
Last Modified: 2013-11-19
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
0
Comment
Question by:ncheeku14
  • 5
  • 4
9 Comments
 
LVL 23

Expert Comment

by:Siva Prasanna Kumar
ID: 21833033
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
 

Author Comment

by:ncheeku14
ID: 21834942
I just downloaded the above and created a dynamic web project. How can I start creating the wsdl now..thanks..naresh..
0
 
LVL 23

Expert Comment

by:Siva Prasanna Kumar
ID: 21835857
right click on the created project and select new WSDL
0
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 23

Expert Comment

by:Siva Prasanna Kumar
ID: 21835915
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
 
LVL 23

Expert Comment

by:Siva Prasanna Kumar
ID: 21837250
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
 

Author Comment

by:ncheeku14
ID: 21838446
thanks shivaspk, i am gonna go through this tonight and tommorow and will let you know by tmrw...
0
 

Author Comment

by:ncheeku14
ID: 21842172
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
 
LVL 23

Accepted Solution

by:
Siva Prasanna Kumar earned 500 total points
ID: 21842190
May be this is the simplest possible :)

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

0
 

Author Comment

by:ncheeku14
ID: 21842701
thanks shivaspk..this works out perfectly for me.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question