wood burning stoves 2.0*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web-app to web-service (Axis)" Watch "Web-app to web-service (Axis)" New topic
Author

Web-app to web-service (Axis)

Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1511
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

http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2

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
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
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?

Bill


Java Resources at www.wbrogden.com
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
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 ]

Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web-app to web-service (Axis)
 
Similar Threads
New to WebServices - Want to have a head start
Web Services newbie
How can I automatically build a wsdl file with SOAP?
generate AXIS server-config.wsdd ?
How to run sample web service