• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

JAX-WS: targetNamespace default values - specs vs. study material

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some references say that the default value for annotation WebService.targetNamespace is LOWER(classname)/<package backwards> - but the specs say it is "http://"; + <package backwards>.

Where does this contradiction come from?

Many thanks in advance!
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I do not know where the contradiction comes from, since you do not include any references.
If you do some detective work and first look at the Web Service Metadata 2.0 (JSR-181) specification document, section 4.1 then you can read that the default value is as defined in section 3.2 in the JAX-WS specification document. Reading this section, there you can see that it is indeed as you say - the target namespace is prefixed by "http://".
If it is critical to your application that the target namespace is defined one or another way, then supply a value and do not rely on a default value.
Best wishes!
 
Can you really tell me that we aren't dealing with suspicious baked goods? And then there is this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic