I have Gui Application written which running on windows,and i want to connect to remote unix machine and perform actions there such like API's ,go over the log file in the machines and send back to the application the last log file or others API that i want to perform on the remote machine.

In the remote machine i don;t have application server i just have Java which installed there.

I want to use Java in order to perform remote API over the remote machine;

what is the advice ,can i use web services ,can any one please advise.

Thanks in advance.