How does php call webservice developed by. NET?

Source: Internet
Author: User
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
  
  
  
  
   
    
    
    
    
    
    
   
  
  
   
    
    
    
    
    
    
    
    
   
  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.