Two Laptop Bag*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
 
subject: WSIMPORT error while using it with AXIS2