winform call webservice suspended animation how to solve

The main thread calls to external web service, there is no return to the main thread is blocked, suspended animation interface is certainly
time-consuming operations are to be performed in the worker inside.
Under normal circumstances winform call webservice Step
1 Add Service Reference --- Senior ---- ------ add web reference fill url-- add web reference to complete the webservice references
let VS.NET environment for the we generate service proxy, then call the corresponding Web service.
If you need to dynamically call WebService, to achieve this function:
public static Object InvokeWebService (String url, String methodName, Object [] args)
where, url is the address of the Web services, methodname is to call the service method name, args to call the Web parameters required for the service, the return value is the result of a web service returns.

Guess you like

Origin www.cnblogs.com/yelanggu/p/11626949.html