File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes ClassCastException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "ClassCastException" Watch "ClassCastException" New topic


David Brossard
Ranch Hand

Joined: Jun 03, 2004
Posts: 109

When I'm trying to use a web service that requires parameters, when I invoke the call, I get the following error: java.lang.ClassCastException...

The call then fails of course. Here's my bit of code making the call:

I'm trying to access CapeScience's getWind method in the AirportWeather web service. Therefore

Does anyone have an ideao what's wrong, did I type some wrong code?

Thanks y'all

No matter what they say in Ohio, we're still first in flight!
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
Could you post any more details about the ClassCastException? Also, it would be useful to see the output from a "sniffer" such as Apache Axis' tcpmon or Grinder's similar proxy to see whether the problem is with the input or the output (if you can see the input going out you could compare it with the sample provided by CapeClear)...

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: ClassCastException
It's not a secret anymore!