This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes How to deploy a WSDL to Axis 1.4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to deploy a WSDL to Axis 1.4" Watch "How to deploy a WSDL to Axis 1.4" New topic
Author

How to deploy a WSDL to Axis 1.4

Kaustabh Singha Roy
Ranch Hand

Joined: Oct 04, 2005
Posts: 43
Can anybody tell me how to deploy a Web Service from a WSDL file in axis 1.4 running on a tomcat server? I tried a lot to locate some clue on the net. Nothing meaningful I got. I have generated the WSDL using the axis-java2wsdl task.

I can use a axis-wsdl2java task again on the generated WSDL file and deploy the generated deploy.wsdd file. But I am not being able to like this approach. I don't like editing generated files. Anybody has any better idea? Please suggest.

Thanks for your time.
Joshy Thomas
Greenhorn

Joined: Jul 23, 2004
Posts: 13
Did your create .aar file and deployed to services directory under the tomcat axis WEB-INF folder ?

If web interface doesn't work, try copy it manually.


<a href="http://www.FindTaxService.com" target="_blank" rel="nofollow">Free Tax Software</a>
Joshy Thomas
Greenhorn

Joined: Jul 23, 2004
Posts: 13
Did your create .aar file and deployed to services directory under the tomcat axis WEB-INF folder [<tomcat-home>\webapps\axis2\WEB-INF\services]?

If web interface doesn't work, try copying it manually.
Kaustabh Singha Roy
Ranch Hand

Joined: Oct 04, 2005
Posts: 43
Sorry for not providing enough detail. I am not using .AAR files. At present I deploy the services with the axis-admin Ant task(using the generated deploy.wsdd file). Though this approach works, it do not satisfy me. I am looking for a better way to do things. My present process(I got the idea from the net, many people suggested it.) forces me to edit the axis-wsdl2java generated files. I think there should be a better way, elegant and concrete.

Thanks.
Kaustabh Singha Roy
Ranch Hand

Joined: Oct 04, 2005
Posts: 43
My present approach is...

1. Create a bean class for the web service.
2. Use axis-java2wsdl to create the WSDL file.
3. Use the axis-wsdl2java task to create null implementation of the service with the stub and the other things.
4. Edit the newly generated files to give the implementation a meaning(with the help of the file created at the first step).
5. use the axis-admin task to deploy the service with the help of the generated deploy.wsdd file.

As you see there is always a chance that the code I edit get overwritten.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41134
    
  45
I'm not quite following. You're asking about how to deploy a WS, but your step 5 seems to do just that.

You also mention that you don't like hand-editing the generated WSDD file, but usually that can't be avoided - it contains a lot of stuff that can't be inferred from the source.

So is the question really about deployment, or about creating a WSDD file that doesn't need editing, or about something else?


Ping & DNS - my free Android networking tools app
Kaustabh Singha Roy
Ranch Hand

Joined: Oct 04, 2005
Posts: 43
I will try to make the things clearer. My problem is not that I can't deploy WS. I am trying to remove the step 3 and 4 mentioned in my last post. Is there a way to deploy the WSDL files generated at step 2 in Axis 1.4? If I can deploy the axis-java2wsdl output directly to Axis then I will be able to simplify my development and it will be quicker too. I want my development steps to look like...

1. Implement the service in a java class.
2. Generate WSDL with the axis-java2wsdl task.
3. deploy the service with the WSDL generated at the step 2.

Another point is that with my present method I need to edit the axis-wsdl2java generated .java files. The generated files are only null implementation. Though till now I need not edit the generated .wsdd files, I dont want to edit the java files too. I feel there must be ways available to use WSDLs(not WSDD) with Axis which is not in my knowledge.

Thanks.
Kaustabh Singha Roy
Ranch Hand

Joined: Oct 04, 2005
Posts: 43
Not found any solution yet. Do anybody has a way available?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to deploy a WSDL to Axis 1.4
 
Similar Threads
Adding comments in WSDL file
How to change the name of the binding element in wsdl file ?
WSDL Reference in generated Client Stub.
How to change the name of the binding element in wsdl file ?
How to create a webservice with axis specific WSDL