Win a copy of Programmers Guide to Apache Thrift this week in the Open Source forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Web service suddenly ceased to function  RSS feed

Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, we are small company and we have informations system, which is sending information about cash payments to government portal. Suddenly many of our cutomers reported that the service stopped to work (roughly at the same time). The exception is this

The government portal denies any upgrade or change of anything.
In code I found the point which launched the exception:



I solved this problem by saving the wsdl to local disc and referencing it as a file:

I don't understand why only ours cca 10 customers was stricken. They have various java versions and in that day no upgrade or reinstall of anything was done.
The government portal is used by whole country and every failure would be reported by others and medialized.
Does anybody have an explanation regarding the above exception ?


Saloon Keeper
Posts: 10206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well it complains that the WSDL has an unexpected end-of-file. That means that whatever code you're using to download it may not be downloading it completely.

Maybe the file is sometimes sent as a multi-part download, and the code that downloads it doesn't take that into account? I'm just spitballing here.

Anyway, I think it's a bad idea to refer to the hosted WSDL regardless. Your code should not change automatically based on external forces. You will want to refer to a local copy, and maybe have a monitoring service that warns you when the WSDL at the government portal has changed.
They gave me pumpkin ice cream. It was not pumpkin pie ice cream. Wiping my tongue on this tiny ad:
ScroogeXHTML - small and flexible RTF to HTML converter library
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!