mediation as partnerLink
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
- Login or register to post comments
- Printer friendly version
- 151 reads










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