File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Web-app to web-service (Axis) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web-app to web-service (Axis)" Watch "Web-app to web-service (Axis)" New topic

Web-app to web-service (Axis)

Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1599
I want to convert a web-application to web-service, and i want to know what are the changes i need to make.

I have been through the second page here

It does tell me how to use java2wsdl and wsdl2java tool, but then some commands dont work for me, am using axis2-1.4 the latest one from Apache's site.

can somebody in easy step tell me how do I expose this method out and reach to it from outside...

Something i understand so far,
1. web.xml is used to provide mappings and redirect incoming requests.
2. java2wsdl and wsdl2java are tools to convert from java to wsdl and wsdl to java respectively.
3. For my class do I need to generate wsdl?
4. what is a namespace?
5. what is stub and skeleton? do I still need wsdl file after generation of these?
6. UDDI is something that exposes the service, but where and how a uddi is configured?

Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
You seem to be assuming that a SOAP based web service is what you need. Please be aware that many big commercial web services are REST based because the REST approach is simpler and easier to describe to users.

I did this survey article to try to explain the REST side of the REST v SOAP question.

Who are the potential customers for your service? Have they already decided that they want a SOAP service?

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
In addition to what William said, just a couple of comments to your questions:

#1: web.xml is used for web apps; it has little or no use for WS. (Many WS engines are implemented as web apps -and so do have web.xml files- but you as the WS developer don't need to worry about those.)

#6: UDDI is a registry service; it has not become popular, and you should disregard it. You don't need it to publish a WS.
[ July 31, 2008: Message edited by: Ulf Dittmer ]
I agree. Here's the link:
subject: Web-app to web-service (Axis)
It's not a secret anymore!