doutingyou2198 2016-06-08 04:04
浏览 155
已采纳

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

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条回答 默认 最新

  • doudizhu2222 2016-06-08 04:15
    关注

    The error message

    NetworkError: 500 Internal Server Error

    shows that something is wrong with the network/ connection. Either from your machine to the local one or from your local server to the soap-interface at:

    http://192.168.1.100/WebServiceSOAP/server.php

    Can you access this address from your dev-machine or have a look at the logs of that machine. There should be an occurred error. You can also set up an request logging for that machine at 192.168.1.100 so you could reproduce what was sent from your application that caused the 500- error.

    SOAP Request/Response logging

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

报告相同问题?

悬赏问题

  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?