php - nusoap生成WSDL文件报错
怪我咯
怪我咯 2017-04-10 15:28:08
0
1
833

这个错误,感觉很莫名其妙的,哪位大哥给看看?谢谢!
补充一下:这个使用了NuSoap的库

<?php
require_once 'lib\nusoap.php';
function getProd($category)
{
    if ($category == "books") {
        return join(",", array(
            "The WordPress Anthology",
            "PHP Master: Write Cutting Edge Code",
            "Build Your Own Website the Right Way"
        ));
    } else {
        return "No products listed under that category";
    }
}
$server = new soap_server();
$server->configureWSDL("productlist", "urn:productlist");
$server->register("getProd",
    array("category"=>"xsd:string"),
    array("return"=>"xsd:string"),
    "urn:productlist",
    "urn:productlist#getProd",
    "rpc",
    "encoded",
    "Get a listing of products by category");
$server->service($HTTP_RAW_POST_DATA);
怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
伊谢尔伦

你没有设置变量$HTTP_RAW_POST_DATA.你可以试着设置一下:

php$HTTP_RAW_POST_DATA = isset ( $HTTP_RAW_POST_DATA ) ? $HTTP_RAW_POST_DATA : '';
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template