This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Missing wsdl namespace on wsdl file generated using wsgen

 
Cory Max
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

I'm new to jax-ws web services but everything seems to be going pretty well. I have created a class and exposed it as a service and deployed it. I use the wsgen tool to create a wsdl file for me. My problem is that my wsdl file is missing the wsdl namespace prefix on some of it tags for example, my generated wsdl file is as follows:



What I would like is for the defenitions tag and types tags to be prefixed with wsdl:.

How can I get this to happen?

Thanks,

Cory
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The namespace declaration xmlns="http://schemas.xmlsoap.org/wsdl/" makes the WSDL namespace the default namespace - that means that for example definitions actually means {http://schemas.xmlsoap.org/wsdl/}definitions. Therefore no prefix is required.

Ronald Bourret's XML Namespaces FAQ
James Clark: XML Namespaces
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic