Speed of Web Services

timothyetimothye Member Posts: 2
edited 2008-10-06 in NAV Three Tier
I've implemented a codeunit which writes a file to disk.

This codeunit is run in the OnRun() method of the codeunit 20 times. When run like this it takes next to no time to run.
However, when I execute it using Webservices 20 times from C# Application then it takes around 5 seconds.

Any ideas where this overhead is coming from?


  • ajhvdbajhvdb Member Posts: 672
    How much time does it take for the webservice to respond?
  • kinekine Member Posts: 12,562
    Cold test or warm up done before test? Do not forgot that first call can take too much time because the cache and other overhead...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • nunomaianunomaia Member Posts: 1,153
    Webservices engine is running over .NET (WCF, etc) technology. In those technologies the first 10 calls or something will slower because .NET engines needs some “warm up”. Then it complies the code internally, etc. (You could about .NET engine optimization)
    Web services it will always be slower than other technology. WS have many XML parsing and validations so it will be always slower then reading directly from database.
    Nuno Maia

    Freelance Dynamics AX
    Blog : http://axnmaia.wordpress.com/
Sign In or Register to comment.