-
Bug
-
Resolution: Done
-
Blocker
-
None
-
None
JAXB internally uses JAXP API 1.3 (in our case endorsed java 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'>wsns:Endpoint</wsam:InterfaceName>
<wsam:ServiceName EndpointName='HelloPort' xmlns:wsam='http://www.w3.org/2007/05/addressing/metadata'>wsns:EndpointService</wsam:ServiceName>
</Metadata>
</EndpointReference>
As you can see xmlns:wsns namespace declaration is lost during the identity process
- is blocked by
-
JBAS-7772 Upgrade xalan and serializer to 2.7.1.patch01-brew
- Closed
- is duplicated by
-
JBWS-2308 faultCode argument for createFault was passed NULL
- Closed
- is related to
-
WFLY-791 Problem with jboss versions of xerces and xalan: XML Parsing Error: duplicate attribute in wsdl definitions
- Open
-
JBAS-2073 Remove xalan.jar and serializer.jar from ./lib/endorsed
- Closed
- relates to
-
JBWS-2919 Remove WSEventing implementation dependency on xalan implementation classes
- Closed