2013-02-19 54 views
0

我想在PHP中使用肥皂,並嘗試了很多不同的東西,仍然沒有結果。 它是用於發送短信服務: 我用這個代碼:使用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 

回答