Regarding the problem of php calling websevice SMS interface
怪我咯
怪我咯 2017-05-16 12:58:44
0
3
834

Get a text message interface document, webservice.
The mobiles parameter in the interface for sending text messages is of type ArrayOf_xsd_string. How should I pass the parameters to soap on my php side?
$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");

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(3)
过去多啦不再A梦

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template