你是要调用别人的 webservice接口,还是你自己要写webservice接口?前段我刚写过。把你的需求写下来。require_once("../class/nusoap.php"); 这个nusoap.php 最好放到你的包含路径中去。还有,webservice 你应该写个wsdl,
解决方案 »
- 弱弱的问一下,开发手机网站和PC网站有啥不一样?
- 报Fatal error: Call to undefined function mcrypt_get_block_size()错误如何解决?
- 为什么 mssql_pconnect的计算机名用IP地址不可以但用计算机名字可以呢?
- 关于php url重写
- 一個很急切的問題想請教高手們....先謝了.在線等.
- 怎么进行时间比较?
- chop和trim得区别
- 大家帮帮忙吧!
- 关于分页思路的几点思考!!
- 一个关于 PHP图象函数的问题?
- 这个模糊查询怎么错了?
- PHP 在 Linux 服务器上,现实导出多表单的 Excel。有做过的前辈,大侠,英雄,长老,都来帮帮忙。
如果你的有错误,那么应该是这个包含路径吧?还有
$client = new soapclient('http://127.0.0.1:1234/php/test/nusoap_server.php');
你直接进入 http://127.0.0.1:1234/php/test/nusoap_server.php 是否有xml输出?如果没有,那就是你这个错误。应该会有如下xml<?xml version="1.0" encoding="ISO-8859-1" ?>
- <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:si="http://soapinterop.org/xsd">
- <SOAP-ENV:Body>
- <SOAP-ENV:Fault>
<faultcode>Server</faultcode>
<faultactor />
<faultstring>error in msg parsing: xml was empty, didn't parse!</faultstring>
- <detail>
<soapVal xsi:type="xsd:string" />
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>