Chapter 4 Building Business Process Diagrams
This tab displays a list of XML namespaces prefixes used by the WSDL file. These prefixes can reference included data schema namespaces or any external namespaces. You can create XML namespaces prefixes using the Add a Row tool.
An XML namespace is a URI (Uniform Resource Identifier) reference used in XML documents, which indicates a location where element and attribute names are declared. An XML document can contain element or attribute names from more than one XML vocabulary. If each vocabulary is given a namespace, then the ambiguity between identically named elements or attributes can be resolved.
For example, an XML document can contain references to a customer and an ordered product. Both the customer element and the product element can have a child element named "ID_number". If you declare a namespace (i.e. which vocabulary an element or attribute name comes from) you differentiate them, and avoid ambiguity.
An XML namespace can be created in a choreography diagram with any orchestration languages.
The namespace declaration syntax is the following:
xmlns:prefix="namespaceURI"
An XML namespace contains the following parameters:
Parameter | Description |
---|---|
xmlns | Stands for XML Namespace. Indicates an XML namespace declaration. |
:prefix | [optional] Shorthand for the full name of the namespace. It qualifies elements belonging to that namespace. You use it when you need to differentiate same namespace references. |
namespaceURI | Uniquely identifies a namespace in the XML document. |
The XML namespace can be defined in the XML Namespaces tab for each service provider and XSD document in your model.
In the following example, bk is used as a shorthand for the full name of its respective namespace:
<BOOKS> <bk:BOOK xmlns:bk="urn:example.tyler.com:BookInfo" <bk:TITLE>Funny Words</bk:TITLE> </bk:BOOK> </BOOKS>
Copyright (C) 2008. Sybase Inc. All rights reserved. |