Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / February 2005

Tip: Looking for answers? Try searching our database.

Web Service Performance seems very slow.  Please help!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ken Varn - 28 Jan 2005 20:56 GMT
I have just started playing around with Web Services.  I created a sample
Web Service and invoked a sample "Hello World" method call from my Win Forms
control running under an ASP.NET web page.  The time it takes to return the
result seems a little bit much.  It takes anywhere from 500 to 800
milliseconds to return a simple "Hello World" string message.  This is even
running it on localhost.  Is this normal for the request to take this long?
If not, what can I do to make it faster?

Here is an example of my calling logic:

     private void DoCall()
     {
           String ServiceText;
           ICredentials myCred;
           MyWebService TestService = new MyWebService();

          myCred = new NetworkCredential("userid","password");
          TestService.Credentials = myCred;

          ServiceText = TestService.HelloWorld();       // This call seems
very slow.
    }

Signature

-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------

Ken Varn - 01 Feb 2005 14:18 GMT
I solved my own problem.  I saw a KB article (810814) on the subject in .NET
Framework 1.0.  The solution still applies to 1.1 when it comes to the
machine.config settings.  I had to add the following to machine.config to
help speed it up.

<system.net>
   <settings>
       <servicePointManager useNagleAlgorithm="false"/>
       <servicePointManager expect100Continue="false"/>
   </settings>
</system.net>

The performance increase was substantial with these settings in place.  Not
sure if there are any other ramifications to using these settings.

Signature

-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------

> I have just started playing around with Web Services.  I created a sample
> Web Service and invoked a sample "Hello World" method call from my Win Forms
[quoted text clipped - 18 lines]
> very slow.
>      }

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.