c# - 在 C# 中调用 webservice 返回 Client found response content type of '' , but expected 'text/xml'

标签 c# soap coldfusion

我目前正在使用 C# 调用 ColdFusion 网络服务。 Web 服务只是用于搜索用户的简单查询。我可以很好地搜索它返回我搜索的用户,除非我尝试搜索“Johnson”然后它返回:

Client found response content type of '', but expected 'text/xml'.
The request failed with the error message:
--

--.

我不知道为什么在搜索特定字符串时它不起作用。我以为它可能会超时,但在发送请求后立即弹出错误。有什么想法吗???

最佳答案

可能是输出损坏了。试试网络分析器 WireShark 看看幕后发生了什么。

关于c# - 在 C# 中调用 webservice 返回 Client found response content type of '' , but expected 'text/xml',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2372966/

相关文章:

c# - 通过System.Linq在C#中获取元素的属性名称和值

c# - 将自定义路径设置为引用的 DLL?

ruby - 无法通过 HTTPS 将 SOAP 客户端 (savon) 连接到 SOAP Web 服务

c# - SOAP Web 服务,在不编辑代码的情况下更改命名空间?

c# - 从 .NET 调用带有 WS Security 的 Web 服务

c# - 在 VS2010 中打开 .mdproj 文件

coldfusion - 如何将 cfparam 用于 CF8 中的结构?

regex - 如何从 ColdFusion 字符串中清除 HTML 标签?

iis - 使用 IIS 设置 Coldfusion 10 - 无法配置 IIS 连接器

c# - 在 C# 中加入/合并数组