Introduction to Sina SMS Web Service

Source: Internet
Author: User

Sina SMS Web Service
Tuesday, March 23,200 4 PM
In the previous article, I mentioned that in my Process Monitoring System, I applied the Web Service that sent text messages from Sina to get everyone's response. Many people are very interested in this.
After receiving the permission of the resource recommender Mr. Zhang Wei (a colleague from the Department of Development and Cooperation), I decided to publish the resource and provide sample code like a chicken ribs.
The address of this resource is "Submit.
This Web Service has only one method, that is, string sendXml (carrier, userid, password, mobilenumber, content, msgtype ). All parameters are of the string type. Their meanings are as follows (which may be incorrect ).
Carrier: carrier name. You can enter the carrier name at will, but it does not seem to show any details.
Userid: The phone ID you registered on Sina wireless, that is, the http://sms.sina.com.cn.
Password: the password used when you register your mobile phone on Sina wireless.
Mobilenumber: the mobile phone number of the other party;
Content: The content of the short message;
Msgtype: the type of short message to be sent. I estimate that MMS is supported. However, currently, I only use Text messages. It seems that I can enter anything. I use Text ".
Example:
Sina. SMSWS ws = new Sina. SMSWS ();
String result = ws. sendXml ("Sina", textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text, "new ");

For more information about the billing standard, see the description on the Sina wireless website. It may be a dime, but it may also be a two-way license. Because the background may use the message queue mechanism, there may be several seconds of delay during busy hours.

Related Article

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.