axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13732] - WSDL2Java generates "" as namespace part of QNames in Stubs - causing 'xmlns=""' on the wire
Date Thu, 27 Feb 2003 23:54:52 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13732>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13732

WSDL2Java generates "" as namespace part of QNames in Stubs - causing 'xmlns=""' on the wire

jasnell@us.ibm.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From jasnell@us.ibm.com  2003-02-27 23:54 -------
After looking this over, it appears as if the problem has to do with the fact 
that the schema defined in your WSDL does not specify a targetNamespace 
attribute.  The WSDL specification does not specify one way or the other 
whether or not a schema definition with a missing targetNamespace assumes the 
targetNamespace of the enclosing WSDL document.  Going off my interpretation of 
the XML Schema specification, in order to declare that a given schema type is 
part of a namespace, you must use the targetNamespace attribute on the 
xsd:schema tag.  In other words, your schema does not (or at least should not) 
inherit the WSDL documents namespace and therefore your defined elements do not 
belong to any namespace thus the justification for the xmlns="" attribute.  To 
correct this problem, you should associate your schema with a namespace.  After 
running a couple of tests, this should solve the problem.

As far as I can tell, nothing needs to be done to the Axis code.

Mime
View raw message