Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php nusoap Web服务不返回任何内容_Php_Web Services_Nusoap - Fatal编程技术网

Php nusoap Web服务不返回任何内容

Php nusoap Web服务不返回任何内容,php,web-services,nusoap,Php,Web Services,Nusoap,我尝试用PHP学习web服务,所以下载nusoap lib并查找教程 创建了文件,但没有结果 <?php require_once('lib/nusoap.php'); $testa = array('name" => "TEST'); $addw = new nusoap_client('http://127.0.0.1/Web%20services/server.php?wsdl',true); $res = $addw -> cal

我尝试用PHP学习web服务,所以下载nusoap lib并查找教程 创建了文件,但没有结果

 <?php

    require_once('lib/nusoap.php');

    $testa = array('name" => "TEST');

    $addw = new nusoap_client('http://127.0.0.1/Web%20services/server.php?wsdl',true);
    $res = $addw -> call('getmessage',$testa);
    echo $res;
    ?>

this is client.php

    <?php
require_once("lib/nusoap.php");
$auth = new nusoap_server();
$auth->configureWSDL("authenticate","urn:service1");
function getmessage($message){
    return "welcome ". $message;
}

$auth->register(
                "getmessage"
                ,array("name"=>"xsd:string")
                ,array("sum"=>"xsd:string")
                );

$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
$auth->service($HTTP_RAW_POST_DATA);
?>

这是服务器端 使用wamp并使用另一个样本进行测试,但没有财富