I was wondering if you could give me a little help. I have created a project with 2 applications in it. One is aN ASP.NET Web Service, called "FindSum1" and the second is a Console Application called "FindSum2".
Within "FindSum1" I created a web method with the following code attached bellow.
I then created "FindSum2" which as previously stated was a Console Application. After that i connected the project via WebService and named it "AddService".
Within the console file I would like to have the user input 5 different integers and it will use the webservice to add them all up and return the answer of the sum. Any help with how I go about this? I know how to do this in the traditional method, but I have became a little lost when it comes to calling the web service. I have also attached the code that I have implemented so far for the Console Application.
This is the code I have so far. Any help would be GREATLY appreciated!
Thanks in advance!
public int Add(int a, int b, int c, int d, int e)
return a + b + c + d + e;
static void Main(string args)
AddService.Service1SoapClient client = new AddService.Service1SoapClient();
Console.Write("Please Enter Integer 1: ");