wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "ClassCastException" Watch "ClassCastException" New topic
Author

ClassCastException

David Brossard
Ranch Hand

Joined: Jun 03, 2004
Posts: 109
Hi,

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
endpoint="http://live.capescience.com:80/ccx/AirportWeather"
operation="getWind"

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
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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]
 
Don't get me started about those stupid light bulbs.
 
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