一个WEBSERVICE例子,一直报Procedure 'paths' not present 异常哪位高人指点下,WSDL 完全不知道哪个地方出问题了服务器端class B1 {

//同步检测文件/目录安全性
public function syncScan(array $paths,$timestamp,$sig)
{
foreach ($paths as $key => $one) {
$result[$key] = array(
'paths'  => $one,
'resultCode' => 0,
'descUrl' => 'http://xx.xx.xx.xx/yyyy.txt',
);
}
return $result;
}

//异步检测文件/目录安全性
public function asynScan(array $paths,$timestamp,$sig)
{
//do something
return array('resultCode'=>0,'description'=>'result');
}
}
ini_set("soap.wsdl_cache_enabled", "0"); //禁止wsdl缓存
$server = new SoapServer('b1.wsdl',array('uri' => 'http://test-uri/'));
$server->setClass(B1);
$server->handle();
客户端$wsdl="http://localhost/webservice/server.php?wsdl";
//$wsdl='b1.wsdl';
$client=new SoapClient($wsdl,array('uri' => 'http://test-uri/') );try{
$arr=$client->syncScan(array(1,2,3),time(),md5('key'));
print_r($arr);
    //print_r($client->__getFunctions());

}catch (SoapFault $fault){
echo "Fault! code:",$fault->faultcode,", string: ",$fault->faultstring;

}WSDL
<?xml version='1.0' encoding='UTF-8'?><!-- WSDL file generated by Zend Studio. --><definitions name="b1" targetNamespace="urn:b1" xmlns:typens="urn:b1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:typens0="http://webservice/webservice/1.php">
<message name="asynScan">
<part name="paths" type="xsd:anyType"/>
<part name="timestamp" type="xsd:integer"/>
<part name="sig" type="xsd:string"/>
</message>
<message name="asynScanResponse">
<part name="asynScanReturn" type="xsd:anyType"/>
</message>
<message name="syncScan">
<part name="paths" type="xsd:anyType"/>
<part name="timestamp" type="xsd:integer"/>
<part name="sig" type="xsd:string"/>
</message>
<message name="syncScanResponse">
<part name="syncScanReturn" type="xsd:anyType"/>
</message>
<portType name="B1PortType">
<operation name="asynScan">
<input message="typens:asynScan"/>
<output message="typens:asynScanResponse"/>
</operation>
<operation name="syncScan">
<input message="typens:syncScan"/>
<output message="typens:syncScanResponse"/>
</operation>
</portType>
<binding name="B1Binding" type="typens:B1PortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="asynScan">
<soap:operation soapAction="urn:B1Action"/>
<input>
<soap:body namespace="urn:b1" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body namespace="urn:b1" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
<operation name="syncScan">
<soap:operation soapAction="urn:B1Action"/>
<input>
<soap:body namespace="urn:b1" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body namespace="urn:b1" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
<service name="b1Service">
<port name="B1Port" binding="typens:B1Binding">
<soap:address location="http://localhost/webservice/server.php"/>
</port>
</service>
</definitions>