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

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

报告相同问题?

悬赏问题

  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元