Configuring the XSD type for an XML Stream rule
Define the XSD type details for a tree node in an XML Stream rule.
- In the navigation pane of Dev Studio, click Records.
- Expand the Integration-Mapping category, and then click XML Stream.
- Click the row of an XML Stream rule to open it.
- Double-click a tree node to display the User Data window for the node.
- Optional: On the Type tab of the User Data
window, in the XSD Base Type, specify a built-in XSD
primitive type.This value does not impact stream generation unless the Use SOAP 1.1 encoding option on the XML tab is selected. If this option is selected, the value is added to the element tag of the selected node as an
xsi:type
attribute.Note: XSD date
,dateTime
, andtime
values use a special formatting that is distinct from PegaDate
,DateTime
, andTimeOfDay
property value formatting. For these XSD types, the value specified in this field alters stream rule generation to convert the property value to the XSD format before adding it to the XML stream. - In the Type Name field, specify the custom type name
used to define this node.This value does not impact stream generation unless the Use SOAP 1.1 encoding option on the XML tab is selected. If this option is selected, the value is added to the element tag of the selected node as an
xsi:type
attribute. This value overrides the XSD Base Type value. - In the Type Namespace, specify the namespace URI value
of the custom type used to define this node. This value does not impact stream generation unless the Use SOAP 1.1 encoding option on the XML tab is selected. If this option is selected, the value is added to the element tag of the selected node as an
xsi:type
attribute. - In the Default Value field, specify a value that will be
used in the XML stream content when there is no clipboard data to be
mapped.If a value is specified, it overrides the behavior of the Optional and Nillable options on the Node tab.
- To add a
soapenc:arrayType
attribute to the selected element tag for use in an encoded SOAP message, select Is SOAP array.The Use SOAP 1.1 encoding option must be selected to enable this feature.If checked, this element should have as its immediate child a repeating element tag that represents the array values. The repeating element tag should be mapped to a Page List property (using the Context Page field), or to a Value List property (using the Source Property field).
When selected, provide an array type name and a type namespace.
- Click OK.
Previous topic Configuring the node for an XML Stream rule Next topic Defining pages and classes for an XML Stream rule