This content has been marked as final.
Show 1 reply
-
1. Re: How to get default namespace URI from SOAP Message
shuchan May 19, 2006 2:54 AM (in response to shuchan)Hi,
I found that changing a setting of "http://xml.org/sax/features/namespace-prefixes" to "true" (was "false") in org.jboss.axis.utils.XMLUtils.java of JBossAS 4.0.3SP1 can make the following codes work(I mean I can get "xxxxx" instead of null).String XML_SCHEMA_NS = "xmlns" String nameSpace = element.getAttribute(HandlerNames.XML_SCHEMA_NS);
My understanding is that a reson of the original "false" setting is according to
http://java.sun.com/j2se/1.5.0/docs/api/org/xml/sax/Attributes.html sayingIt will also not contain attributes used as Namespace declarations (xmlns*) unless the http://xml.org/sax/features/namespace-prefixes feature is set to true (it is false by default).
A few questions.
[Q3] Is my understanding correct? Or any other reason of "false" setting of http://xml.org/sax/features/namespace-prefixes?
[Q4] Is there any configuration option in *.xml or *.properties in JBossAS(actually JBossWS or JBossWS2EE) to change the setting instead of changing the source code?
Thanks,
Shu