File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Missing wsdl namespace on wsdl file generated using wsgen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Missing wsdl namespace on wsdl file generated using wsgen" Watch "Missing wsdl namespace on wsdl file generated using wsgen" New topic
Author

Missing wsdl namespace on wsdl file generated using wsgen

Cory Max
Ranch Hand

Joined: Jul 20, 2005
Posts: 83
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


There are only 10 types of people in this world... Those who understand binary and those who don't.
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
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

"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Missing wsdl namespace on wsdl file generated using wsgen
 
Similar Threads
Query regarding RPC/Document Style,WSGEN and WSIMPORT
JAX-WS wsgen using Maven2
Https and wsdl
Calculator example
MTOM example