Search code examples
c#javaweb-servicesexcel-dna

C# standalone application with java backend webservice


I am new to C# (still learning). My problem statement is that i have to build a C# plugin for excel. The backend of the application is spring based Restful service implemented using Restlet.

Can i leverage the same service and make calls from the proposed C# standalone app (the excel plugin)? if so can someone point me to some sample c# client webservice code?

Thanks a bunch!


Solution

  • yes, you can.

    Just add a Service Reference

    And then with a using statement you can connect and make calls.

    Make sure you also Don't use using to wrap your calls. Use a helper class, and even then wrap it in a try/catch