Example: Reusing DWLControl values with GlobalFields

The optional <GlobalFields/> XML data after the root tag contains the DWLControl values that you can apply to any of the <DWLControl> in the <TCRMService> XML request that follows.

For example:
<DWLCompositeServiceRequest>
  <!-- <GlobalFields> contains values that can be used
       in other <DWLControl> tag. -->
  <GlobalFields>
    <requesterName>cusadmin</requesterName>
    <requesterLanguage>100</requesterLanguage>
        …
        …
  </GlobalFields>

  <TCRMService>
    <RequestControl>
      <requestID>100181</requestID>
      <!-- The <DWLControl> in this <TCRMService> uses the elements
           defined in the <GlobalFields>. -->
      <DWLControl>
        <requesterName>{ GlobalFields.requesterName }</requesterName>
        <requesterLanguage>{ GlobalFields.requesterLanguage }</requesterLanguage>
            …
            …
      </DWLControl>
    </RequestControl>
        …
        …
  </TCRMService>
      …
      …
  <TCRMService>
    <RequestControl>
      <requestID>100190</requestID>
      <!-- The <DWLControl> in this <TCRMService> uses explicit values. -->
      <DWLControl>
        <requesterName>User1</requesterName>
        <requesterLanguage>200</requesterLanguage>
            …
            …
      </DWLControl>
    </RequestControl>
        …
        …
  </TCRMService>
</DWLCompositeServiceRequest>
In general, you define all the <DWLControl> values in the <GlobalFields> and reuse these values in every single transaction. This example illustrates how you can also explicitly specify these values in any individual transaction.

To reuse the <GlobalFields> values, use the format { GlobalFields.xxx }, where xxx is the corresponding tag name within the <DWLControl> tag.