简体   繁体   English

找不到使用Content-ID'<858d8f9f-b101-46c3-bf84-d2b934ad1271>'的MTOM消息MIME部分创建阅读器的错误

[英]Error creating a reader for the MTOM message MIME part with Content-ID '<858d8f9f-b101-46c3-bf84-d2b934ad1271>' not found

I must consume a service with MTOM message but I get the error: 我必须使用带有MTOM消息的服务,但出现错误:

"Error creating a reader for the MTOM message" and the inner exception: "MIME part with Content-ID '<858d8f9f-b101-46c3-bf84-d2b934ad1271>' not found." “为MTOM消息创建阅读器时出错”和内部异常:“未找到具有Content-ID'<858d8f9f-b101-46c3-bf84-d2b934ad1271>'的MIME部分。”

BasicHttpsBinding b = new BasicHttpsBinding(BasicHttpsSecurityMode.TransportWithMessageCredential)
            {
                MessageEncoding = WSMessageEncoding.Mtom
            };

MySoapClient client = new SomeSoapClient(b, new EndpointAddress(url));

client.ClientCredentials.UserName.UserName = username;
client.ClientCredentials.UserName.Password = password;

AxisValues ax = new AxisValues()
{
  Solution = "xxx",
  User = "xxxx"
};

// Exception is generated in this line
SomeResultType r = client.getSomeMethod(ax, new long[] { 1234 }, out SomeType[] list);

Under the normal circumstance, there is no problem during the client call (at least on my side, it works properly). 在正常情况下,在客户呼叫期间没有问题(至少在我这边,它可以正常工作)。
The reason might cause this issue is that we modified the SOAP message, whose HTTP header Content-type is overwritten. 可能导致此问题的原因是我们修改了SOAP消息,其HTTP标头Content-type被覆盖。 Please refer to the below link. 请参考以下链接。
https://social.msdn.microsoft.com/Forums/vstudio/en-US/73039d75-e078-436b-a8ab-d8c7197a976b/error-creating-a-reader-for-the-mtom-message?forum=wcf https://social.msdn.microsoft.com/Forums/vstudio/zh-CN/73039d75-e078-436b-a8ab-d8c7197a976b/error-creating-a-reader-for-the-mtom-message?forum=wcf
WCF: "Error creating reader for MTOM message" WCF:“为MTOM消息创建阅读器时出错”
Feel free to let me know if there is anything I can help with. 请随时告诉我是否有什么我可以帮助的。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 解析器错误消息:找不到程序集&#39;Npgsql,版本= 2.0.12.0,文化=中性,PublicKeyToken = 5d8b90d52f46fda7&#39; - Parser Error Message: Assembly 'Npgsql, Version=2.0.12.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' not found WCF:找不到带有SoapUI Content-Id的MTOM - WCF : MTOM with SoapUI Content-Id not found C# tokenEdit 'Can't transform the 'a' part of 'a,b,c,d,e,f' EditValue in Tokens' - C# tokenEdit 'Can't transform the 'a' part of 'a,b,c,d,e,f' EditValue in Tokens' ActiveX控件&#39;6bf52a52-394a-11d3-b153-00c04f79faa6&#39;无法实例化,因为当前线程不在单线程单元中 - ActiveX control '6bf52a52-394a-11d3-b153-00c04f79faa6' cannot be instantiated because the current thread is not in a single-threaded apartment 未找到此程序集:“System.Net.Http,版本=4.0.0.0,文化=中性,PublicKeyToken=b03f5f7f11d50a3a” - This assembly is not found: 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' 由于以下错误,检索具有CLSID {C1F400A0-3F08-11D3-9F0B-006008039E37}的组件的COM类工厂失败:80040154 - Retrieving the COM class factory for component with CLSID {C1F400A0-3F08-11D3-9F0B-006008039E37} failed due to the following error: 80040154 c#电子邮件错误“ System.Net.Security,版本= 4.0.0.0,区域性=中性,PublicKeyToken = b03f5f7f11d50a3a” - c# Email Error “System.Net.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” WCF:“为MTOM消息创建阅读器时出错” - WCF: “Error creating reader for MTOM message” 亚音速查询条件A AND((条件B和条件C)OR(条件D和条件E和条件F) - Subsonic Query Condition A AND ((Condition B AND Condition C) OR (Condition D AND Condition E AND Condition F) 'System.Web,版本=4.0.0.0,文化=中性,PublicKeyToken=b03f5f7f11d50a3a' - 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM