Personalize

mediation as partnerLink

Forums :

 

Hello

I have a synapse proxy

which is a simple synapse mediator

and should only forward the BPELs messages to receiver.

How can i bind this mediator as

partnerLink to the BPEL process.

?

thanks

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re:mediation as partnerLink

Please follows the following steps

 

step 1 if you are using a external WSDL file which has defined by 'publishWSDL' element of the proxy service definition.. That means you have created a proxy for an external service. Then, changes the the wsdl so that It includes 'partnerLinkType' definition.

For example

<plnk:partnerLinkType name="StockQuotePartnerLinkType">

<plnk:role name="partner" portType="tns:SimpleStockQuoteServicePortType"/>

</plnk:partnerLinkType>

 

 

step 2

Changes the proxy service definition of the synapse configuration by adding “<parameter name="useOriginalwsdl">true</parameter>” element.

 

step 3

Then , changes your bpel document to include partnerlink.

For example

<partnerLink name="stockQuotePartnerLink"

partnerLinkType="tn:StockQuotePartnerLinkType"

partnerRole="partner" initializePartnerRole="yes"/>

 

step 4

 

when you are adding parters to a bpel document, there may be some file for configure those in your bpel server . For example if you are using apache ODE , they have a deploy.xml. For example , if you are uing apache ode , you have to add something similar to following to the deploy.xml

 

<invoke partnerLink="stockQuotePartnerLink">

<service name="wn:SimpleStockQuoteService"

port="SimpleStockQuoteServiceSOAP11port_http1"/>

</invoke>

Thanks

Indika

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.