nameSpace element

Describes a namespace. This namespace may be used for code generation or for handling <wsdl:import> directives.

Usage

<nameSpace
  uri = "character_string">
  child elements
</nameSpace>

Attributes

Attribute Type Required Description
uri
character_string
Yes
The unique URI of the namespace.

Child elements

Element Description
codeName
The name to be used to identify the namespace in generated code.

macroPrefix
The prefix to be used in the generated code for names of macros in the namespace.

name
A qualified name in the namespace.

preferredPrefix
The prefix to which the namespace should be mapped to make the XML more readable.

Child element sequence

(
  preferredPrefix?, 
  macroPrefix?, 
  codeName?, 
  name*
)

Parent elements

Element Description
wsdCodeGen
The root element of an WSDAPI code generator XML script file.

Remarks

This element may be used to provide the code generator with additional information about namespaces that it encounters in WSDL and XSD files or to introduce new namespaces.

Namespaces implied by type reflection or specified in WSDL and XSD files are parsed automatically by the code generator and do not have to be explicitly defined in the script. In some cases, this element can be used to add additional properties or names to a namespace that is referenced by type reflection or WSDL/XSD. The code generator does not regard this as a conflict.

The following XML shows a nameSpace element (with children omitted for brevity).

<nameSpace uri="https://www.example.com/namespace">
  ...
</nameSpace>

Element information

Label Value
Minimum supported system
Windows Vista
Can be empty Yes