Details
Description
A xsd:anyURI derived type such as the WS-Addressing MessageID has a 'whiteSpace = collapse (fixed)'-facet according to https://www.w3.org/TR/xmlschema11-2/#anyURI.
The MessageID exposed by org.apache.cxf.ws.addressing.AddressingProperties is not normalized when obtained from the MessageContext under the 'javax.xml.ws.addressing.context.inbound' property.
I've added 2 unittests that I ran inside the 3.4.0-SNAPSHOT codebase:
- systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java
- Existing client/server testcase modified to test only the MessageID-handling
- systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/WsaMessageIdTest.java
- New testcase that shows the same behavior with a marshalling/unmarshaling using the ObjectFactory in CXF
This might be related:
Workaround i'm using:
- Custome jaxb to apply an adapter on xsd:anyURI like so : https://stackoverflow.com/questions/7419951/how-to-configure-jaxb-so-it-trims-whitespaces-by-default