aspose file tools*
The moose likes Web Services and the fly likes Getting Axis to publish a wsdl instead of generating it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Getting Axis to publish a wsdl instead of generating it" Watch "Getting Axis to publish a wsdl instead of generating it" New topic
Author

Getting Axis to publish a wsdl instead of generating it

Kevin Eddy
Ranch Hand

Joined: Feb 24, 2010
Posts: 74
Can someone tell me how to have axis publish a wsdl instead of generating one? I have a top down service with a predefined wsdl that needs to be published. Although I used the predefined wsdl to generate my code for my service, when I request the wsdl from the service, there are some slight differences. I know jax-ws has a mechanism for this with the @wsdlLocation annotation. But I'm not sure how to get this done with Axis.
Kevin Eddy
Ranch Hand

Joined: Feb 24, 2010
Posts: 74
It took some digging but I found it.
This element goes in the .wsdd
<wsdlFile>myOwnServiceNameGoesHere.wsdl</wsdlFile>

and put the wsdl file in
axis/WEB-INF/classes

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1379
Hi Kevin, just curiosity, Why you are calling WSDL using
<wsdlFile>myOwnServiceNameGoesHere.wsdl</wsdlFile>
? You followed top-down approach(generating stub(client class) and skeleton(WebService implementation classes) from the WSDL using java2WSDL.

Kevin Eddy
Ranch Hand

Joined: Feb 24, 2010
Posts: 74
kri shan wrote:
You followed top-down approach(generating stub(client class) and skeleton(WebService implementation classes) from the WSDL using java2WSDL.


I don't know what tool was used to generate the wsdl. All I know is Axis changed it up a little bit when generating it. So to keep with standards, dictated to me by an oversight committee, I needed to publish a static wsdl.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting Axis to publish a wsdl instead of generating it