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. General Programming
  3. .NET (Core and Framework)
  4. Web Service Problem !!! Help !!!

Web Service Problem !!! Help !!!

Scheduled Pinned Locked Moved .NET (Core and Framework)
helpquestion
5 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.
  • S Offline
    S Offline
    Sanjeev Kumar
    wrote on last edited by
    #1

    I have problem with calling websevice method Asyncronously using WebService behavior. I can not make more than two request simultaneously to webservice. If I call webservice method 3rd time, it won't event go to web service until response of 1st or 2nd is received. But if I use the same web service in a windows application using Proxy. I can invoke web service method any number of times Asyncronously without waiting for response for the pervious calls. Does anyone know why its behaving like this? Is there any way to solve this problem? Thanks in advance. Sanjeev

    A D 2 Replies Last reply
    0
    • S Sanjeev Kumar

      I have problem with calling websevice method Asyncronously using WebService behavior. I can not make more than two request simultaneously to webservice. If I call webservice method 3rd time, it won't event go to web service until response of 1st or 2nd is received. But if I use the same web service in a windows application using Proxy. I can invoke web service method any number of times Asyncronously without waiting for response for the pervious calls. Does anyone know why its behaving like this? Is there any way to solve this problem? Thanks in advance. Sanjeev

      A Offline
      A Offline
      abc
      wrote on last edited by
      #2

      Sanjeev Kumar wrote: If I call webservice method 3rd time, it won't event go to web service until response of 1st or 2nd is received. Is it possible that the web server only has 2 threads handling requests from users?

      1 Reply Last reply
      0
      • S Sanjeev Kumar

        I have problem with calling websevice method Asyncronously using WebService behavior. I can not make more than two request simultaneously to webservice. If I call webservice method 3rd time, it won't event go to web service until response of 1st or 2nd is received. But if I use the same web service in a windows application using Proxy. I can invoke web service method any number of times Asyncronously without waiting for response for the pervious calls. Does anyone know why its behaving like this? Is there any way to solve this problem? Thanks in advance. Sanjeev

        D Offline
        D Offline
        Daniel Turini
        wrote on last edited by
        #3

        The problem is not on the WebService, it's on the client. On the client, check the System.Net.ServicePoint.ConnectionLimit, it defaults to 2. Does this number raises an "A-HA" on you? :)


        It's not the fall that kills you: it's the sudden stop - Down by Law, Jim Jamursch (1986)

        S 1 Reply Last reply
        0
        • D Daniel Turini

          The problem is not on the WebService, it's on the client. On the client, check the System.Net.ServicePoint.ConnectionLimit, it defaults to 2. Does this number raises an "A-HA" on you? :)


          It's not the fall that kills you: it's the sudden stop - Down by Law, Jim Jamursch (1986)

          S Offline
          S Offline
          Sanjeev Kumar
          wrote on last edited by
          #4

          Then, why it works with windows application? How to check ServicePoint.ConnectionLimit in ASP Application ? Thanks sanjeev

          D 1 Reply Last reply
          0
          • S Sanjeev Kumar

            Then, why it works with windows application? How to check ServicePoint.ConnectionLimit in ASP Application ? Thanks sanjeev

            D Offline
            D Offline
            Daniel Turini
            wrote on last edited by
            #5

            Sanjeev Kumar wrote: Then, why it works with windows application? Because probably you are passing through a proxy, which only supports HTTP/1.0 forwarding, and in this case, the default connection limit is 4. Check the documentation for ServicePointManager.DefaultPersistentConnectionLimit and ServicePointManager.DefaultNonPersistentConnectionLimit to see this difference. Sanjeev Kumar wrote: How to check ServicePoint.ConnectionLimit in ASP Application ? Just print the damn thing! :)


            It's not the fall that kills you: it's the sudden stop - Down by Law, Jim Jamursch (1986)

            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