yes, this is intentional and is defined by the JAX-WS spec as:
-- cut here --
A default value for the targetNamespace attribute is derived from the package name as follows:
1. The package name is tokenized using the “.” character as a delimiter.
2. The order of the tokens is reversed.
3. The value of the targetNamespace attribute is obtained by concatenating “
http://”to the list of
tokens separated by “ . ”and “/”.
E.g., the Java package “com.example.ws” would be mapped to the target namespace “
http://ws.example-
.com/ ”.
} Conformance (Package name mapping): The javax.jws.WebService annotation (see section 7.11.1)
MAY be used to specify the target namespace to use for a Web service and MUST be used for classes or
interfaces in no package. In the absence of a javax.jws.WebService annotation the Java package name
MUST be mapped to the value of the wsdl:definitions element’s targetNamespace attribute using
the algorithm defined above.
-- cut here --
[Message sent by forum member 'arungupta' (arungupta)]
http://forums.java.net/jive/thread.jspa?messageID=232128