Ars
Ars

Reputation: 282

wsdl to java in eclipse

I am new to the web services and using Eclipse indigo to do the operation, I have one wsdl file by which i have created the client(java) files, Now i am using those files for my java files which is getting stub object from xxxxxbindingstub.java file and sending the request(setRequest.java) in order to get the response from the web service.

But I am getting the below error:- java.lang.reflect.InvocationTargetException java.lang.NoClassDefFoundError: org/apache/axis/client/Stub :(:(

Please help me out by suggesting something.

Thanks @rs

Upvotes: 0

Views: 1930

Answers (2)

Karthik
Karthik

Reputation: 111

Axis jar file is not included in the build path. You can download it from Find Jar

Upvotes: 0

Anton
Anton

Reputation: 6061

If you are writing client application, I would suggest you to use wsimport -keep http://url.com instead of wsdl2java. It will generate stub classes. This util is in bin folder of your JDK package. If you still want to use Axis, check appropriate jar files in your classpath

Upvotes: 1

Related Questions