This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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]
subject: ClassCastException
Similar Threads
consume web service
Unable to receive result from Web Service Method
unable to run GetListItems Webservice
who can help me?
NullPointerException returned from webservice