我正在尝试使用肥皂API,但是我不流利使用肥皂:
soap url为:http://classic.comunio.es/soapservice.php?wsdl
<?php
ini_set('soap.wsdl_cache_enabled', 0);
ini_set('soap.wsdl_cache_ttl', 900);
ini_set('default_socket_timeout', 15);
echo "<pre>";
$params = array('getplayersbyclubid'=>10);
$wsdl = 'http://classic.comunio.es/soapservice.php?wsdl';
$options = array(
'uri'=>'http://classic.comunio.es/soapservice.php?wsdl',
'style'=>SOAP_RPC,
'use'=>SOAP_ENCODED,
'soap_version'=>SOAP_1_1,
'cache_wsdl'=>WSDL_CACHE_NONE,
'connection_timeout'=>15,
'trace'=>true,
'encoding'=>'UTF-8',
'exceptions'=>true,
);
try {
$soap = new SoapClient($wsdl, $options);
$data = $soap->getplayersbyclubid($params);
}
catch(Exception $e) {
die($e->getMessage());
}
var_dump($data);
die;
?>
那会转储数据,但不是我想要的数据。例如getplayersbyclubid或getlatestgameday,我认为我将能够理解如何从中提取数据。谢谢!