File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WSIMPORT error while using it with AXIS2