Wednesday, April 09, 2014

BPEL calling B2B Inbound

We have earlier seen how B2B works for a custom document.

In this exercise we will try to integrate BPEL and B2B , We will poll the data from BPEL and call B2B.

B2B will call the trading partner in turn and will write the data in to the channel of Trading partner.

We will be using the same configuration from my previous post and will just extend it to trigger the process from BPEL.

Create a mediator service in Jdeveloper .

Make it a one way process and define it based on the following schema

<?xml version= '1.0' encoding= 'UTF-8' ?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://xmlns.oracle.com/purchase/order"
xmlns:xsd="http://xmlns.oracle.com/purchase/order"
elementFormDefault="qualified">
<element name="PORequest" type="xsd:PORequestType"/>
<complexType name="PORequestType">
<sequence>
<element name="OrderNumber" type="string" minOccurs="1"/>
<element name="ProductName" type="string" minOccurs="0"/>
<element name="ProductDescription" type="string" minOccurs="0"/>
</sequence>
</complexType>
</schema>

This is the same schema that we have used on our previous post already mentioned.

next is drag and drop a B2B adapter on the external reference.





Select default



When default is selected it choose the B2B_IN_QUEUE in the jms module of the soa server.



Connect to your host and server



Choose option to send



Say next and go to document definition.

Here select the PORequest document



Say next and finish the wizard.

Next connect the Mediator with the B2B adapter so that now your process should look like this



Now double click on your mediator and go to assign activity to assign some variable

Assign following data



Now your process is complete,

go ahead and deploy the process to soa server.

Once deployed go to em console -http://host:port/em

and test the service

Pass some dummy input and test the service



Validate the instance and click on the quick b2b link to go to the report



Validate the report if the process is completed successfully.



YOu can also validate at the folder location where trading partner channel is pointed the data will be written to that location.

This is a similar scenario what we have created by defining an internal listening channel.

2 comments:

GlobalIndian said...

GlobalsIndian is India’s fastest growing online B2B market place connecting real buyer with real suppliers. GLOBALSINDIA.COM portal offers comprehensive business solutions to the domestic and global business community through its wide array of online services, directory services and facilitation of trade promotional event. Our portal is an ideal place for buyers and sellers across the global to interact and conduct business smoothly and effectively.
Global India
Global Indian
Globals India
Globalsindian
Global
Globalindia

b2bcontactlists said...

Very impressive article! The blog is highly informative and has answered all my questions.
To introduce about our company and the activities, B2B contactlist
is a database provider that helps you to boost your sales & grow your business through well-build b2bcontactlists or database.