简体   繁体   English

使用php soap调用远程功能

[英]calling remote function using php soap

I am trying to use soap in php and tried lots of different things and still no result. 我试图在php中使用肥皂,并尝试了许多不同的东西,但仍然没有结果。 It is service for sending SMS : I used this code : 这是发送短信的服务:我使用了以下代码:

    $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) ;

And got this error : 并得到了这个错误:

org.xml.sax.SAXException: No deserializer defined for array type {http://www.w3.org/2001/XMLSchema}string

There is a known conflict between NuSoap and php standard soapclient . NuSoap和php标准soapclient之间存在已知冲突。 you should use the special version of nusoap that solved that problem . 您应该使用可解决该问题的特殊版本的nusoap。 http://code.google.com/p/nusoap-for-php5/ http://code.google.com/p/nusoap-for-php5/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM