拿到一个短信接口文档,webservice的。
其中发送短信的接口中mobiles参数是ArrayOf_xsd_string类型,我php端soap该怎么传递参数呢?
$ws = "http://www.aa.com:80/axis/services/SMsg?wsdl";
$client = new SoapClient ($ws,array('features' => SOAP_USE_XSI_ARRAY_TYPE));
$b = $client->sendSM("www","www","wwwTestCom",array('18888888888'),"4561");
See actual cases
http://blog.csdn.net/bytxl/ar...
Looking at the webservice save, the parameters you provided are incorrect. Please check your interface docking document carefully
Thanks for the invitation!
First of all, don’t write code blindly. You first need to know the node of the xml you need to send. First, you need to successfully debug the interface, and then consider how to construct your client xml code. During the construction process, you can use $client-> __getLastRequest() to view the xml you sent. It just so happens that I just wrote a demo of soap client. If necessary, chat privately....
Recommended debugging client: SoapUI