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();
}
No comments:
Post a Comment