]
Richard Opalka updated JBWS-2917:
---------------------------------
Component/s: (was: jbossws-native)
We're using buggy xalan version causing namespaces issues
---------------------------------------------------------
Key: JBWS-2917
URL:
https://jira.jboss.org/jira/browse/JBWS-2917
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: jbossws-integration
Reporter: Richard Opalka
Assignee: Richard Opalka
Priority: Blocker
Fix For: jbossws-cxf-3.3.0, jbossws-metro-3.3.0, jbossws-native-3.3.0
JAXB internally uses XALAN.
When I pass the following XML
<?xml version='1.0' encoding='UTF-8'?>
<EndpointReference
xmlns='http://www.w3.org/2005/08/addressing'>
<Address>http://localhost:8080/jaxws-endpointReference</Address>
<Metadata wsdli:wsdlLocation='http://org.jboss.ws/endpointReference
http://localhost:8080/jaxws-endpointReference?wsdl'
xmlns:wsdli='http://www.w3.org/ns/wsdl-instance'>
<wsam:InterfaceName
xmlns:wsam='http://www.w3.org/2007/05/addressing/metadata'
xmlns:wsns='http://org.jboss.ws/endpointReference'>wsns:Endpoint</wsam:InterfaceName>
<wsam:ServiceName EndpointName='HelloPort' xmlns=''
xmlns:wsam='http://www.w3.org/2007/05/addressing/metadata'
xmlns:wsns='http://org.jboss.ws/endpointReference'>wsns:EndpointService</wsam:ServiceName>
</Metadata>
</EndpointReference>
and process it with the following code:
StreamSource source = new StreamSource(new StringReader(XML_SOURCE));
EndpointReference epRef = EndpointReference.readFrom(source);
printXml(epRef.toString());
the output will be (should be identical)
<?xml version='1.0' encoding='UTF-8'?>
<EndpointReference
xmlns='http://www.w3.org/2005/08/addressing'>
<Address>http://localhost:8080/jaxws-endpointReference</Address>
<Metadata wsdli:wsdlLocation='http://org.jboss.ws/endpointReference
http://localhost:8080/jaxws-endpointReference?wsdl'
xmlns:wsdli='http://www.w3.org/ns/wsdl-instance'>
<wsam:InterfaceName
xmlns:wsam='http://www.w3.org/2007/05/addressing/metadata'>wsn...
<wsam:ServiceName EndpointName='HelloPort'
xmlns:wsam='http://www.w3.org/2007/05/addressing/metadata'>wsn...
</Metadata>
</EndpointReference>
As you can see xmlns:wsns namespace declaration is lost during the identity process :(
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: