Service SAP form - Completing the Faults tab
Use the Faults tab to specify data returned to the client application when the service encounters a fatal processing error and must return a SOAP fault message. You can also use the Faults tab for other conditions that you want to cause SOAP fault messages to be returned.
A fault is a fatal processing error in the service, such that valid data cannot be returned by the normal output parameter process. In addition to the fault message, the Pega Platform returns an HTTP Code 500 Internal Server Error.
You can also have the system return other, non-fatal activity status information to the client as the value of a response parameter set on the Response tab.
Field | Description |
---|---|
Fault Conditions | |
Condition |
Select the condition that causes the system to return the data you specify:
|
When Key |
Optional. If the
Condition
value is
When
or
Queue When , specify the key of the when condition rule to be evaluated. Otherwise, leave this blank.
|
Map From |
Select how the system finds the output data for the fault message:
|
Map From Key |
Identify a source for the
Map From
selection:
|
Fault Detail Key |
Enter the
Stream Name
(second key part) of the XML Stream rule that is used to generate the data. The system uses the
Primary Page Class
of the service as the
Applies To
class of the XML Stream rule. Enter only the
Stream Name
key part. This option may only be selected when
XML Stream
is selected as the
MapFrom
value.
For an example of this facility, see PDN article How to customize SOAP fault messages. |