Solved

Creating a WSDL and building a webservice

Posted on 2008-06-20
9
1,129 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
 
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now