@jws:target-namespace Tag
Specifies the XML namespace used for outgoing XML messages and generated WSDL files.
@jws:target-namespace namespace="defaultXMLNamespace"
namespace
Required. Specifies the default namespace used for outgoing XML messages and generated WSDL files.
The following rules apply to this tag's use:
Optionally may appear on the main class in a JWS file.
Optionally may appear on the main interface in a CTRL file.
If no target namespace is specified (this tag is not present), the namespace used is http://www.openuri.org/.
Note: Before deploying web services, you should define a unique default namespace for your organization. If multiple organizations were to leave the default namespace as http://www.openuri.org/, it could result in namespace conflicts.
The @jws:target-namespace tag affects the behavior of the following XML generation actions:
If there is no XML map specified for an incoming or outgoing message, a default XML map is used (the natural mapping). The elements of the resulting XML message must be specified in some namespace. The value of @jws:target-namespace is used.
If a custom XML map is present for an incoming or outgoing message but no namespace is specified in the XML map, the value of @jws:target-namespace is used.
WSDL files generated from JWS files specify a namespace for the elements in the WSDL file. The value of @jws:target-namespace is used.
Note that if @jws:target-namespace is not defined, the default value of http://www.openuri.org/ is used.
For more information on XML maps, see Why Use XML Maps?
For more information on WSDL files, see WSDL Files.