Brief introduction of SINA Short Message web Service

Source: Internet
Author: User
web| Sina Sina SMS Web Service
Tuesday, March, 12:09 PM
In the previous article, I mentioned the application of Sina to send SMS Web Service in my process monitoring system, and got everyone's response. A lot of people are very interested in this.

Having obtained the permission of the resource's referrer, Mr. Zhang Wei (colleague of the Development cooperation department), I decided to publish the resource and provide an example code as chicken-like.

The resource's address is: HTTP://SMSINTER.SINA.COM.CN/WS/SMSWEBSERVICE0101.WSDL, a WSDL file format where you can directly add Web references directly to your vs.net environment, and enter the address.

There is only one method for the Web service, String sendxml (Carrier,userid,password,mobilenumber,content,msgtype). Each parameter is of type string, and its meaning is basically as follows (may not be correct).

Carrier: operator name, which can be easily lost, but there seems to be no display, do not know if there are no other mysteries.
UserID: The phone ID you registered on Sina Wireless, that is, http://sms.sina.com.cn.
Password: the password that you use when registering your mobile phone on Sina Wireless.
Mobilenumber: The other person's mobile phone number;
Content: Send the contents of a short message;
Msgtype: Send the type of short message, I estimate support MMS, but I currently only use text message way, it seems that anything can be lost, I use "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, it should be a dime, but it is also a two corner line. Because the Message Queuing mechanism may be used in the background, there may be a few seconds of delay during busy times.



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.