美文网首页
PHP 连接soapServer返回“SOAP: looks l

PHP 连接soapServer返回“SOAP: looks l

作者: __Bw__ | 来源:发表于2016-12-25 18:44 被阅读147次
    1. 写了个soapServer
    $server = new SoapServer('xxoo.wsdl');
    $server->setClass('URClassName');
    $server->handle();
    
    • 新建clientServer去连接
    $client = new SoapClient("xxoo.wsdl");
    $client->__call($function_name,$arguments);
    
    • server端返回“SOAP: looks like we got no XML document”
    • 查看nginx error日志
    PHP message: PHP Deprecated:  Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0”
    
    • 使用的是php56,按照报错信息提示设置php.ini
    always_populate_raw_post_data = -1
    
    • 重启php-fpm
    • 连接正常

    相关文章

      网友评论

          本文标题:PHP 连接soapServer返回“SOAP: looks l

          本文链接:https://www.haomeiwen.com/subject/xuldvttx.html