0

我正在尝试在php中使用soap并尝试了很多不同的东西,但仍然没有结果。这是发送短信的服务:我使用了这个代码:

    $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
4

1 回答 1

0

NuSoap 和 php 标准 soapclient 之间存在已知冲突。您应该使用解决该问题的特殊版本的 nusoap。 http://code.google.com/p/nusoap-for-php5/

于 2013-02-19T14:52:13.883 回答