The WebService method does not need to be modified, but uses an Asynchronous Method During the call. In this way, the speed will be faster in the loop.
Original method:
Using magweb.com. china_sms.www.MainServices sms = new using magweb.com. china_sms.www.MainServices (); // instantiate an object
String sSendRes = sms. massSend (); // call the method directly
Now you can change it to asynchronous call method: HotelMagWeb.com. china_sms.www.MainServices sms = new domains magweb.com. china_sms.www.MainServices (); // The same instantiation object
Sms. BeginmassSend (new AsyncCallback (MySMS), sms); // use the method starting with Begin to pass in a method (my name is MySMS)
// Implement real calls and results in this method!
Public static void MySMS (IAsyncResult iar)
{
Using magweb.com. china_sms.www.MainServices sms = (using magweb.com. china_sms.www.MainServices) iar. AsyncState;
String sSendRes = sms. EndmassSend (iar );
}