You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2003/10/11 06:41:20 UTC

DO NOT REPLY [Bug 23739] New: - Backslash character in namespace causes error in generated Java code

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=23739>.
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=23739

Backslash character in namespace causes error in generated Java code

           Summary: Backslash character in namespace causes error in
                    generated Java code
           Product: Axis
           Version: 1.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Major
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: junkymail50@yahoo.com


If a WSDL file has a namespace that includes a backslash (e.g.
"urn:MyLocation\here"), this carries over into the Java code, which then causes
an error.

Generated Java code:
typeDesc.setXmlType(new javax.xml.namespace.QName("urn:MyLocation\here", "MyType"));

This can either be immediately seen if the escape character is invalid (compiler
will reject it), or it may be a hidden bug if the escape character is valid
because the compiler will allow it.

I classify this as major because it can be a hidden bug, and also because it
takes a while to go weed these out.

Thanks