If it helps at all, this error went away when I generated using xmlbeans 
instead of the default adb.

Jesse


----- Original Message ----
From: Jesse Vitrone <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, November 29, 2007 2:14:54 PM
Subject: Re: compile error with generated code


Sorry, premature send...damn new Yahoo Mail.  Let me try again:



I'm getting a compile error (same one) a few different places in my
 code.  Here's a sample of one of the areas:

                // handle attribute "lang"
                java.lang.String tempAttribLang =
 reader.getAttributeValue("http://www.w3.org/XML/1998/namespace";,
                        "lang");

                if (tempAttribLang != null) {
                    java.lang.String content = tempAttribLang;

                    if (tempAttribLang.indexOf(":") > 0) {
                        // this seems to be a Qname so find the
 namespace and send
                        prefix = tempAttribLang.substring(0,
                                tempAttribLang.indexOf(":"));
                        namespaceuri = reader.getNamespaceURI(prefix);
                      

  object.setLang(org.w3.www.xml._1998.namespace.Lang_type0.Factory.fromString(
                                tempAttribLang, namespaceuri));
                    } else {
                        // this seems to be not a qname send and empty
 namespace incase of it is
                        // check is done in fromString method
                      

  object.setLang(org.w3.www.xml._1998.namespace.Lang_type0.Factory.fromString(
                                tempAttribLang, ""));
                    }
                } else {
                }

The problem is with this line:

                      

  object.setLang(org.w3.www.xml._1998.namespace.Lang_type0.Factory.fromString(

                                tempAttribLang, namespaceuri));


The definition for that method is generated like this:

    public static class Factory {
        public static Lang_type0 fromString(
            javax.xml.stream.XMLStreamReader xmlStreamReader,
            java.lang.String namespaceURI, java.lang.String type)
            throws org.apache.axis2.databinding.ADBException {


The code that is generated to use the method is only passing 2 params,
 but the generated fromString method is expecting 3.
Any idea why that would happen?

I'd post the WSDL if I could, but it's work related and protected
 information :(

Thanks in advance - Jesse









----- Original Message ----
From: Jesse Vitrone <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, November 29, 2007 2:12:08 PM
Subject: compile error with generated code


I'm getting a compile error (same one) a few different places in my
 code.  Here's a sample of one of the areas:

                // handle attribute "lang"
                java.lang.String tempAttribLang =
 reader.getAttributeValue("http://www.w3.org/XML/1998/namespace";,
                        "lang");

                if (tempAttribLang != null) {
                    java.lang.String content = tempAttribLang;

                    if (tempAttribLang.indexOf(":") > 0) {
                        // this seems to be a Qname so find the
 namespace and send
                        prefix = tempAttribLang.substring(0,
                                tempAttribLang.indexOf(":"));
                        namespaceuri = reader.getNamespaceURI(prefix);
                      

  object.setLang(org.w3.www.xml._1998.namespace.Lang_type0.Factory.fromString(
                                tempAttribLang, namespaceuri));
                    } else {
                        // this seems to be not a qname send and empty
 namespace incase of it is
                        // check is done in fromString method
                      

  object.setLang(org.w3.www.xml._1998.namespace.Lang_type0.Factory.fromString(
                                tempAttribLang, ""));
                    }
                } else {
                }


The problem is with this line:




    

  
____________________________________________________________________________________
Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.
  http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






    
  
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






      
____________________________________________________________________________________
Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.  
http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to