[jbossws-issues] [JBoss JIRA] Commented: (JBWS-2917) We're using buggy xalan version causing namespaces issues

Richard Opalka (JIRA) jira-events at lists.jboss.org
Fri Feb 26 09:20:10 EST 2010


    [ https://jira.jboss.org/jira/browse/JBWS-2917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12516988#action_12516988 ] 

Richard Opalka commented on JBWS-2917:
--------------------------------------

I provided the patch upstream and built our custom patched xalan jar based on 2.7.1 version.

> 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.Beta2, jbossws-metro-3.3.0.Beta2, jbossws-native-3.3.0.Beta5
>
>
> 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 :(

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossws-issues mailing list