Implement Web Services in Offline Java Stand Alone application

Hi Forum,

I am managing several e-commerce projects for DHL. The situation we face here is that we have several projects which will be developed with web services whereas we have one important Stand Alone Application which will be developed in Java and needs to run in an offline environmente.

However there are many modules which are exactly the same in the offline stand alone application and the web based applications. Hence I would like to ask you if it is possible that I somehow "recycle" the web services of the web based applications and integrate them into the stand alone cliente?

My objective is not to develop everything twice (a web service for the web based applications and Java code for the offline stand alone). Can you please let me know if this is possible?

Many thanks in advance! Have a nice day!

Sven

[860 byte] By [Sven.Cronea] at [2007-11-26 16:14:33]
# 1

If the original web services are written in java then I don't see a problem.

I only know web services using apache axis, but there if (for example) you have a very simple service that just returns a string then there is nothing 'web service' in the code. It just looks like any old java method.

If the class this service is part of is uk.co.some.company.name.SimpleService then just import that package into your stand alone application.

If your services are not in Java then I'm afraid someone else will have to suggest a solution as I don't know if web services in other languages are written diferently.

Regards

C

cjparra at 2007-7-8 22:37:24 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Many thanks for the quick answer.In fact everything will just be developed (WebServices and the Java application) Hence I can decide how to develop the WebServices (I am planning to do it in Java as you already suggested)CheersSven
Sven.Cronea at 2007-7-8 22:37:24 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...