Since you develop already in NWDS, why don't you create in nwds as follows
1) simple web project and
2) a simple html page for the action button to call your program and
3) Modify your program as (something like resource class or servlet class).
This web project deploy it in a web server and you can handle the communication channel via online. I don't think you can trigger action via excel button.