-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Mrinal
Message 2 in Discussion

Hi ,   See it's pretty simple with extremely good support in .net frame work , just do 
following things :   1. Add web reference to ur web project . 2. A Proxy class will be 
Generated . 3. All Methods that u would have declared Web Methods will have 2 
accompanying methods Begin<MethodName> & End<MethodName> , which are basically meant 
for asynchronous communication .   now one u have instantiated web service class , 
instead of calling the method call BeginMethod to instantiate the call to web service 
on a separate thread .   It's Return type will be IAsyncResult interface , with which 
u can do no. of things but best way is as a parameter to begin<Method> pass 
AsyncCallBack delegate , which is basically meant for method that needs to be called 
when call returns back from method ,   just declare :   AsyncCallBack cb = new 
AsyncCallBack(ReturnMethodName); This method's return type will be void and parameter 
will be IAsyncResult , now when call returns it will called automatically , so format 
for begin method becomes :   IAsyncResult Ar = WebServiceObj.BeginMethod(param1, 
param2 ,..,paramN, cb,null)   Just do this inside ReturnMethodName for getting final 
value  public void ReturnMethodName(IAsyncResult Ar) {   Final Return Value = 
WebServiceObject.EndMethodName(Ar)   } i hope it's clear , get back to me in case of 
any doubts ,   check this too :   http://www.codeproject.com/useritems/async_xmlws.asp 
  Regards ,   Mrinal  

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to