Code generated by wsdl2java won't compile
-----------------------------------------
Key: AXIS2-1063
URL: http://issues.apache.org/jira/browse/AXIS2-1063
Project: Apache Axis 2.0 (Axis2)
Issue Type: Bug
Components: databinding
Reporter: Chad Boyd
Attachments: Transactions_type10.java
When trying to compile the code generated by the WSDL located at <a
href="https://copyws.cendant.com/B2BGateway/service/XMLSelect?WSDL">https://copyws.cendant.com/B2BGateway/service/XMLSelect?WSDL</a>
I get errors. The reason for the compile errors is the wsdl2java generates a
"String" class. Some of the methods use the "java.lang.String" class as a
return type, but it's not prefixed with the package name. Since the generated
String class is in the same package, the compiler thinks that it is referring
to it. But the "java.lang.String is really needed. Here is a snippet of code
that is causing problems:
/**
* Create a prefix
*/
private String createPrefix() {
return "ns" + (int)Math.random();
}
I've attached the entire generated source for this class. The "java.lang"
prefix is used in some of the code, so I think somone just forgot to include
this in the templates maybe? If you run the wsdl2java tool and try to tcompile
the code you will see what I'm talking about.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]