You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Raymond Feng (JIRA)" <tu...@ws.apache.org> on 2008/02/05 02:15:08 UTC

[jira] Updated: (TUSCANY-1206) DataBinding support for transform of Fault DataTypes should account for wrappered FaultBean in JAX-WS style

     [ https://issues.apache.org/jira/browse/TUSCANY-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng updated TUSCANY-1206:
----------------------------------

    Component/s:     (was: Java SCA Core Runtime)
                 Java SCA Data Binding Runtime

> DataBinding support for transform of Fault DataTypes should account for wrappered FaultBean in JAX-WS style
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1206
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1206
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Data Binding Runtime
>    Affects Versions: Java-SCA-Next
>            Reporter: Scott Kurz
>            Assignee: Raymond Feng
>             Fix For: Java-SCA-Next
>
>         Attachments: 1206.a.patch
>
>
> I wonder if the DataBindingJavaInterfaceProcessor should be introspecting the FaultBean rather than the exception type itself in order to
> calculate the databinding.  
> In the code we do:         
>            for ( org.apache.tuscany.spi.model.DataType<?> d : operation.getFaultTypes()) {
>                 dataBindingRegistry.introspectType(d, annotations);
>             }
> Following JAX-WS, say my fault type is a POJO Java class extending Exception with a getFaultInfo() returning an SDO type (this SDO is the FaultBean).  
> If SDODataBinding.introspect() was called to introspect my FaultBean type, then, you would be able to calculate I wanted SDO databinding (since I load the fault type with <import.sdo>).  
> But since only my POJO wrapper exc is introspected I end up getting a null DB.
> Maybe another solution would be to push the responsibility to check for a FaultBean returned by getFaultInfo() onto an individual DataBindingExtension class, e.g. SDODataBinding.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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