WCF errors

1) SvcUtil.exe http://localhost/someone.svc?wsdl

Error details: The remote server returned an error: (415) Cannot process the message because the content type 'application/soap+xml;charset=utf-8' was not the expected type 'text/xml; charset=utf-8'..

Cause:  

a. This is usually a mismatch in the client/server bindings, where the message version in the service uses SOAP 1.2 (which expects application/soap+xml) and the version in the client uses SOAP 1.1 (which sends text/xml). WSHttpBinding uses SOAP 1.2, BasicHttpBinding uses SOAP 1.1.

b. If there are some invaild markups in service's web.config, it will also raise this error.

Solutions:

a. Verify that the bindings used by the client/server are the same.

b. Application pool running as Network Service

 

2) Wait for updating...

posted on 2012-06-12 11:55  西西弗斯  阅读(491)  评论(0编辑  收藏  举报