BC-to-BC connection
Last
Updated: 23 August 2007
Feature Specification
Allow direct BC to BC connections within a composite application
Generate all necessary changes to deployment artifacts including BC SU jar and SA jbi.xml
Derived Design Requirements
Connect a consume endpoint of a WSDL port to a provide endpoint of another WSDL port
One of the port must be defined with a known port type
Linking of two endpoint of undefined port type is not allowed
Linking the consume and provide endpoints of the same port is not allowed
Allow set/change of an editable WSDL port to a known port type
Limitations
The NB 6.0 FCS includes only FILE, HTTP, JMS, and SOAP bindings. Other BC type may not fully supported.
Due to BC implementation limitations, not all scenarios are supported, Key limitations are:
File BC does not support request/response operation on outbound services
SMTP BC does not support request/response operations
see http://java.sun.com/integration/openesb2_0/releasenotes.jsp#component-limits
Use case #1: Connect BC-BC endpoints
A simple composite application for testing a BC-BC connection in the SOAP-to-SOAP-to-BPEL scenario.
Create a synchronous sample composite application
Build the sample application
Open it in CASA
Add a new SOAP wsdl endpoint, casaPort1
Connect the casaPort1 consume endpoint to the port1 provide endpoint, see image,
|
|
Edit the casaPort1 property and set the SOAP address location to:
http://localhost:18183/service
Save the project
Create a new test case, TestCase1
Select the wsdl from the CompApp project, SynchronousSampleApplication
Select the operation1 to test casaPort1
Edit test input message and save the test case
deploy and test the sample application
Use case #2: Set WSDL port type
Set an editable wsdl port to a known port type.
Create an asynchronous sample composite application
Build the sample application
Add a new FILE wsdl endpoint, casaPort1
Edit the casaPort1 property to set its Interface Name, see image
|
|
The port type of the new wsdl endpoint should be set to the selected port type
Use case #3: BC to BC w/o SE
Create a BC-to-BC composite application project with no SE SU project. This project routes user requests from one wsdl port (casaPort2) to another one (casaPort1) of an existing service (SynchronousSampleApplication).
3.1 Deploy a Web Service:
Create an Synchronous sample composite application
Deploy the sample application, SynchronousSampleApplication
3.2 copy web service WSDL:
Create a new CompositeApp2
right click on Process Files
select new/Others...
select XML/External WSDL Documents
Select "From Local File System" and click on Browse
Browse to Synchronous sample source directory, see image
|
|
click finish
Build CompositeApp2 to pick up changes
3.3 Add BC-to-BC WSDL ports:
Add a new SOAP wsdl endpoint, casaPort1
Edit the casaPort1 property to set its Interface Name to:
{http://localhost/SynchronousSample/SynchronousSample}portType1
Edit the casaPort1 property and set the SOAP address location to:
http://localhost:18181/SynchronousSample
Add a new SOAP wsdl endpoint, casaPort2
Connect the casaPort2 consume endpoint to the casaPort1 provide endpoint, see image,
|
|
Save the project
3.4 deploy/test BC-to-BC service:
Deploy the CompositeApp2 project
IN CompositeApp2, create a new test case, TestCase1
Select the CompApp project wsdl, CompsositeApp2.wsdl
Select the operation1 of casaBinding2
Edit test input message and save the test case
Run the test case




