You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Valerio Angelini (JIRA)" <ji...@apache.org> on 2009/03/11 12:07:50 UTC

[jira] Updated: (CXF-2103) Some attributes marshalled through JAXBSource have wrong names

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

Valerio Angelini updated CXF-2103:
----------------------------------

    Attachment: cxf-JAXBSource-bug.zip

test case

> Some attributes marshalled through JAXBSource have wrong names
> --------------------------------------------------------------
>
>                 Key: CXF-2103
>                 URL: https://issues.apache.org/jira/browse/CXF-2103
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1.4
>            Reporter: Valerio Angelini
>         Attachments: cxf-JAXBSource-bug.zip
>
>
> Hello,
> I'm using CXF through the JAX-WS Provider interface. I set the parametric parameter of the interface to javax.xml.transform.Source.
> The XML results of marshalling a DOMSource or a JAXBSource are different, look for example at the first attribute of the "formatResponse" element (the DOMSource one is correct):
> --- DOMSource ---
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <SOAP-ENV:Header/>
>    <SOAP-ENV:Body>
>       <formatResponse attribute="attr1" xmlns="http://www.cxftest.org">
>          <formattedName>test</formattedName>
>       </formatResponse>
>    </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> ------------------------------------------------------------------------------------------------------------
> --- JAXBSource ---
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <SOAP-ENV:Header/>
>    <SOAP-ENV:Body>
>       <formatResponse formatResponse="attr1" xmlns="http://www.cxftest.org">
>          <formattedName>test</formattedName>
>       </formatResponse>
>    </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> ------------------------------------------------------------------------------------------------------------
> you can find attached a test case.
> Regards
> Valerio Angelini

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