我是肥皂请求中的新手,我的客户端发送了样本请求格式,但他告诉我,我无法正确传递参数。我不知道我的代码是否有问题,我粘贴了示例请求和我的代码
由于
这是示例请求:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:card="http://placeholder/CARD">
<soapenv:Header/>
<soapenv:Body>
<card:CardPrinting>
<!--Optional:-->
<WebRequestCommon>
<!--Optional:-->
<company></company>
<password></password>
<userName>CARDPRINTING</userName>
</WebRequestCommon>
<!--Optional:-->
<PSSLAICARDPRINTINGType>
<!--Zero or more repetitions:-->
<enquiryInputCollection>
<!--Optional:-->
<columnName>CUSTOMER.CODE</columnName>
<!--Optional:-->
<criteriaValue>100115</criteriaValue>
<!--Optional:-->
<operand>EQ</operand>
</enquiryInputCollection>
</PSSLAICARDPRINTINGType>
</card:CardPrinting>
</soapenv:Body>
</soapenv:Envelope>
这是我的代码
$client = new SoapClient('http://placeholder/CARD/services?wsdl');
$params = array(
'WebRequestCommon'=>array(
'company'=>'',
'password'=>'123456',
'userName'=>'TAMIZH4'
),
'PSSLAICARDPRINTINGType'=>array(
'enquiryInputCollection'=>array(
'columnName'=>'CUSTOMER.CODE',
'criteriaValue'=>'100115',
'operand'=>'EQ'
)
)
);
$students = $client->CardPrinting($params);