nusoap webservices什么都不返回

时间:2016-02-09 10:14:38

标签: 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 -> 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并测试另一个样本但没有财富

0 个答案:

没有答案