Step 8: Create the object for the proxy class and call the HelloWorld method.
Step 9: If we run the application we will find the output as shown below.static void Main(string[] args) { //Creating Proxy for the MyService MyServiceClient client = new MyServiceClient(); Console.WriteLine("Client calling the service..."); Console.WriteLine(client.HelloWorld("Ram")); Console.Read(); }
I hope you have enjoyed the Service hosted in IIS. Now let start the look on the self hosted service.
No comments:
Post a Comment