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. Returning data from web service piece-by-piece

Returning data from web service piece-by-piece

Scheduled Pinned Locked Moved ASP.NET
tutorialquestionlearning
4 Posts 3 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.
  • I Offline
    I Offline
    il_manti
    wrote on last edited by
    #1

    Sup guys. I'm 99% sure this is impossible but my boss keeps asking me about it so I've been researching but to no avail. I really need to verify whether it's possible or not so here goes: I have a webservice which returns a LOT of data in a list of a complex object. Is it even possible to have the webservice push returns? For example: The webservice loops all objects and does something awesome with each. When it finishes with each object it adds it to the final list. How possible is it to push the objects to the front one at a time? Thanks guys.

    In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)

    G B 2 Replies Last reply
    0
    • I il_manti

      Sup guys. I'm 99% sure this is impossible but my boss keeps asking me about it so I've been researching but to no avail. I really need to verify whether it's possible or not so here goes: I have a webservice which returns a LOT of data in a list of a complex object. Is it even possible to have the webservice push returns? For example: The webservice loops all objects and does something awesome with each. When it finishes with each object it adds it to the final list. How possible is it to push the objects to the front one at a time? Thanks guys.

      In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)

      G Offline
      G Offline
      Goutam Patra
      wrote on last edited by
      #2

      I don’t know whether it will solve your purpose but think about a reverse way. Like suppose you have a large dataset to be returned from webservice. Use a thread in your class to fetch data page by page. Ask your webservice to return the first page. After the first page returned raise a event to your UI to represent the data and then ask your web service to fetch the next data page. However it all depends your requirement.

      I 1 Reply Last reply
      0
      • G Goutam Patra

        I don’t know whether it will solve your purpose but think about a reverse way. Like suppose you have a large dataset to be returned from webservice. Use a thread in your class to fetch data page by page. Ask your webservice to return the first page. After the first page returned raise a event to your UI to represent the data and then ask your web service to fetch the next data page. However it all depends your requirement.

        I Offline
        I Offline
        il_manti
        wrote on last edited by
        #3

        Thanks a lot for your reply. I understand what you mean and will try to suggest it :) Thanks.

        In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)

        1 Reply Last reply
        0
        • I il_manti

          Sup guys. I'm 99% sure this is impossible but my boss keeps asking me about it so I've been researching but to no avail. I really need to verify whether it's possible or not so here goes: I have a webservice which returns a LOT of data in a list of a complex object. Is it even possible to have the webservice push returns? For example: The webservice loops all objects and does something awesome with each. When it finishes with each object it adds it to the final list. How possible is it to push the objects to the front one at a time? Thanks guys.

          In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)

          B Offline
          B Offline
          Brij
          wrote on last edited by
          #4

          I don't think it's possible through webserice.Connecting through webservice is stateless, ie you can not get multiple response from single request. So why dont you make multiple request to service ie for every object, there is one request. But obiously this is not good approach.

          Cheers!! Brij My Blog:http://brijbhushan.wordpress.com
          Check my latest Article :ViewState - Various ways to reduce performance overhead

          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