我是网络服务使用者,我收到如下错误。我的消息编码类型是Mtom。什么可能导致这种情况?
我的代码
EndpointAddress epa = new EndpointAddress(this.EndPointAddress);
BasicHttpBinding sslbinding = new BasicHttpBinding(BasicHttpSecurityMode.Transport);
sslbinding.MessageEncoding = WSMessageEncoding.Mtom;
sslbinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Certificate;
wsGibCaller.EFaturaPortTypeClient EFAT = new wsGibCaller.EFaturaPortTypeClient(sslbinding, epa);
错误: 内容类型text / html;字符集=" UTF-8"响应消息的内容与绑定的内容类型不匹配(multipart / related; type =" application / xop + xml")。如果使用自定义编码器,请确保正确实现IsContentTypeSupported方法。响应的前1024个字节是:
' HTML,身体{高度:100%;填充:0;余量:0;}。OC {显示:表;宽度:100%;高度:100%;} IC {显示:表细胞;垂直对齐:中间; height:100%;} div.msg {display:block; border:1px solid#30c; padding:0; width:500px; font-family:helvetica,sans-serif; margin:10px auto;} h1 {font- weight:bold; color:#fff; font-size:14px; margin:0; padding:2px; text-align:center; background:#30c;} p {font-size:12px; margin:15px auto; width: 75%; font-family:helvetica,sans-serif; text-align:left;}注意!!
尝试转移似乎包含数据泄漏!