In the previous article, it was mentioned that the Web Service sent Sina sent SMS in my process monitoring system was used to get everyone's response. Many people are very interested in this.
After receiving the allowable Mr. Zhang Wei (the development cooperation department of the recommender), I decided to publish this resource and provide example code as the chicken rib.
The resource is: http: //smsinter.sina.com.cn/ws/smswebservice0101.wsdl, this is a WSDL file format, you can add Web reference directly in your vs.net environment, This address is entered.
The Web Service has only one way, namely String Sendxml (Carrier, UserId, Password, MobileNumber, Content, MsgType). All parameters are all String types, and their meaning is basically as follows (may not be correct).
· Carrier: The operator name, this can be lost casually, but there is no display, I don't know if there is any other mystery inside.
· Userid: Your mobile phone ID registered on Sina Wireless, http://sms.sina.com.cn.
· Password: The password used when you register your phone on Sina Wireless.
· Mobilenumber: The other party's mobile phone number;
· Content: Send a short message content;
· MsgType: I estimate to support MMS, but I am using only text SMS, it seems that I can lose anything, I am using "text".
Examples are as follows:
Sina.smsws ws = new sina.smsws (); string result = ws.sendxml ("sina", textbox1.text, textbox2.text, textbox3.text, textbox4.text, "new");
Please refer to the relevant instructions on Sina Wireless website, but also a two-angle. Since the back office may use a message queue mechanism, it may be a few seconds in a busy time.
2004-03-23 12:09:00 By happy [Comment: 17)]