有一个Java-Soap-Service,我想在WSE 3.0中调用它,我用WSDL-File生成了一个代理,但服务需要MTOM来存储它的数据。我也遵循了这个教程,它工作得很好,但没有帮助:http://twit88.com/blog/2008/05/14/net-mtom-enabled-your-application-using-wse/
我得到的例外是:
System.FormatException: "WSE839: An HTTP response was received that used the following content type: text/xml;charset=UTF-8. The following content type was expected: multipart/related; type=application/xop+xml."我知道WSE 3.0已经过时了,如果有其他方法,请告诉我。
有人能帮帮忙吗?
发布于 2018-09-05 03:28:57
将生成的类基类从System.Web.Services.Protocols.SoapHttpClientProtocol更改为Microsoft.Web.Services3.WebServicesClientProtocol.完成此操作后,您将能够访问名为RequireMtom的字段。在调用任何需要发送MTOM的方法之前,将其设置为true。确保对非MTOM调用禁用它。
https://stackoverflow.com/questions/52116264
复制相似问题