Home  >  Article  >  Backend Development  >  nusoap生成WSDL文件报错

nusoap生成WSDL文件报错

WBOY
WBOYOriginal
2016-06-06 20:36:401126browse

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

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);

回复内容:

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

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);

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

php$HTTP_RAW_POST_DATA = isset ( $HTTP_RAW_POST_DATA ) ? $HTTP_RAW_POST_DATA : '';
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn