« Return to Thread: how to use dynamic partner link in BPEL ?

Re: how to use dynamic partner link in BPEL ?

by Kiran Bhumana-2 :: Rate this Message:

Reply to Author | View in Thread

Yes it is possible. Did you check this example?
https://open-jbi-components.dev.java.net/source/browse/open-jbi-components/driver-tests/bpelse/dynamicpartnerlink/dynamicPartnerLinkJBI/

Also be aware that in your case the WSDL needs to be also available by the HTTPBC.

HTH,
Kiran B

mithun_jhonny wrote:
Hi Kiran,

My question is if I have 2 partner links (different service name and
portname) which I have to use in the single bpel process dynamically. Can I
map the EPR (endpoint-referece) to two partner links in the mapper?

basically I want a way to dynamically identify two different partner links
in a bpel process ? Can you please provide me your inputs on the same ?

Mithun



 





Kiran Bhumana-2 wrote:
  
Mithun,
 Glad it worked. I don't quite understand your question below. Can you 
please elaborate?

-Kiran B.

mithun_jhonny wrote:
    
thanks for the reply Kiran. It did help. 
I have a question . I understand that in order for the dynamic partner
link
to work the partner links must have the same portname, targetnamespace
etc
and also the partner links must be mapped to a EPR in mapper. 

Is it possible to have to 2 partner links mapped in the mapper ? and does
the netbeans differentiate this  ?


thanks,
Mithun 





Kiran Bhumana-2 wrote:
  
      
Hello Mithun,

I looked at your project. What you can change is the address, not the 
service and port. We are working on improving HTTP BC so that you can 
change the service and port as well. But for now, take it that the 
HTTP-BC needs to know that the service and port that you are providing 
so that it can format the message according to the right binding.

What you did is very good, except that you didn't need the echo3WSDL at 
all! Your echo and echo3 WSDLs are exactly the same. Since echo WSDL is 
already deployed in BC, by changing just the address it should work.
I couldn't reach http://10.60.141.107:9009/echo3/echo3Service, hence I 
think even after the changes it failed on my machine.

Attached is a project that I worked on to provide as a sample in NB, so 
users can reuse these BPELs to construct the Dynamic endpoint structure. 
Let me know if that helps in any way.

Thanks,
Kiran B.

mithun_jhonny wrote:
    
        
Hi,

I tried the example given there . But when I pass a different web
service
address (other than the one already used in on the main BPEL ). It
gives
me
a error saying 

   Caused by: BPJBI-6019:unable to resolve the service endpoint
dynamically
for the document fragment 

Can anyone please help me with this . Please find the files attached.
 

thanks,
Mithun


http://www.nabble.com/file/p18437106/netbeansoproj.zip
netbeansoproj.zip 
Kiran Bhumana-2 wrote:
  
      
          
Hello Mithun,
 You can find information on this on open-esb wiki pages (BPEL-SE). 
FYReference, 
http://wiki.open-esb.java.net/Wiki.jsp?page=UsingDynamicPartnerLinks.

thanks,
Kiran.

mithun_jhonny wrote:
    
        
            
Hi,

I need to call web services dynamically from BPEL (I want to give the
location of web service as inputs)

i.e I need to make use of dynamic partner link . Can any one point me
to
any
tutorial for that ? 

thanks,
Mithun



  
      
          
              
-- 
Kiran Bhumana
Open ESB Community (http://open-esb.org)



    
        
            
  
      
          
 

    
        
  
      
-- 
Kiran Bhumana
Open ESB Community (http://open-esb.org)



    

  

-- 
Kiran Bhumana
Open ESB Community (http://open-esb.org)

 « Return to Thread: how to use dynamic partner link in BPEL ?