web service to handle multiple requests RRS feed

  • Question

  • User-2052822780 posted


    I have a windows form with a single button. When user clicks on the button, i am calling a web service which accepts 10 parameters. The web service retrieves data from oracle db and generates a pdf and the pdf is saved in the path specified in app config file.

    When I am calling the web service once, the expected pdf is generated. But, when I am increasing the number of web service calls to 10, I am not able to get 10 pdf's. Only 5-6 are saved and the remaining are discarded.

    Can anyone please suggest me a solution to this problem.

    The pdf generation process is coded in the web service and the call to the database is handled asynchronously.

    Thanks in advance.


    Tuesday, August 6, 2013 7:56 AM


  • User-776477372 posted

    protected String YourMethodName()


               object ReadLock = new Object();



                      lock (ReadLock)



                              //then your all code of pdf








    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, August 7, 2013 1:25 AM

All replies