1
我試圖使用API從這項服務:傳遞TNS:ArrayOfString到SOAP客戶端
http://messagingws.payamservice.ir/SendSMS.asmx?WSDL
我使用的是PHP的SOAP客戶端這樣的:
$client = new SoapClient("http://messagingws.payamservice.ir/SendSMS.asmx?WSDL");
$params=array();
$params['PortalCode']='code';
$params['UserName']='user';
$params['PassWord']='pass';
$params['Mobiles']=array('09123456789');
$params['Messages']=array('test');
$params['FlashSMS']=false;
$params['ServerType']=1;
$response = $client->__soapCall('MultiSMSEngine', array($params));
,但我得到「空消息」的錯誤,當我嘗試單一模式它工作正常,所以它似乎問題是Mobiles
& Messages
參數是tns:ArrayOfString
如何正確傳遞數組作爲SOAP的tns:ArrayOfString
?
感謝