How does php call the webservice interface address developed by. NET? the method to call pi. f3.cnF3WebService. asmx is SendSMS & nbsp; SMS sending & nbsp; how do you write the SMS interface? I always fail to call. I will first describe my code: PHPcode & lt ;? How does phpclassSendSMSParam {public php call the webservice developed by. NET?
Interface address: http://pi.f3.cn/F3WebService.asmx
The method to call is:
SendSMS
SMS sending
Let's see how to write the SMS interface? I always fail to call
Let me explain my Code First:
PHP code
ToUserText = $ mobile; $ SMSParam-> SMSContent = $ content; $ SMSParam-> MSGType = 5; $ SendSMSinfo = new SendSMS (); $ SendSMSinfo-> SMSParam = $ SMSParam; $ SendSMSinfo-> ECECCID = $ userid; $ SendSMSinfo-> Password = $ pwd; print_r ($ SendSMSinfo); $ client-> SendSMS ($ SendSMSinfo);?>
------ Solution --------------------
Fatal error: Uncaught SoapFault exception: [soap: Client] The server cannot read the request. ---> Error in XML document (2,268. ---> The string "" is not a valid AllXsd value. In
... Php: 34 Stack trace: #0
... Php (34): SoapClient->__ call ('sendsms', Array) #1
... Php (34): SoapClient-> SendSMS (Object (SendSMS) #2
------ Solution --------------------
C/C ++ code