Generate proxy class
I try to generate a proxy class with the Svcutil tool.
I host my service in a windows console program.
// Host the service
publicstaticvoid Main(){
// Create a ServiceHost.using (ServiceHost serviseHost =newServiceHost(typeof(helloService)))
{
// Add an endpoint.WSHttpBinding binding =newWSHttpBinding();Uri uri =newUri("http://localhost:8000/hello1/");
serviseHost.AddServiceEndpoint(
typeof(IHello), binding, uri);// Open the service.serviseHost.Open();
// The service can now be accessed.// Hold it open untill user presses ENTER.Console.WriteLine("The service is ready");Console.WriteLine();Console.WriteLine("Press ENTER to shut down service.");Console.WriteLine();Console.ReadLine();// Close the service.serviseHost.Close();
}
}
I start my console program and I try this from another console.svcutilhttp://localhost:8000/hello1/ out:proxy.cs
The answer I get is. Error. Unable to obtain Metadata fromhttp://localhost:8000/hello1/
/Godzilla9

