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
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.