[ https://issues.apache.org/jira/browse/AXIOM-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15271698#comment-15271698 ]
Hudson commented on AXIOM-107: ------------------------------ SUCCESS: Integrated in axiom-trunk #2686 (See [https://builds.apache.org/job/axiom-trunk/2686/]) Rewrite the regression tests for AXIOM-107 and apply the support for xsi:type to getXMLStreamReader as well. (veithen: rev 1742340) * axiom/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/mixin/AxiomContainerSupport.aj * axiom/axiom-api/src/test/resources/soap/soapmessageWithXSI.xml * axiom/systests/old-tests/src/test/java/org/apache/axiom/om/impl/serializer/OMSerializerTest.java * axiom/testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/SOAPTestSuiteBuilder.java * axiom/testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/body/TestSerializeWithXSITypeAttribute.java * axiom/testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/builder/TestRegisterCustomBuilderForPayload.java * axiom/testing/soap-testsuite/src/main/java/org/apache/axiom/ts/soap/SOAPSampleSet.java * axiom/testing/soap-testsuite/src/main/resources/test-message/set/xsi-type.xml * axiom/testing/soap-testsuite/src/test/java/org/apache/axiom/ts/soap/ValidationTest.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: dev-unsubscr...@ws.apache.org For additional commands, e-mail: dev-h...@ws.apache.org