This appendix describes how to configure Oracle JDeveloper and Oracle B2B to enable synchronous request and reply support in Oracle B2B.
The appendix includes the following sections:
Oracle B2B provides synchronous request/response between from Fabric to Oracle B2B. However, only HTTP transport is supported for the initial release.
Figure E-1 shows the end-to-end scenario.
To configure the sender, you need to perform the following tasks.
You need to use B2B Configuration Wizard in Oracle JDeveloper to configure the sender for synchronous request/reply support:
In the Operations page of B2B Configuration Wizard, select Synchronous Request/Reply option, and then select Outbound as shown in Figure E-2 .
Figure E-2 B2B Configuration Wizard: Operation Page
In the Document Definition page of B2B Configuration Wizard, specify the definitions for both Request and Reply.
The Routing ID selection only appears for the Request document. The Response is returned to Fabric on the same request call, so no Routing ID is required to route the response as shown in Figure E-3 .
Figure E-3 B2B Configuration Wizard: Document Definition Page
In Oracle B2B console, you need to:
Set up Oracle B2B agreements: You need to define two agreements. One agreement is required to send the Request, and the other agreement is needed to receive the Response as shown in Figure E-4 . You do not need to set up any Oracle B2B property for this. Based on the call from the Fabric to Oracle B2B, the message type "sync request" is determined.
Figure E-4 Setting Up Oracle B2B Agreements
Create a Trading Partner channel: You need to create a remote Trading Partner Channel to point to http://
server:port
/b2b/syncreceiver
as shown in Figure E-5 . This is required if the communication is between two Oracle B2B products. Please note that the URL will be different if the communication takes place between two different B2B products.
Figure E-5 Creating a Trading Partner Channel
To configure the receiver, you need to perform the following tasks.
You need to use B2B Configuration Wizard in Oracle JDeveloper to configure the receiver for synchronous request/reply support:
In the Operations page of B2B Configuration Wizard, select Synchronous Request/Reply option, and then select Inbound as shown in Figure E-6 .
Figure E-6 B2B Configuration Wizard: Operation Page
In the Document Definition page of B2B Configuration Wizard, specify the definitions for both Request and Reply.
The Routing ID selection only appears for the Request document. The Response is returned to Fabric on the same request call, so no Routing ID is required to route the response as shown in Figure E-7 .
Figure E-7 B2B Configuration Wizard: Document Definition Page
In Oracle B2B console, you need to:
Set up Oracle B2B agreements: You need to define two agreements. One agreement is required to receive the Request, and the other agreement is needed to send the Response as shown in Figure E-8 . You do not need to set up any Oracle B2B property for this. The synchronous HTTP receiver decides the message type as "sync request".
Figure E-8 Setting Up Oracle B2B Agreements
Create a dummy Trading Partner channel: You need to create a dummy remote Trading Partner Channel, but this channel is not used at runtime. You can specify any URL value, but the value needs to be in the format http://
host:port
/xyz
as shown in Figure E-9 .
Figure E-9 Creating a Dummy Trading Partner Channel
Synchronous request or response resubmit must be done from the Application side. Although the Oracle B2B console allows resubmit of Application or Wire messages from Oracle B2B, however, it resubmits the messages in the asynchronous mode. Sometimes, the message processing logic is nondeterministic. For example, if an Application or a Wire message is resubmitted from Sender side Oracle B2B, the message is posted to http://
server:port
/b2b/syncreceiver
. The Receiver Oracle B2B processes the message as synchronous request or response. The response message on the Sender side is ignored.