[英]calling remote function using php soap
我試圖在php中使用肥皂,並嘗試了許多不同的東西,但仍然沒有結果。 這是發送短信的服務:我使用了以下代碼:
$soapURL = "http://sms.magfa.com/services/urn:SOAPSmsQueue?wsdl" ;
$soapParameters = Array('login' => "username", 'password' => "password") ;
$soapFunction = "enqueue" ;
$soapFunctionParameters = Array('domain' => 'domain', 'messageBodies' =>array("hello world"),'recipientNumbers'=>array('number'),'senderNumbers'=>array('sender')) ;
$soapClient = new SoapClient($soapURL, $soapParameters);
$soapResult = $soapClient->__soapCall($soapFunction, $soapFunctionParameters) ;
並得到了這個錯誤:
org.xml.sax.SAXException: No deserializer defined for array type {http://www.w3.org/2001/XMLSchema}string
NuSoap和php標准soapclient之間存在已知沖突。 您應該使用可解決該問題的特殊版本的nusoap。 http://code.google.com/p/nusoap-for-php5/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.