• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ClassCastException

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)...
 
I don't get it. A whale wearing overalls? How does that even work? It's like a tiny ad wearing overalls.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic