I have an existing web service with one method:
[WebMethod]
public void HelloWorld()
{ }

I create a new wcf- based server:

binding = new WSHttpBinding();
host = new ServiceHost(typeof(MyService), address);
host.AddServiceEndpoint(typeof(MyService), binding, address);
host.Open();

With the same operation:
 [OperationContract()]
 public void HelloWorld()
{     }

Now I run my new server and my old client. The client is just a windows
application calling the server through a generated proxy. It throws a
WebException with the following message:

The request failed with HTTP status 415: Cannot process the message
because the content type 'text/xml; charset=utf-8' was not the expected
type 'application/soap+xml; charset=utf-8'..


What do I need to do to get my old client work together with the new
server?

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to