6
Answers

Consume live WCF service through code behind in c#.net

Photo of pooja joshi

pooja joshi

11y
5.2k
1
When I use Live WCF service it show error "There was no endpoint listening at this that could accept the message. This is often caused by an incorrect address or SOAP action.

In code behind,
I wrote 
 BasicHttpBinding binding = new BasicHttpBinding();
            //WSHttpBinding binding = new WSHttpBinding();
            //Specify the address to be used for the client.
            EndpointAddress address = new EndpointAddress("http://abc.abc.com/googlepasswordservice/googleadservice.svc");
            serv = new GoogleAdServiceClient(binding, address);



Answers (6)