question about creating PartnerLink

View: New views
1 Messages — Rating Filter:   Alert me  

question about creating PartnerLink

by sam wang-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear friends,

The question is about creating PartnerLink. When I try to create a PartnerLink through:
PartnerLink partnerLink = bpelBuilder.createPartnerLink();

Three properties are needed to setup: name, WSDLReference<PartnerLinkType> and
WSDLReference<Role>.
Setting up name is pretty easy. However, I don't know how to setup the last two. The following is
my approach for creating WSDLReference<PartnerLinkType>:

public static WSDLReference<PartnerLinkType> createPLT(BpelModel model){
        WSDLReferenceBuilder wsdlRB = WSDLReferenceBuilder.getInstance();
        wsdlRB.build(PartnerLinkType.class, ((BpelModelImpl) model).getBaseDocument(),
"ns1:partnerlinktype1");}
       
However, the method's signature is not correct. Because PartnerLinkType extends
ReferenceableExtensibilityElement, ExtensibilityElement.UpdaterProvider and
BPELExtensibilityComponent, it's not extended from "ReferenceableWSDLComponent", which is required
by the build method of WSDLReferenceBuilder. The problem is that I don't know which class I should
use here to create WSDLReference<PartnerLinkType>.

Same problem is about WSDLReference<Role>. I don't know which class should be used in
WSDLReferenceBuilder's build method.

By the way, I tried partnerLink.setDocumentation method, which doesn't work because it will append
"documentation" automatically.

Thank you so much!
Sam


      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping