This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Error in code generated with WSDL2Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Error in code generated with WSDL2Java" Watch "Error in code generated with WSDL2Java" New topic
Author

Error in code generated with WSDL2Java

J Krewson
Greenhorn

Joined: Oct 10, 2007
Posts: 7
Greetings,

Here's the scoop. I have a set of classes that I built using WSDL2Java. When I build the project, I get the following types of errors:

Error:Error:line (33)setStyle(org.apache.axis.enum.Style) in org.apache.axis.description.OperationDesc cannot be applied to (org.apache.axis.constants.Style)
Error:Error:line (34)setUse(org.apache.axis.enum.Use) in org.apache.axis.description.OperationDesc cannot be applied to (org.apache.axis.constants.Use)
Error:Error:line (76)setStyle(org.apache.axis.enum.Style) in org.apache.axis.description.OperationDesc cannot be applied to (org.apache.axis.constants.Style)
Error:Error:line (77)setUse(org.apache.axis.enum.Use) in org.apache.axis.description.OperationDesc cannot be applied to (org.apache.axis.constants.Use)
Error:Error:line (105)setStyle(org.apache.axis.enum.Style) in org.apache.axis.description.OperationDesc cannot be applied to (org.apache.axis.constants.Style)
Error:Error:line (106)setUse(org.apache.axis.enum.Use) in org.apache.axis.description.OperationDesc cannot be applied to (org.apache.axis.constants.Use)
Error:Error:line (132)setStyle(org.apache.axis.enum.Style) in org.apache.axis.description.OperationDesc cannot be applied to (org.apache.axis.constants.Style)
Error:Error:line (133)setUse(org.apache.axis.enum.Use) in org.apache.axis.description.OperationDesc cannot be applied to (org.apache.axis.constants.Use)
Error:Error:line (161)setStyle(org.apache.axis.enum.Style) in org.apache.axis.description.OperationDesc cannot be applied to (org.apache.axis.constants.Style)

And here is a sample line of code that the errors are referring to:

oper.setStyle(org.apache.axis.constants.Style.RPC);
oper.setUse(org.apache.axis.constants.Use.ENCODED);

This is frustrating because I am using the same code and same library as a co worker, and he is getting no errors in the project.

The language level is 5.0, and I am including axis-1.4-2006-04-22.jar in my module library (using IntelliJ).

I have looked around but I am not quite sure where to start with this...any pointers?

Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in code generated with WSDL2Java
 
Similar Threads
build paths?
Problem in Migrating code from WSAD 5.0 to RAD 7.5.3
Error in code generated with WSDL2Java
Error in code generated with WSDL2Java
Using Axis2 the WSDL2Java is giving Java:16: "Object cannot be applied to" errors.