cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice and jdk1.4

dirko
Champ in-the-making
Champ in-the-making
Hello,

i need to extend an existing product with a webservice interface towards alfresco. but I am confronted with the constraint that the product must be built with jdk 1.4. alfresco-web-service-client.jar is built with 1.5. anyone any advice on how to tackle this, is it hard to adjust the alfresco code to 1.4?

cheers,
dirk
1 REPLY 1

pmonks
Star Contributor
Star Contributor
Most of the code in the web service client is generated by Axis from the Alfresco WSDL, and since Axis supports JDK 1.4 there's a good chance you could simply recompile that code with a 1.4 compiler without incident.  That said, there are a number of hand-written classes in that API as well (the ISO9075 class, the WebServiceFactory etc.), and those may have some 1.5 constructs in them - if so it shouldn't be hard to copy that code into your own package and modify it to be 1.4 compatible.

Of course you could always just work from first principles (the Alfresco WSDL) and roll your own Web Service client from scratch - because there's very little hand-written code in the Web Service client this would be quite practical.  This also has the benefit of allowing you to pick which SOAP framework to use on the client side - you aren't forced to use Axis.

Cheers,
Peter