问题描述
我引用其中一个在MFP设备上运行的网站,并调用其中一个功能。我收到以下错误:
System.InvalidOperationException未被用户代码处理
消息="客户端找到响应内容类型'text / plain; charset = utf-8',但预期'text / xml'。\\\\ n请求失败,并显示错误消息:\ r \ n - \\\\ nIndex超出了数组的范围。 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ SoapHttpClientProtocol.ReadResponse(SoapClientMessage消息,WebResponse响应,Stream responseStream,布尔asyncCall)
I reference one of the webservicces running on a MFP device and call one of it functionality. I get the following error:
System.InvalidOperationException was unhandled by user code
Message="Client found response content type of 'text/plain; charset=utf-8', but expected 'text/xml'.\r\nThe request failed with the error message:\r\n--\r\nIndex was outside the bounds of the array.\r\n\r\n--."
Source="System.Web.Services"
StackTrace:
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
推荐答案
这篇关于WebService方法调用出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!