|
| Copyright © Cloud Software Group, Inc. All Rights Reserved |
See TIBCO ActiveMatrix BusinessWorks Palette Reference for a detailed description of the resources in the Service palette.Figure 44 illustrates the service model.Figure 44 Service modelSee TIBCO ActiveMatrix BusinessWorks Palette Reference for more information about the Context resource and the Get Context and Set Context activities.Figure 45 illustrates the relationship between the configuration elements of a service and the web service client. The Service palette chapter of TIBCO ActiveMatrix BusinessWorks Palette Reference describes how to configure a Service resource more completely.In TIBCO ActiveMatrix BusinessWorks, process definitions implement operations. The input, output, and error schemas for the process definition that implements an operation must match the input, output, and fault messages specified for the operation. Figure 46 illustrates the WSDL file and matching process input, output, and error schema specifications for a process definition. See Start Activity and End Activity for more information about specifying input, output, and error schemas for process definitions.
1. Use the + and X buttons to add or delete partners in the table in the Partners field for a process definition. Move the partners up or down the list using the arrow buttons.
3. Select a partner, then use the Browse button in the PortType field to locate the appropriate WSDL containing the portType for the partner.
2. Click the + button to add a new partner. If necessary, use the X button to delete partners or the arrow buttons to move partners up or down the list.
2. Click the + button to add Partner Link with SOAPEndpoint. If necessary, use the X button to delete partner links or the arrow buttons to move partner links up or down the list.
6.
7. Click the Select button to the right of the Apply Policy to field. In the Choose Security Subject dialog box, expand Partner Link Configuration resource and select a service endpoint operation.
8. Click in the Inbound Message Policy field. In the Select a Resource dialog box, expand Policies and select, Inbound Security Policy, in this case.Figure 47 Security Policy Association
• Apply Policy To - for associating the security policy with the PortTypeEndpoint.
• Inbound Message Policy - for applying security policy to the messages being received.
• Outbound Message Policy - for applying security policy to the messages being sent.
• Inbound Fault Message Policy - for applying security policy to the fault messages being received.
• Outbound Fault Message Policy - for applying security policy to the fault messages being sent.This feature enables the user to configure headers for declared faults. With this the user will be able to configure different schemas to be mapped to the headers for different Fault messages. A Fault Headers tab (Figure 48) has been added to the Advanced SOAP Settings. You can map the context resource values to the configured header using the Fault Headers tab.Figure 48 Fault HeadersTo configure headers for a fault message, as shown in Figure 49, for example, configure headers in the context resource in the same way they were configured in the headers for declared Fault:
1. Click "Operation1" to go to the Advanced tab of the Service Resource.Both the Faults available for that operation are listed in the soapFaults drop-down as shown in Figure 51. Configure the fault message for any of the selected fault. Select the fault header name and Partname of the selected fault same as the Output Headers.Figure 51 SOAPFault MessagesThe way headers are configured in Headers for Declared Faults, define the Context Resource that can be used to map user inputs to the configured headers.
Figure 52 Context ResourceFigure 53 Mappings on Fault ContextFigure 54 Mapping Configured HeadersIn the Implementation process before sending the invalidName fault, use the Set Context Activity and configure values as shown in Figure 55.Figure 55 Implementation Process
For example, if you configure headers for invalidName fault and use the SetConetxt activity to configure them in the process but select throw miscError fault in the Generate Error activity, then that fault header configuration will be ignored.
|
| Copyright © Cloud Software Group, Inc. All Rights Reserved |