addNamespaceDeclaration() in SOAP Did Not Add The Namespace
 Technote (FAQ)
 
Problem
The addNamespaceDeclaration() in SOAP did not add the namespace / addChildElement() cannot inherit parent's namespace.
 
Cause
addNamespaceDeclaration() does not change default namespace to URI when called with prefix "".
 
Solution
PQ87594 When SOAP element type addNamespaceDeclaration is called with "" for the prefix, then the default namespace for that particular element should be changed to the URI that is supplied.

In WebSphere 5.1, the default namespace is not being changed to the supplied URI when addNamespaceDeclaration is called with "" as the prefix.

The work around is to use Sun's SAAJ implementation by packaging the appropriate jars in WEB-INF/lib and changing the WAR classloader policy to PARENT_LAST.
Scheduled to be fixed in future release.

 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
Historical Number
58633
756
000
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Web Services (for example: SOAP or UDDI or WSGW or WSIF)
Operating system(s): Windows
Software version: 5.0
Software edition:
Reference #: 1176509
IBM Group: Software Group
Modified date: Aug 9, 2004