11g Dynamic partnerlink example

In one of my blog postings I had mentioned using dynamic partnerlinks in 11g but didn't post an example since 11g was not out then. Well here is the example - I checked it against Sean Carey's example from the BPEL Cookbook and there are is only one big change. Since there is no bpel.xml anymore all references to static WSDL's are now located in the composite.xml. So in my very simple example:

<reference name="HelloWorld" ui:wsdlLocation="HelloWorld.wsdl">
  <interface.wsdl interface="
http://xmlns.oracle.com/HelloWorld/HelloWorlf/HelloWorld#wsdl.interface(HelloWorld)"
                  callbackInterface="http://xmlns.oracle.com/HelloWorld/HelloWorlf/HelloWorld#wsdl.interface(HelloWorldCallback)"/>
  <binding.ws port="
http://xmlns.oracle.com/HelloWorld/HelloWorlf/HelloWorld#wsdl.endpoint(client/HelloWorld_pt)"
              location="HelloWorld.wsdl"/>
</reference>

There is still a reference to the local WSDL (not remote) which is used as a static interface to the actual WSDL that is passed at runtime. None of the other artifacts change in 11g i.e. the EndpopintReference variable, the ServiceName, Address and assign to Partnerlink - all stay the same.

In my example I am including a SequentialProcess.wsdl which is not used in the project but it can be used as a template for defining a static WSDL for future projects. At the moment my GoDynamicBPEL process is adding has the values for ServiceName and Address at design time, but these can be changed to pick up the values at runtime instead to make the process truly robust.

The project can be downloaded from here:

As always comments and feedback welcome.

DA

Comments:

Hi,

within the invoke method there is in BPEL 2.0 now a property endpointURI which allows to set the endpoint directly.

Hopes that helps.

Best regards
Matthias

Posted by Matthias Beil on July 24, 2011 at 08:39 PM EDT #

sweet. Thanks. This is what I used back in BPEL 10.1.2 days.

Posted by guest on November 22, 2011 at 04:58 PM EST #

Everything is New Envirornment , soa is coplicated issue but we know the technics in this,when ever practiced the activities autometically we perform easily

Posted by guest on December 02, 2011 at 11:21 PM EST #

Hi Deepak,

Will this work for 10g. Please advice.
If not can you please provide similar example for 10g.

Regards&Thanks
Azeez.

Posted by Azeez on January 04, 2012 at 03:11 PM EST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Expect the unexpected from technology to a personal perspective on things/issues that matter to me technology or otherwise. Primarily this blog is tailored for SOA issues, that I encounter on a daily basis and ways to analyze and resolve them with a smile. I will try to keep things light yet enlightening and welcome any and all feedback!! Deepak Arora
I am a Consulting Solutions Architect in the coveted A-Team at Oracle. Primarily dealing with J2EE and SOA and the whole Fusion Middleware Stack. Specializing in Performance, SOA architecture and best practices for the Oracle FMW suite of products.

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today