pooja joshi

pooja joshi

  • NA
  • 8
  • 6.3k

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

May 18 2013 3:22 AM
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)