• 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Missing wsdl namespace on wsdl file generated using wsgen

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
A lot of people cry when they cut onions. The trick is not to form an emotional bond. This tiny ad told me:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic