WebServicesPro News Archives About Us Feedback

Recent Articles

EBay DevCon: PayPal Goes Mobile
After a limpid reception in the US of PayPal's "Text2Buy" and "Text2Give" features, eBay has launched PayPal Mobile Checkout, a platform more closely mirroring...

Optimize HTTP Requests & Web Service Calls
ASP.NET has an outgoing connection limit which is set to 2 connections by default. It means that the ASP.NET process does not create more than 2 concurrent connections simultaneously, but instead queues...

What REST Vs. WS Says About OSS Vs. Traditional...
During the Redmonk unconference at CommunityOne, there was a discussion about whether REST was going to kill Web services (WS*). This discussion followed a discussion on OSS and...

Consuming A WebService With Flash Media Server 2
Here's a very simple example on how to invoke and consume a WSDL webservice using serverside Actionscript. You will need Flash Media Server 2 for...

WDSL & Webresource.axd
Various WDSL (Web Service Description Language) entities exist in a web server.The file is meant to describe what services are available and what the...

Capabilities Of Sybase SqlAnywhere With .NET...
.NET developers can add the powerful capabilities of SQL Anywhere to their applications by using .NET programming interfaces and web services. SQL Anywhere Studio makes the most of the services provided by .NET to let...

Customer-Lead, Trust-based Value Generation Services
This article explains how an enterprise can leverage increased value generation, thereby aiding competitive advantage, by adoption of the `Enterprise Value...

06.28.07


Speed Up Web Services With The SoapDocumentMethod Attribute

By Mads Kristensen

I've done a lot of web services during the last couple of years and I simply love Service Oriented Architecture using SOAP.

The power of using services as a means to create large connected systems are enormous but sometimes it can be a performance bottleneck.

The SOAP protocol in ASP.NET is defined as a response/request operation even if the method returns a void type.

That means that the requesting client waits until it gets a response from the web service and that can take a relative long time.

For simple logging applications or other simple SOAP calls where you aren't interested in waiting for the response, you can achieve performance gains by using the SoapDocumentMethod attribute on the web service methods.

What it does is that it instantly returns HTTP status code 200 OK to the requesting client, so it doesn't have to wait for the entire request to finish processing and it's built directly into the ASP.NET engine.

Process credit card payments anytime, anywhere.
Go Wireless! Click Here for full details.

Here is how to do it:

[WebMethod, SoapDocumentMethod(OneWay = true)]

public void LogError(string errorMessage)

{

  DoSlowOperation(errorMessage);

}


It's not exactly rocket science but it can remove a potential bottleneck.

Comments


About the Author:
Mads Kristensen currently works as a Senior Developer at Traceworks located in Copenhagen, Denmark. Mads graduated from Copenhagen Technical Academy with a multimedia degree in 2003, but has been a professional developer since 2000. His main focus is on ASP.NET but is responsible for Winforms, Windows- and web services in his daily work as well. A true .NET developer with great passion for the simple solution.

http://www.madskristensen.dk/

About WebServicesPro
WebServicesPro delivers news and strategy articles covering the broad scope of what is known as Web Services. Each issue of WebServicesPro is focused on Making Web Services a Reality.

WebServicesPro is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
PerlProNews.com SQLProNews.com
SysAdminNews DevWebPro.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com ITCertificationNews.com


-- WebServicesPro is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 4050
2007 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article


WebServicesPro Home Page About Article Archive News Downloads WebProWorld Forums iEntry Advertise Contact WebProWorld Forum Making Web Services a Reality