Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Web service callback

Web service callback

Scheduled Pinned Locked Moved ASP.NET
question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anishkannan
    wrote on last edited by
    #1

    hi, I needs some clarification for webservice. The scenario is, i have to call a webservice interface. which is performed more than three minutes ( ftp file upload and download process done by that webservice). which is taking some times to complete. So i used on the webservice proxy object property like

    service.Timeout = 1000*60*5

    its okay for webservice communication.but until that time we have to wait in our asp page. for that i created separate thread for webservice invoke.( thread is containing the class object is singleton). so when i used timer every time the class has the value or not . if there, i will shown to to the page. For this way, i have achieve my scenario. but incase, the user can close the page after invoke, in that case data's maintain the entire application ( The data stored in hashtable object as key and value) Have any option for achieve webservice performing long time?

    A 1 Reply Last reply
    0
    • A anishkannan

      hi, I needs some clarification for webservice. The scenario is, i have to call a webservice interface. which is performed more than three minutes ( ftp file upload and download process done by that webservice). which is taking some times to complete. So i used on the webservice proxy object property like

      service.Timeout = 1000*60*5

      its okay for webservice communication.but until that time we have to wait in our asp page. for that i created separate thread for webservice invoke.( thread is containing the class object is singleton). so when i used timer every time the class has the value or not . if there, i will shown to to the page. For this way, i have achieve my scenario. but incase, the user can close the page after invoke, in that case data's maintain the entire application ( The data stored in hashtable object as key and value) Have any option for achieve webservice performing long time?

      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      Using a timer is not the best way. Call the web service asynchronously. Read more about this here[^] and here[^].

      A 1 Reply Last reply
      0
      • A Abhinav S

        Using a timer is not the best way. Call the web service asynchronously. Read more about this here[^] and here[^].

        A Offline
        A Offline
        anishkannan
        wrote on last edited by
        #3

        okay... Thanks for sharing but the thing is when I added web reference, coudn't get the method start with Begin(BeginHello). Its comes like HelloAsync. didnt get this type of proxy method automatically

        MyService.BeginHelloWorld(AsyncCallback, null);

        This is the call back method ok its comes after the webservice execution ,. but have to show that "completed web service" message to page. but in this case, its not reflected to page

        void MyService_HelloWorldCompleted(object sender, ForLearnWebservices.localwebserver.HelloWorldCompletedEventArgs e)
        {
        lb1.Text = "completed web service";
        //throw new NotImplementedException();
        }

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups