On Tue, Aug 31, 2010 at 11:49 AM, Florian MOGA <[email protected]> wrote:
> Hi Simon,
> Thanks for pointing where can I find more info. I've taken a look at
> the DatabindingRuntimeWireProcessor and the only thing I'm trying to clarify
> is how tuscany finds out that a String array is actually hiding behind the
> Object[] argument when invoking the wire and decides to use JSON (even in
> the case when other databindings are included). Considering that databinding
> occurs between the service invocation from the binding and the actual
> service, I believe source contract type, operation, data types are taken
> from:
>
> wire.invoke(operation, args);
>
> I don't see how operation can be different and I'm not aware of a mechanism
> for determining what types exactly hide under Object[].
> I'm currently building a jsonp sample that will include the various ways of
> calling jsonp services (json objects, jquery, etc.). It will be good for
> testing and if you consider it good enough, for the samples/ directory too.

The Operation object does include the data binding type information,
see methods such as getInputType which return DataType objects.
Binding impls set the type of data they expect, in the jsonp binding
see that done at line 45  of  JSONPServiceBindingProvider.

(Not sure if that was the question you're asking, does that help?)

   ...ant

Reply via email to