• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error in code generated with WSDL2Java

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
My first bit of advice is that if you are going to be a mime, you shouldn't talk. Even the tiny ad is nodding:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic