Transforming elements in the Properties folder by using the Override function
You can use the Override function to copy a complex type from the input message to the output message, while updating some of the child elements in the complex type. A message assembly component is described by a complex data structure.
Before you begin
Create a message map. For more information, see Creating a message map to transform SOAP messages.
About this task
The Properties folder has a Move transform defined automatically when you create a message map so that all elements in the Properties folder are copied to the output Properties folder structure. The following figure shows the message map that you have created previously:
In the scenario, you define an Assign transform to change the value of the CodedCharSetId element in the Properties folder from UTF-16 to UTF-8. Support for Universal Transformation Format (UTF)-16 encoding is required by the WS-I Basic Profile 1.0. UTF-16 is a unicode encoding scheme using 16-bit values to store Universal Character Set (UCS) characters. UTF-8 is the most common encoding that is used on the Internet and UTF-16 encoding is typically used for Java™ and Windows product applications. For more information on the values that you can set for the CodedCharSetId element, see Supported code pages.
Procedure
Complete the following steps to modify the CodedCharSetId element of the properties folder:
Results
You have transformed elements of the Properties folder by using the Override function.
If you choose Nest transforms within the parent map, a Local map transform is defined between the input Properties folder and the output Properties folder.
The local map that is created contains a Move transform per element, with the exception of the CodedCharSetId element that has an Assign transform.
What to do next
Configure the message map to include the local environment tree. For more information, see Customizing a message map to include the local environment tree.