Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Allexicus Kernikus
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!
 
Ivan Krizsan
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic