我目前正在使用 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/