![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
This section shows you how to customize the XML namespaces that are based on the function XMLDOCNAMESPACE called from the rule XMLSTART4 to produce the soap:Envelope portion of the XML request message. See the following figure.
1.
2. Delete all the consumption rules and define a new preprocess production rule BOOKS_XMLNS_PRE. Leave all the other settings unchanged.
3. Create a rule BOOKS_NAMESPACE that contains the required SOAP envelope element in NEW_FIELD_VALUE, which will be used in the XMLDOCNAMESPACE rule, as illustrated here:
4. Create a rule BOOKS_XMLNS_PRE, which sets a local variable NSRULE to enable BOOKS_NAMESPACE to run, as illustrated here:
5. Run the XML document BOOKS_XMLNS_PRE. The result looks like this:
<bookstore xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:xsd="http://www.w3.org/2001/XMLSchema">
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |