Re: Databinding mediation between part-based and doc-wrapped operations

2011-02-15 Thread Scott Kurz
Since this thread has died down, I decided to checkin the incremental change I made inspired by this discussion, into 2.x in r1070926 (and 1070928). I mentioned this in my comment on TUSCANY-3832, which was an issue I found in trying to make this fix. In terms of comprehensibility, my patch

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-31 Thread Scott Kurz
On Fri, Jan 28, 2011 at 5:38 PM, Raymond Feng enjoyj...@gmail.com wrote: First, I agree that we could use a better name for the first flag, for example: unwrapped or subjectToWrapping true: the parameters are child elements of the wrapper (doc-lit-wrapper or RPC wrapper) false: the parameter

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-28 Thread Raymond Feng
Hi, Sorry for not replying promptly. I agree the terms are pretty confusing. We can probably simplify them as follows: 1) We need to have two flags for a given operation that has corresponding WSDL: a) dataWrapped: If the payload for the method signature is either already wrapped b)

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-28 Thread Scott Kurz
Raymond, Thanks for writing that up in such detail to move the discussion forward. Before I respond.. I got a bit lost when you said: 2 When we introspect the Java interface (maybe with JAX-WS annotations), we can set the flag a) is set true only if the @SOAPBinding.parameterStyle ==

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-28 Thread Scott Kurz
Raymond, Ah..thanks for the clarification...I think I see what you're saying. I like the fact that you've reduced the number of flags directly involved in the transform from three to one. I think your organization would require some extra knowledge in something like Input2Input to track which

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-28 Thread Raymond Feng
First, I agree that we could use a better name for the first flag, for example: unwrapped or subjectToWrapping true: the parameters are child elements of the wrapper (doc-lit-wrapper or RPC wrapper) false: the parameter is already a wrapper element ((doc-lit-wrapper or RPC

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-24 Thread Scott Kurz
Just to be clear.. I meant that I exported and ran the latest: http://svn.apache.org/repos/asf/tuscany/sandbox/sebastien/java/wrapped/samples/extending-tuscany/implementation-sample/ and it worked fine without having to modify the 'sourceBare' check in the Input2Input transformer... Just would

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-24 Thread Jean-Sebastien Delfino
On 01/24/2011 08:04 AM, Scott Kurz wrote: Just to be clear.. I meant that I exported and ran the latest: http://svn.apache.org/repos/asf/tuscany/sandbox/sebastien/java/wrapped/samples/extending-tuscany/implementation-sample/ and it worked fine without having to modify the 'sourceBare' check in

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-21 Thread Scott Kurz
It's intentional... This is the unwrapped type (wrapperStyle=false), but we define a source-databinding wrapper (non-null) to help us transform to the wrapped type. Though the names aren't the best.. I don't think it's too bad until we added the 'sourceBare' to the mix. I think Raymond added

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-21 Thread Scott Kurz
Having contributed such insight .. can I ask, Sebastien, how can I recreate what you saw? I just checked out that module in your sandbox and it all ran fine without having to tweak any of the runtime code. Thanks, Scott

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-16 Thread Jean-Sebastien Delfino
On 01/14/2011 01:08 PM, Scott Kurz wrote: I haven't had time to try this in the past couple days, but, before the week ends I'll just suggest a sketch of what I had in mind along the lines of Simon's last response: - creating a new isBareStyle() method on Operation, defaulting to 'false' -

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-14 Thread Scott Kurz
I haven't had time to try this in the past couple days, but, before the week ends I'll just suggest a sketch of what I had in mind along the lines of Simon's last response: - creating a new isBareStyle() method on Operation, defaulting to 'false' - setting the underlying boolean to 'true' in

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-13 Thread Jean-Sebastien Delfino
On 01/11/2011 07:33 PM, Jean-Sebastien Delfino wrote: On 01/11/2011 08:57 AM, Simon Laws wrote: Sorry that my example wasn't clear. I had set up the following composite... composite xmlns=http://docs.oasis-open.org/ns/opencsa/sca/200912; xmlns:t=http://tuscany.apache.org/xmlns/sca/1.1;

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-11 Thread Simon Laws
Sorry that my example wasn't clear. I had set up the following composite... composite xmlns=http://docs.oasis-open.org/ns/opencsa/sca/200912; xmlns:t=http://tuscany.apache.org/xmlns/sca/1.1; targetNamespace=http://test; name=testnativeasyncbare component

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-11 Thread Jean-Sebastien Delfino
On 01/11/2011 08:57 AM, Simon Laws wrote: Sorry that my example wasn't clear. I had set up the following composite... composite xmlns=http://docs.oasis-open.org/ns/opencsa/sca/200912; xmlns:t=http://tuscany.apache.org/xmlns/sca/1.1; targetNamespace=http://test;

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-10 Thread Jean-Sebastien Delfino
On 01/10/2011 07:26 AM, Simon Laws wrote: On Fri, Jan 7, 2011 at 6:45 PM, Jean-Sebastien Delfino jsdelf...@apache.org wrote: On 01/07/2011 09:44 AM, Raymond Feng wrote: I understand your case now: 1) You have a componentType reference interface contract which is the doc-literal WSDL. 2) You

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-10 Thread Jean-Sebastien Delfino
On 01/10/2011 11:21 AM, Jean-Sebastien Delfino wrote: OK I checked some code in at revision: 1057230 [1] . As I've been updating the async support I extended the async part of the implementation extension sample to have an implementation that uses a doc/lit implementation reference but with a

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-10 Thread Benjamin Busjaeger
On 1/10/2011 2:07 PM, Jean-Sebastien Delfino wrote: On 01/10/2011 12:19 PM, Jean-Sebastien Delfino wrote: On 01/10/2011 11:21 AM, Jean-Sebastien Delfino wrote: OK I checked some code in at revision: 1057230 [1] . As I've been updating the async support I extended the async part of the

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-10 Thread Scott Kurz
Ben, I haven't caught up on this thread, and would like to, but no, that code is not in error. On Mon, Jan 10, 2011 at 8:15 PM, Benjamin Busjaeger busjae...@googlemail.com wrote: In which case would both sourceWrapped and sourceBare be false? This would typically be the case for a Java

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-10 Thread Scott Kurz
Sebastien, It looks like what is happening is that the transform being set up is from a WSDL IC to a Java IC... which doesn't sound like what you intended originally. The WSDL IC holding the source op corresponds to the WelloTest 'upper' reference, which you wanted. However I think the target

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-07 Thread Scott Kurz
Simon, I'd be interested in taking a look at your test.. Scott

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-07 Thread Jean-Sebastien Delfino
On 01/07/2011 06:41 AM, Simon Laws wrote: My question is what happens in the invocation chain between the ImplementationProvider holding my component reference (not-wrapped) and the ReferenceBindingProvider of the binding configured on that component reference (wrapped). Can I rely on the

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-07 Thread Raymond Feng
I understand your case now: 1) You have a componentType reference interface contract which is the doc-literal WSDL. 2) You configure the reference binding interface contract to be doc-literal-wrapper WSDL. What databinding do you configure for 1 and 2? What payload do you have for the request

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-07 Thread Jean-Sebastien Delfino
On 01/07/2011 09:44 AM, Raymond Feng wrote: I understand your case now: 1) You have a componentType reference interface contract which is the doc-literal WSDL. 2) You configure the reference binding interface contract to be doc-literal-wrapper WSDL. Correct What databinding do you

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-06 Thread Raymond Feng
The first WSDL is document-literal style, but it is not WS-I compliant as it has more than more child elements (two parts) for the soap:Body. You will end-up with the following message (please note the operation is not in the message at all). soap:envelope soap:body symbolIBM/symbol

Re: Databinding mediation between part-based and doc-wrapped operations

2011-01-06 Thread Jean-Sebastien Delfino
On 01/06/2011 09:32 AM, Raymond Feng wrote: The first WSDL is document-literal style, but it is not WS-I compliant as it has more than more child elements (two parts) for the soap:Body. You will end-up with the following message (please note the operation is not in the message at all).

Databinding mediation between part-based and doc-wrapped operations

2011-01-05 Thread Jean-Sebastien Delfino
Say I have the following WSDL operation, with one WSDL message part per parameter, on an SCA reference: message name=getQuoteRequest part name=symbol ... part name=time ... /message portType ... operation name=getQuote ... input message=getQuoteRequest ... ... /operation Can I use the