[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 5 03:43:19 EST 2010
[ https://jira.jboss.org/jira/browse/JBWS-2917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12510559#action_12510559 ]
Richard Opalka commented on JBWS-2917:
--------------------------------------
Possible solutions are:
a) HACKY FIX - implement xalan patch and incorporate it in xalan brew build (that is used for AS build)
b) PROPER FIX - remove all the dependencies on xalan in whole JBossAS and remove it (from endorsed directory only?)
I want to go b) way, but need to investigate if it's possible and how much time the transmission process would take.
> 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 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