• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Webservices compatibility in JDK 4 and 5

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
Got stuck in a weird scenario.

Have got a common webservice for login authenticcation.

Web service was created keeping in mind systems built on JDK 1.5 and onwards.

There are many legacy systems built on JDK 1.4 which are not able to call this webservice.

Attched is the code for webservice. Calling prnot getting cogram : AuthenticateClient.java

Program which is causing exception is AuthenticateStub.java at following lines for getConstructor method and newInstance method:
java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());

My problem:
1) Cannot upgrade legacy systems to JDK 1.5
2) Cannot make major changes in web service program since already implemented for some system.

Please help me in making the webservice compatible for both JDK 1.4 and 1.5

Regards,
Arvind

 
When people don’t understand what you are doing they call you crazy. But this tiny ad just doesn't care:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic