wood burning stoves 2.0*
The moose likes Web Services and the fly likes WSIMPORT error while using it with AXIS2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSIMPORT error while using it with AXIS2" Watch "WSIMPORT error while using it with AXIS2" New topic
Author

WSIMPORT error while using it with AXIS2

anilkumar potu
Greenhorn

Joined: Dec 11, 2008
Posts: 15
I am trying to use wsimport in build.xml with AXIS2 wsdl. But it fails to compile with one of the auto-created java files.

C:\Developments\xxx\rpm\sessions\interfaces\api\ws\RPL1RechargeServices.java:323: incompatible types
[wsimport] found : xxx.rpm.sessions.interfaces.api.ws.RPMException
[wsimport] required: java.lang.Throwable
[wsimport] throws RPMException
[wsimport] ^
[wsimport] C:\Developments\xxx\rpm\sessions\interfaces\api\ws\RPL1RechargeServices.java:340: incompatible types
[wsimport] found : xxx.rpm.sessions.interfaces.api.ws.RPMException
[wsimport] required: java.lang.Throwable
[wsimport] throws RPMException
[wsimport] ^
[wsimport] C:\Developments\xxx\rpm\sessions\interfaces\api\ws\RPL1RechargeServices.java:360: incompatible types
[wsimport] found : xxx.rpm.sessions.interfaces.api.ws.RPMException
[wsimport] required: java.lang.Throwable
[wsimport] throws RPMException
[wsimport] ^
[wsimport] C:\Developments\xxx\rpm\sessions\interfaces\api\ws\RPMException.java:30: cannot find symbol
[wsimport] symbol : constructor Exception(java.lang.String)
[wsimport] location: class java.lang.Exception
[wsimport] super(message);
[wsimport] ^
[wsimport] C:\Developments\xxx\rpm\sessions\interfaces\api\ws\RPMException.java:41: cannot find symbol
[wsimport] symbol : constructor Exception(java.lang.String,java.lang.Throwable)
[wsimport] location: class java.lang.Exception
[wsimport] super(message, cause);
[wsimport] ^

I am using jdk 1.6. Can some one help me in this please?

Thanks
Anil
sammaiah kyatham
Ranch Hand

Joined: Aug 03, 2003
Posts: 104
Hello,

Use document/literal and ADB binding.

Thanks,
Sam
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: WSIMPORT error while using it with AXIS2
 
Similar Threads
Serious issue: NumberFormat String Parse int problem
Polymorphic behavior provided by inheritance programming assignment
Java Object Oriented Grades Program
Exception compiler error
what is wrong with it?