You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by ant elder <an...@gmail.com> on 2007/04/15 13:56:30 UTC

How to specify databinding in bindings and implementations?

In the old code a binding or implementation could say what data binding it
wanted to use by setting the name on the ServiceContract, but now the
InterfaceContract doesn't have a setDataBinding method so how should this be
done? (eg the Axis2 binding used to set the Axiom databinding).

There is a setDataBinding method on Operation which I've tried to use, and
that does caused the data binding interceptor to get used but then that
fails as the target DataType ends up with a null in the databinding field so
the DB Mediator throws a "No path found for the transformation" exception. I
have tried just using the IDE  debugger to set the target DataType to have
the Axiom databinding and that almost all works except then the databinding
doesn't add the wrapper element to the resulting OMElement.

Any guidance on how this all should be done now? Are then any existing tests
that use Axiom and wrapped WSDL that work that I could look at?

   ...ant

Re: How to specify databinding in bindings and implementations?

Posted by Raymond Feng <en...@gmail.com>.
Hi,

I have to add that feature back and I'll work on it.

Thanks,
Raymond

----- Original Message ----- 
From: "ant elder" <an...@gmail.com>
To: <tu...@ws.apache.org>
Sent: Sunday, April 15, 2007 4:56 AM
Subject: How to specify databinding in bindings and implementations?


> In the old code a binding or implementation could say what data binding it
> wanted to use by setting the name on the ServiceContract, but now the
> InterfaceContract doesn't have a setDataBinding method so how should this 
> be
> done? (eg the Axis2 binding used to set the Axiom databinding).
>
> There is a setDataBinding method on Operation which I've tried to use, and
> that does caused the data binding interceptor to get used but then that
> fails as the target DataType ends up with a null in the databinding field 
> so
> the DB Mediator throws a "No path found for the transformation" exception. 
> I
> have tried just using the IDE  debugger to set the target DataType to have
> the Axiom databinding and that almost all works except then the 
> databinding
> doesn't add the wrapper element to the resulting OMElement.
>
> Any guidance on how this all should be done now? Are then any existing 
> tests
> that use Axiom and wrapped WSDL that work that I could look at?
>
>   ...ant
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: How to specify databinding in bindings and implementations?

Posted by Raymond Feng <en...@gmail.com>.
Hi,

I'll add a "setDefaultDataBinding()" method the "Interface" interface for 
now so that componentType/binding builders can provide a desired 
databinding.

I checked in the changes under r529001. Now the echo-databinding sample is 
working again. Please see the EchoBindingBuilder to see an example of 
Interface.setDefaultDataBinding().

I suggest that we review all these designs after we get all the basic things 
working.

Thanks,
Raymond

----- Original Message ----- 
From: "ant elder" <an...@gmail.com>
To: <tu...@ws.apache.org>
Sent: Sunday, April 15, 2007 4:56 AM
Subject: How to specify databinding in bindings and implementations?


> In the old code a binding or implementation could say what data binding it
> wanted to use by setting the name on the ServiceContract, but now the
> InterfaceContract doesn't have a setDataBinding method so how should this 
> be
> done? (eg the Axis2 binding used to set the Axiom databinding).
>
> There is a setDataBinding method on Operation which I've tried to use, and
> that does caused the data binding interceptor to get used but then that
> fails as the target DataType ends up with a null in the databinding field 
> so
> the DB Mediator throws a "No path found for the transformation" exception. 
> I
> have tried just using the IDE  debugger to set the target DataType to have
> the Axiom databinding and that almost all works except then the 
> databinding
> doesn't add the wrapper element to the resulting OMElement.
>
> Any guidance on how this all should be done now? Are then any existing 
> tests
> that use Axiom and wrapped WSDL that work that I could look at?
>
>   ...ant
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org