At this point, this isn't supported.  Looking at the code in the SDO 
datawriter and readers, it calls into the loadObject/saveObject methods 
directly.  Thus, those calls would need to be updated to check for the various 
non-SDO things and do something smart.    A patch would be appreciated.

Dan



On Monday 18 October 2010 10:22:12 am Malisetti, Ramanjaneyulu wrote:
> Hi,
> 
>       I have JAX-WS web service with two operations, one operation takes
> one argument of type String and another operation takes one argument of
> DataObject. When I am invoking operation that takes the String type, the
> following exception is thrown. I think runtime applies SDODatabinding
> for all  parameters, that should be the case. How to make SDODataBinding
> applies to only to parameters of type DataObject?
> 
> 
> 
> 
> 
> Caused by: java.lang.IllegalArgumentException: argument type mismatch
> 
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 
>       at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> 
>       at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> 
>       at java.lang.reflect.Method.invoke(Method.java:597)
> 
>       at org.apache.cxf.sdo.DataWriterImpl.write(DataWriterImpl.java:56)
> 
>       at org.apache.cxf.sdo.DataWriterImpl.write(DataWriterImpl.java:36)
> 
>       at
> org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(
> AbstractOutDatabindingInterceptor.java:119)
> 
>       at
> org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInter
> ceptor.java:68)
> 
>       at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorC
> hain.java:247)
> 
> 
> 
> Regards
> 
> Raman

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to