Table of Contents
nusoap生成WSDL文件报错
Jun 06, 2016 pm 08:36 PM
php
soap
这个错误,感觉很莫名其妙的,哪位大哥给看看?谢谢!
补充一下:这个使用了NuSoap的库
<code><?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); </code>
Copy after login
Copy after login
回复内容:
这个错误,感觉很莫名其妙的,哪位大哥给看看?谢谢!
补充一下:这个使用了NuSoap的库
<code><?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); </code>
Copy after login
Copy after login
你没有设置变量$HTTP_RAW_POST_DATA
.你可以试着设置一下:
<code>php</code><code>$HTTP_RAW_POST_DATA = isset ( $HTTP_RAW_POST_DATA ) ? $HTTP_RAW_POST_DATA : ''; </code>
Copy after login
Statement of this Website
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

Hot Article
Two Point Museum: Bungle Wasteland Location Guide
4 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot tools Tags

Hot Article
Two Point Museum: Bungle Wasteland Location Guide
4 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

How To Set Up Visual Studio Code (VS Code) for PHP Development
