?
Solved

Creating a WSDL and building a webservice

Posted on 2008-06-20
9
Medium Priority
?
1,149 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

850 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