connecting from third party applications

connecting from third party applications

  
Hello Gurus 

I have a query related to connecting or exporting the module which has been developed.

e.g: we have developed a pdf  based application which we are using and we would like our other applications to connect to the current location at OS and do the same operation .

Or 

Is it possible for me to export the code of the application and execute it from other location?

Please guide 
use a webservice?