Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting Axis to publish a wsdl instead of generating it

 
Kevin Eddy
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1463
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic