//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:2.0.50110.28
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
[System.ServiceModel.ServiceContractAttribute()]
public interface Hello
{
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/Hello/SayHello", ReplyAction="http://tempuri.org/Hello/SayHelloResponse")]
[return: System.ServiceModel.MessageBodyAttribute(Name="SayHelloResult", Namespace="http://tempuri.org/")]
string SayHello([System.ServiceModel.MessageBodyAttribute(Namespace="http://tempuri.org/")] string name);
}
public interface HelloChannel : Hello, System.ServiceModel.IProxyChannel
{
}
public partial class HelloProxy : System.ServiceModel.ProxyBase, Hello
{
public HelloProxy()
{
}
public HelloProxy(string configurationName) :
base(configurationName)
{
}
public HelloProxy(System.ServiceModel.Binding binding) :
base(binding)
{
}
public HelloProxy(System.ServiceModel.EndpointAddress address, System.ServiceModel.Binding binding) :
base(address, binding)
{
}
public string SayHello(string name)
{
return base.InnerProxy.SayHello(name);
}
}
class Test
{
static void Main( string[] args )
{
HelloProxy proxy = new HelloProxy(
new System.ServiceModel.EndpointAddress( "http://localhost/hello/ep" ),
new System.ServiceModel.BasicProfileBinding() );
string result = proxy.SayHello("some data");
System.Console.WriteLine("The Hello service returned '" + result + "'");
proxy.Close();
}
}