[ 
https://issues.apache.org/jira/browse/TUSCANY-2084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595674#action_12595674
 ] 

Raymond Feng commented on TUSCANY-2084:
---------------------------------------

I tried the following XML with SDO 1.1 release and it seems to be working fine:

    private static final String XML =
        "<ns:return xmlns:ns=\"http://services.move.ec3\"; 
xmlns:ax21=\"http://types.move.ec3/xsd\"; " + 
"xmlns:_typens_=\"http://types.move.ec3/xsd\"; 
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"; 
xsi:type=\"_typens_:Comment\">"
            + 
"<ax21:body>c</ax21:body><ax21:caption>b</ax21:caption><ax21:entryId>1</ax21:entryId><ax21:owner>a1</ax21:owner><ax21:reference>a1</ax21:reference><ax21:tstamp>2008-04-16T16:22:07.812Z</ax21:tstamp></ns:return>";

I assume it has been fixed in SDO 1.1.

Thanks,
Raymond

> Problems deserializing XML->SDO after  using XMLType element calculated from 
> Java to serialize SDO->XML onto
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2084
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2084
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Data Binding Runtime, Java SDO Implementation
>    Affects Versions: Java-SCA-1.1
>            Reporter: Scott Kurz
>             Fix For: Java-SCA-Next
>
>
> Discussed in this thread:
> http://www.mail-archive.com/[email protected]/msg28304.html
> Personally I worked around this by changing SDODatabinding.introspect() to do:
>         dataType.setLogical(new XMLType(null, xmlType));
>         //dataType.setLogical(new XMLType(elementName, xmlType));
> But Raymond suggested possibly fixing this in the SDO impl.   It would also 
> be possible to leave introspection the same
> but workaround this in the SDO transformers.
> Note that if you use the WS binding you typically won't see this, because the 
> presence of the WSDL intf on the XML side of things
> gives you a real element to serialize into, one that SDO can recognize during 
> deserialization.  You have to have a binding without a WSDL intf
> that you're transforming across.

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

Reply via email to