C Sharp console application

Write a simple C# console application to consume the service to generate uniform random numbers.

E

Expert

Verified

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProgrammingHelp.WCFService1
{
class Program
{
static void Main(string[] args)
{
localhost.URN o = new localhost.URN();
Console.Write(o.generate());
}
}
}
On the Project menu, click Add Web Reference.
In the Add Web Reference dialog box, type the URL for the Web service in the Address text box.
If you set the local computer to host the Web service, the URL is http://localhost/URN.asmx.
Click Add Reference.

   Related Questions in Programming Languages

©TutorsGlobe All rights reserved 2022-2023.