doutingyou2198
doutingyou2198
2016-06-08 04:04

NetworkError:500内部服务器错误 - php Web服务

  • php
  • web-services

any wrong for this function ?? NetworkError: 500 Internal Server Error

private function getWebService() {
    require_once ('lib/nusoap.php');
    $param = array( 'your_name' => 'Monotosh Roy');
    $client = new soapclient('http://192.168.1.100/WebServiceSOAP/server.php');
    $response = $client->call('get_message',$param);
    if($client->fault)
    {
        echo "FAULT: <p>Code: (".$client->faultcode."</p>";
        echo "String: ".$client->faultstring;
    }
    else
    {
        echo $response;
    }

}

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐

换一换