What You May Need to Know About REST Fault Binding

You define REST fault binding response details in the REST Fault Binding dialog, as shown in Figure 37-15. If fault details are already defined in the WSDL file, a fault binding is automatically created in the Fault Bindings section of the REST Operation Binding dialog. You can also manually define fault bindings.by clicking the Add fault binding icon in the Fault Bindings section.

Figure 37-15 REST Fault Binding Dialog

Description of Figure 37-15 follows
Description of "Figure 37-15 REST Fault Binding Dialog"

By default, the fault status is 400 when there is a fault payload and 404 when there is no fault payload.

Fault binding details are based on your selection in the Create REST Binding dialog:

  • If you selected REST enable component or reference, fault bindings are automatically generated based on faults defined in the WSDL file.

  • If you selected Add operation binding, you must configure the fault bindings to be supported, which are added to the WSDL being generated.

The Fault Bindings section of the REST Operation Binding dialogs shows the response fault name, type, status, and schema. Figure 37-16 provides details.

Figure 37-16 Fault Bindings Definition

Description of Figure 37-16 follows
Description of "Figure 37-16 Fault Bindings Definition"