-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with namespace when generated *.java file from wsdl #2
Comments
Hi, Nano depends on XML DOM parser which is included in both Android JDK and standard Oracle/Sun JDK. Are you compiling the generated code with these standard JDKs? and what is the error message produced by the compiler? Thx! |
Thank you for reply. Error message is: "Type mismatch: cannot convert from Element to Annotation" @Element(name = "LoginInfo") I'm compiling with standard JDKs, I mean your annotation @element conflicts with imported class "org.w3c.dom.Element;" I was looking at your code and seems I reported an issue in incorrect project, i'm sorry. @com.leansoft.nano.annotation.Element(name = "LoginInfo") because of name conflict with "import org.w3c.dom.Element;" Can you please advise a different solution instead of changing your sources? |
Hi, Usually, the any element in schema will be mapped to java.lang.Object, are you using processContents='skip' with any element in your schema defintion? if this is the case, then any element will be mapped to org.w3c.dom.Element, can you check your schema and try to change accordingly? Anyway, this is a bug of the binding framework, I have logged the issue, will spend some effort to fix it later. |
Hi, there is a compilation error after generation java code. I'm generating the code from wsdl during compilation of my project, so manual fixing is not unacceptably for me.
Here is an quick example of generated code. Compilation error is on the line
Because Element is a class from org.w3c.dom namespace
The text was updated successfully, but these errors were encountered: