我有一个SOAP客户端代码可以从elit公司获得汽车零件,但结果却很奇怪。
object(stdClass)[225]
public 'return' =>
object(stdClass)[226]
public 'unitPrice' => float 0
public 'vat' => int 0
我的PHP代码:
getItem函数必须具有数组参数:
7 => string 'struct getItem {
string company;
string login;
string password;
string activeItemNo; }
public function demo($piesa)
{
$wsdl = 'http://icelit02.elit.cz:7606/InterCompany-1.10.0/BuyerService?wsdl';
$opts = array('http' => array('protocol_version' => '1.0'));
$context = stream_context_create($opts);
$client = new SoapClient($wsdl, array('stream_context' => $context));
var_dump($client->__getFunctions());
var_dump($client->__getTypes());
$response=$client->__call('getItem', array(array('company'=>'ELIT_RO', 'login'=>'autocomplet15', 'password'=>'elena10', 'activeItemNo'=>'M043 22 00')));
dd($response);
}
'activeItemNo'=>'M043 22 00'
目录中不存在带有的项目。尝试使用一些现有的,例如'activeItemNo'=>'ATE 390569'
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句