search

Home  >  Q&A  >  body text

Regarding the problem of php calling websevice SMS interface

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

怪我咯怪我咯2780 days ago836

reply all(3)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-16 13:00:44

    See actual cases
    http://blog.csdn.net/bytxl/ar...

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-16 13:00:44

    Looking at the webservice save, the parameters you provided are incorrect. Please check your interface docking document carefully

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-16 13:00:44

    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

    reply
    0
  • Cancelreply