dooo61733 2013-05-21 12:43
浏览 122
已采纳

SoapClient结果“无法打开流:HTTP请求失败”

I'm trying to open a socket between my server and the other server, but it returns the following warring msg :

SoapClient::SoapClient() [soapclient.soapclient]: failed to open stream: HTTP request failed

my SoapClient should be connected using a specific IP, so I'm using the following code:

$aOpts = array('socket' => array('bindto' => 'my IP')); $rStreamContext = stream_context_create($aOpts);

$client = new SoapClient($this->_wsdl_test_url, array('stream_context'=>$rStreamContext));

the server keep giving me the same warning, failed to open stream: HTTP

  • 写回答

1条回答 默认 最新

  • douchuilai2355 2013-05-21 13:02
    关注

    finally it was fixed, the problem was with the encryption of the file, I put it UTF8 without BOM instead of UTF8

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 adb push异常 adb: error: 1409-byte write failed: Invalid argument
  • ¥15 android报错 brut.common.BrutException: could not exec (exit code = 1)
  • ¥15 nginx反向代理获取ip,java获取真实ip
  • ¥15 eda:门禁系统设计
  • ¥50 如何使用js去调用vscode-js-debugger的方法去调试网页
  • ¥15 376.1电表主站通信协议下发指令全被否认问题
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥15 复杂网络,变滞后传递熵,FDA
  • ¥20 csv格式数据集预处理及模型选择
  • ¥15 部分网页页面无法显示!