Wednesday 12 October 2011

Step 8 & 9

Step 8: Create the object for the proxy class and call the HelloWorld method.
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();

        }
Step 9: If we run the application we will find the output as shown below.



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