调用 webservice 出错301 Moved Permanently,偶尔出,求解

chichaodechao 2010-06-04 03:49:13
c# 调用c# 写的webservice 偶尔出现这个错误。
有谁遇到过。
System.Net.WebException: 请求失败,错误信息为: --
301 Moved Permanently

--------------------------------------------------------------------------------

nginx/0.5.23
--. 在 System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) 在 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) 在 CheckWebCall.WSinterface.ServiceNoWse.GetBalance(Int32 supplierID, String& exceptionInfo) 在 CheckWebCall.Service1.CheckInterface(),时间:2010-6-4 14:31:27
...全文
1245 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
广州权志龙 2021-06-14
  • 打赏
  • 举报
回复

我之前也遇到过这种问题,微服务的远程调用,用的是httpclient post(http://+ip+端口+接口地址),也是报301,后来发现http不行,改为https就不会出现这个问题了。

chichaodechao 2010-06-04
  • 打赏
  • 举报
回复
我google 了一下 System.Net.WebException: 请求失败,错误信息 301 这个
我的帖子第一个。
chichaodechao 2010-06-04
  • 打赏
  • 举报
回复
怎么没有人呀

110,538

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧