Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Service Development | Working with Variables | Using XML Namespaces and Namespace Prefixes with Variables | Assigning XML Namespaces and Prefixes to Variables
 
Assigning XML Namespaces and Prefixes to Variables
Use the XML Namespace property to assign a namespace name to a variable. If you intend to use the variable with a web service descriptor (for example, in the signature of a service used as an operation or in an IS document type used for a header or fault), review the information described in Guidelines for Using XML Namespaces and Prefixes with Web Service Descriptors before assigning XML namespaces and namespace prefixes to a variable.
Keep the following points in mind when assigning XML namespaces and prefixes to a variable:
*The variable name must be in the format: prefix:variableName
*You must specify a URI in the XML namespace property.
*Do not use the same prefix for different namespaces in the same document type, input signature, or output signature.
*To assign an XML namespace and prefix to a variable
1. In the editor, select the variable to which you want to assign an XML namespace.
2. In the Properties view, click the XML namespace browse button () and then enter a value for the XML namespace.
3. To assign a prefix to a variable, rename the variable to use the following format in which the namespace prefix precedes the variable name: prefix:variableName.
4. Click OK.
5. Click File > Save.