关于php调用websevice短信接口的问题
怪我咯
怪我咯 2017-05-16 12:58:44
0
3
743

拿到一个短信接口文档,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");

怪我咯
怪我咯

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

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
        About us Disclaimer Sitemap
        php.cn:Public welfare online PHP training,Help PHP learners grow quickly!