This is my contract:
[ServiceContract]
public interface ILoginNetSSO
This is the way I invoke it from the page_load
method:
BasicHttpBinding myBinding = new BasicHttpBinding();
EndpointAddress myEndpoint = new EndpointAddress("https://google.com.mx/Login.IT.Web.Servicios.SSO/LoginNetSSO.svc");
ChannelFactory<ILoginNetSSO> myChannelFactory = new ChannelFactory<ILoginNetSSO>(myBinding, myEndpoint);
ILoginNetSSOwcfClient1 = myChannelFactory.CreateChannel(myEndpoint);
This error is generated:
The name of the type or namespace 'ILoginNetSSO' is not found (missing a using directive or an assembly reference?)
It is worth mentioning that the address is not the real one, but even consuming the real address generates the same error, I consult the service through a web browser and it shows me the methods.