Configuring the response for a Service SOAP rule
Configure the data mapping for the reply message on the Response tab of the Service SOAP rule.
- In the navigation pane of Dev Studio, click Records.
- Expand the Integration-Services category, and then click Service SOAP.
- In the list of Service SOAP instances, select the instance for which you want to configure the Response tab.
- Click the Response tab.
- In the Response headers section, map data to the outgoing SOAP
envelope header:
- In the Data type field, select one of the following to
indicate the data type that your service sends in the response:
- String
- XML Literal
- In the Name field, enter the external name of the response header.
- In the Description field, enter a text description.
- In the Map from field, specify the source of the SOAP header
value.
- To map the SOAP header value from a property on the clipboard, select Clipboard. If you selected XML Literal as the data type, the property value must contain text that is formatted as well-formed XML.
- To provide the literal value that is to be sent as the value of the SOAP header, select Constant. If you selected XML Literal as the data type, the property value must contain text that is formatted as well-formed XML.
- To map the SOAP header value from an XML Stream rule, select XML Stream. This is the recommended option if you selected XML Literal as the data type.
- In the Map from key field, specify the key of the property
or rule from which to map the SOAP header value.
- If the Map from value is Clipboard, enter a reference to the text property to use as the source of the data being mapped.
- If the Map from value is Constant, enter the literal value of the SOAP header.
- If the Map from value is XML
Stream, enter the Stream Name (second key part) of the appropriate
XML Stream rule. The system assumes that the XML Type key (second key part) of the
XML Stream rule is the constant value
MapFrom
. The system uses the page class of this service rule as the first key part of the stream rule.
- In the Data type field, select one of the following to
indicate the data type that your service sends in the response:
- In the Response parameters section, map the data for the body of
the SOAP message:
- In the Data type field, select the data type of the SOAP
body parameter.See How to complete data mapping for SOAP and dotNet services for details about data types.
- If you selected Document/literal as the binding type in the Style and use section on the Service tab, select XML Literal.
- If you selected RPC/literal as the binding type in the Style and use section on the Service tab, select XML Literal or one of the other XML schema data types in the list.
- If you selected RPC/encoded as the binding type in the Style and use section on the Service tab, select one of the other XML schema data types in the list. Do not select XML Literal.
- In the Name field, enter the external name of the response parameter.
- In the Description field, enter a text description.
- In the Map from field, specify the source or the type of
source of the value in Pega Platform. The choices in the list depend on the value you selected in the Data type field.
For descriptions of the choices in this field, see 5.d.
- In the Map from key field, specify the key to locating the
property or rule in the source entered in the Map from
field.For descriptions of the choices in this field, see 5.e.
- In the Data type field, select the data type of the SOAP
body parameter.
- Click Save.
Previous topic Configuring the request for a Service SOAP rule Next topic Configuring Service SOAP fault messages