You must Sign In to post a response.
  • Category: Webservices

    How to call web service asynchronously in asp.net

    please send me sample code to call web service asynchronously in asp.net
  • #485184
    Please refer below link

    http://www.15seconds.com/issue/031124.htm

  • #485192
    Show here good sample code
    private void btnCallService_Click(object sender, EventArgs e)

    {

    // Create the instance of the proxy class

    Service myService = new Service();

    // Register an eventhandler for HelloWorldCompleted event

    // The eventhandler would be called when the request is

    // completed

    myService.HelloWorldCompleted += new

    HelloWorldCompletedEventHandler(this.HelloWorldCompleted);

    // instead of calling the synchronous HelloWorld() we need

    // to call the HelloWorldAsync() method

    myService.HelloWorldAsync();

    }

    void HelloWorldCompleted(object sender,HelloWorldCompletedEventArgs args){

    // Display the reutrn value

    MessageBox.Show(args.Result);

    }

    show article here
    --------------
    http://nishantrana.wordpress.com/2009/01/21/calling-an-aspnet-web-service-asynchronously/

    For Video Demo
    ----------------
    http://weblogs.asp.net/dwahlin/archive/2007/03/29/video-calling-web-services-asynchronously-with-asp-net.aspx

    http://www.futile.com/2008/06/calling-web-services-asynchronously-with-aspnet/

  • #485635
    check http://netprogramminghelp.com/webservices
    Ram

  • #487160
    Hi,

    See below reference for How to: Call a Web Service Asynchronously

    http://msdn.microsoft.com/en-us/library/ms233842.aspx


    Asynchronous Web Service Calls over HTTP with the .NET Framework

    http://msdn.microsoft.com/en-us/library/aa480512.aspx

    - Pavan Pareta

  • #488157
    In this article, we will see how to use Web services in a real-time Web application. Even though Web services are very powerful and based on open Internet protocols such as XML, HTTP and SOAP (that accounts for platform independence), using them in a real-time Web site requires careful consideration of performance implications. For example, if before showing a particular page you try to call out two or three Web services across the Internet to get data, the responsiveness of the site is going to be severely impacted. At the same time, you cannot avoid calling out to Web services to get the data you want. However, if you carefully plan your Web application, you can take advantage of the functionalities of the Web services without impacting the performance of the application.

    In this article, we will consider the very common example of a Stock Ticker application and understand how to use features such as asynchronous Web services, Windows service applications, server-based timer components, and .NET XML API classes to create high-performance, scalable, and flexible applications.

    Regards,

    Naveen Kumar.M

  • #488158
    In this article, we will see how to use Web services in a real-time Web application. Even though Web services are very powerful and based on open Internet protocols such as XML, HTTP and SOAP (that accounts for platform independence), using them in a real-time Web site requires careful consideration of performance implications. For example, if before showing a particular page you try to call out two or three Web services across the Internet to get data, the responsiveness of the site is going to be severely impacted. At the same time, you cannot avoid calling out to Web services to get the data you want. However, if you carefully plan your Web application, you can take advantage of the functionalities of the Web services without impacting the performance of the application.

    In this article, we will consider the very common example of a Stock Ticker application and understand how to use features such as asynchronous Web services, Windows service applications, server-based timer components, and .NET XML API classes to create high-performance, scalable, and flexible applications.



    and refer :http://www.15seconds.com/issue/031124.htm

    Regards,

    Naveen Kumar.M


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.