System.ServiceModel.Channels.Binding binding = new System.ServiceModel.WSHttpBinding();
System.ServiceModel.EndpointAddress endpointAddress = new EndpointAddress("http://endereco:8080/Service/SB?wsdl");
SBClient cli = new SBClient(binding, endpointAddress);
String hello= cli.hello();
Mas está dando o seguinte erro:
ProtocolException: Content Type application/soap+xml; charset=utf-8 was not supported by service http://endereco:8080/Service/SB?wsdl. The client and service bindings may be mismatched.]
O que será?