Hi, Thanks for the reply, see my comments in line:
On 7/2/07, Raymond Feng <[EMAIL PROTECTED]> wrote:<snip>
We can follow the QName resolving approach to figure out which BPEL file to use.
Do you have some pointers and code that I can look at to see how this resolving is done in Tuscany right now? In case I need to extend it for BPEL. During the processing of a SCA
contribution, we can create a BPELImplementation w/ the QName and mark it unresolved. For each BEPL file, we can record an entry to associate an BPEL file with the QName of the process. After resolving the QName of a process to a BPEL model, we can use the QName of the portType from the partLinkType in BEPL file to tell the WSDLs.
Right but if I'm following correctly that means that the process will only be really loaded when the implementation is first used (say on the first message). That means that the process is only compiled and validated at that time which makes me a bit nervous. Basically no static validation of a deployed process would be done before the first message and you would then need to invoke to find out what's possibly wrong with your process. Ideally the process should be fully loaded with the contribution. Cheers, Matthieu Thanks,
Raymond ----- Original Message ----- From: "Matthieu Riou" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, July 02, 2007 9:27 AM Subject: Resolving files, getting the component interface > Hi guys, > > I'm continuing on the ODE / Tuscany integration and I have a few more > riddles. Say that I have to following composite: > > <composite xmlns="http://www.osoa.org/xmlns/sca/1.0" targetNamespace=" > http://bpel" > xmlns:sc="http://bpel" xmlns:c="http://bpel" name="bpel"> > > <service name="BPELHelloWorldService" > promote="BPELHelloWorldComponent"> > <interface.wsdl > interface=" > http://tuscany.apache.org/implementation/bpel/example/helloworld.wsd#wsdl.interface(HelloPortType) " > /> > </service> > > <component name="BPELHelloWorldComponent"> > <implementation.bpel process="bpel-process"/> > </component> > </composite> > > > I have 2 problems here: > > 1. How can I retrieve the WSDL interface associated with the BPEL > implementation? I need basic information about that WSDL to be able to > load > the BPEL file and register it in ODE. > 2. How do I load the BPEL file? I could add a specific attribute for the > file name but it's not so nice. Is there something that I can reuse that's > already been implemented? I think you automatically load all the WSDLs > from > a contribution for example and then check from the namespace when you need > to retrieve something. Can I plug into that resolution mechanism? > > I've been looking a bit at the code but a lot of the WSDL-related work is > done in binding components that seem to reuse common binding-specific > code. > > Thanks! > Matthieu >
