• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

How to deploy a WSDL to Axis 1.4

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Joshy Thomas
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43045
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Kaustabh Singha Roy
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not found any solution yet. Do anybody has a way available?
 
reply
    Bookmark Topic Watch Topic
  • New Topic