Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-2917

We're using buggy xalan version causing namespaces issues

    Details

      Description

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ropalka Richard Opalka
                  Reporter:
                  ropalka Richard Opalka
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: