[
https://issues.apache.org/jira/browse/AXIOM-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15146506#comment-15146506
]
Hudson commented on AXIOM-107:
------------------------------
SUCCESS: Integrated in axiom-trunk #2529 (See
[https://builds.apache.org/job/axiom-trunk/2529/])
Cleanly reimplement AXIOM-107. (veithen: rev 1730307)
*
axiom/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/serializer/push/NamespaceHelper.java
*
axiom/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/serializer/push/SerializerImpl.java
*
axiom/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/serializer/push/XsiTypeFilterHandler.java
> OMSerializerUtil and StreamingOMSerializer do not respect the prefix
> referenced in an xsi:type
> ----------------------------------------------------------------------------------------------
>
> Key: AXIOM-107
> URL: https://issues.apache.org/jira/browse/AXIOM-107
> Project: Axiom
> Issue Type: Bug
> Reporter: Rich Scheuerle
> Assignee: Rich Scheuerle
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Here is the scenario:
> 1) An SOAP OM tree is built from the following input text:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:usr="http://ws.apache.org/axis2/user">
> <soapenv:Header />
> <soapenv:Body>
> <axis2:echoMyData xmlns:axis2="http://ws.apache.org/axis2">
> <data xsi:type="usr:myData">Hello World</data>
> </axis2:echoMyData>
> </soapenv:Body>
> </soapenv:Envelope>
> 2) SOAPEnvelope.getBody().toString() is called which prints out the following
> text:
> <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <axis2:echoMyData xmlns:axis2="http://ws.apache.org/axis2">
> <data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:type="usr:myData">Hello World</data>
> </axis2:echoMyData>
> </soapenv:Body>
> Note that most of the namespaces have been properly redeclared in the output
> text.
> However, the namespace for prefix "usr" is missing.
> Thus resulting xml is unusable.
> Solution:
> Change OMSerializerUtil and StreamingOMSerializer to respect the xsi:type and
> declare the namespaces of the referenced prefix (when necessary).
> I have the code and test, and I am running final tests.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]