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 (); // Direct call Method
Now you can change the asynchronous call Method to the following:Using magweb.com. china_sms.www.mainservices SMS=NewUsing magweb.com. china_sms.www.mainservices ();//Same instantiated object
SMS. beginmasssend (NewAsynccallback (mysms), SMS );//To use the method starting with begin, you need to pass in a method (my name is mysms)
// Real calls and results are implemented 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;
StringSsendres=SMS. endmasssend (IAR );
}
Okay, that's all!