I have the following ctors:
public Service1Client()
{
}
public Service1Client(string endpointConfigurationName) :
base(endpointConfigurationName)
{
}
public Service1Client(string endpointConfigurationName, string
remoteAddress) :
base(endpointConfigurationName, remoteAddress)
{
}
public Service1Client(string endpointConfigurationName,
System.ServiceModel.EndpointAddress remoteAddress) :
base(endpointConfigurationName, remoteAddress)
{
}
public Service1Client(System.ServiceModel.Channels.Binding binding,
System.ServiceModel.EndpointAddress remoteAddress) :
base(binding, remoteAddress)
{
}
As you can see, none of them accepts only the remote address. I need to add
a endpointConfigurationName or a Binding. I don't know which parameters I
should give there because I don't know what's an endpointConfigurationName or
how to create a Binding.
--
dshemesh
"Marc Gravell" wrote:
> You are you currently using your services? If you are using a
> ClientBase<T> derivative (where T is your service contract interface),
> then note that one of the ctor overloads accepts the remote address.
>
> I can't remember what svcutil spits out (for various reasons I use
> ClientBase<T> directly), but this might help?
>
> Marc
>
>
>