Joke Collection Website - Public benefit messages - ASP.NET realizes mobile phone to send short message sinamessage. smswsendmessage = new sinamessage. smswws (); Missing reference

ASP.NET realizes mobile phone to send short message sinamessage. smswsendmessage = new sinamessage. smswws (); Missing reference

What needs to be added is a service reference.

Right-click references > add service reference

Enter:/ws/SMS webservice0101.wsdl in the address box, and then click Go (the following namespace name defaults to ServiceReference 1).

You will see the content displayed in the white box of the service.

Click OK and wait for a while, thus adding a service reference.

Note that the calling method is different.

Reference the previous namespace.

Use? SendMsg。 servicereference 1;

Protected void btnSend_Click (object sender, EventArgs e)

{

SMSWebServiceSoapPortClient send msg = newsmwebservicesoapportclient();

SendMsg? . sendXml("Sina ",this.txtUserid.Text,this.txtPassword.Text,this.txtMobilenumber.Text,this.txtContent.Text," new ");

}

I hope I can help you. If you are satisfied, please accept it.