How to CAVS Enable the Requester ABCS Introduction to the CAVSEndpointURL Value Designation

Completing ABCS Development 13-25

13.4.2 How to CAVS Enable the Requester ABCS

The general programming model concept is similar to how the endpoint URI is dynamically computed in the provider ABCS to achieve dynamic target invocation. To code a requester ABCS for CAVS-enabled invocation of an Enterprise Business Service that is implemented as mediator service: 1. In the BPEL artifact, add a switch activity. 2. The condition expression in the case tests for the nonzero value in the element EBMHeaderMessageProcessingInstructionDefinitionID. 3. Populate the wsa:EndpointReference element with the value of the element EBMHeaderMessageProcessingInstructionDefinitionID as shown in Example 13–7 . Example 13–7 Populating the wsa:EndpointReference element switch name=Switch_CAVSEnablement case condition=string-lengthbpws:getVariableDataCreateCustomerPartyList_ InputVariable,CreateCustomerPartyListEBM,custpartyebo:CreateCustomerPartyLis tEBMcorecom:EBMHeadercorecom:MessageProcessingInstructioncorecom:DefinitionID bpelx:annotation bpelx:patternIs_CAVS_DefinitionIDbpelx:pattern bpelx:annotation sequence assign name=Assign_TargetEndpointLocation copy from variable=CreateCustomerPartyList_ InputVariable part=CreateCustomerPartyListEBM query= corepartyebo:CreateCustomerPartyListEBMcorecom:EBMHeadercorecom:Message ProcessingInstructioncorecom:DefinitionID to variable=TargetEndpointLocation copy assign assign name=AssignPartnerlinkEndpointReference copy from wsa:EndpointReference wsa:Address wsa:EndpointReference from to variable=EndpointReference copy copy from variable=TargetEndpointLocation to variable=EndpointReference query=wsa:EndpointReferencewsa:Address copy copy from variable=EndpointReference to partnerLink=SamplesCustomerPartyEBS copy assign sequence case otherwise empty name=Empty_NoSetEndpoint otherwise 13-26 Developers Guide for Oracle Application Integration Architecture Foundation Pack switch

13.4.3 Introduction to the CAVSEndpointURL Value Designation

The CAVSEndPointURL value is set at design time as follows: ■ If the ABCS or Enterprise Business Flow EBF is invoking a synchronous service, then the CAVSEndPointURL value in the AIAConfigurationProperties.xml file is set to a default value of: http:host:portAIAValidationSystemServletsyncresponsesimulator ■ If the ABCS or EBF is invoking an asynchronous one-way service, then the CAVSEndPointURL value in the AIAConfigurationProperties.xml file is set to a default value of: http:host:portAIAValidationSystemServletasyncrequestrecipient ■ If the ABCS or EBF is invoking an asynchronous request-delayed response service, then the CAVSEndPointURL value in the AIAConfigurationProperties.xml file is set to a default value of: http:host:portAIAValidationSystemServletasyncresponsesimulator ■ If the ABCS or EBF is invoking a Response EBS, then the CAVSEndPointURL value in the AIAConfigurationProperties.xml file is set to a default value of: http:host:portAIAValidationSystemServletasyncresponserecipient

13.4.4 Purging CAVS-Related Cross-Reference Entries to Enable Rerunning of Test Scenarios