xmlProNews News Archives About Us feedback

Recent Articles

Clearing Your SnipEx Cache & CFLib SnipEx Update
While working on some bugs in the CFLib SnipEx server, Mark Drew sent me a great tip on how to clear the cache in CFEclipse. Right now it is a manual process, but Mark will be adding a refresh option to the UI soon.

XML & SGML Standardisation Framework
Extensible Markup Language (XML) is a simple, very flexible text format derived from SGML. Originally designed to meet the challenges of large-scale electronic publishing, XML is also playing an....

ASP.NET 2.0: XML Membership Provider
ASP.NET ships with a SqlMembershipProvider and a ActiveDirectoryMembershipProvider that makes user authentication and authorization very easy to implement, but for some reason those are the only membership providers provided natively by...

Model-Glue & URL Consistency
Someone asked on the Model-Glue mailing list how to keep deal with keeping event handler names and URLs in views consistent, i.e., if they change an event handler name, how can they avoid having to change the...

Dot Net Questions: Xml Reader Class
Xml reader and xml writer comes from namespace system.xml. These classes' help in getting data from xml documents, both of these classes are abstract base classes. The xml reader class helps in to get xml...



Recent WebProNews Articles

Google Starts Shared Storage Service
Google users can boost their available storage for Gmail and Picasa Web Albums to as much as 250GB for an annual fee. Hours after Microsoft opened its Windows Live SkyDrive online storage product beta to all...

Scholars Push For Search Engine Regulation
Here's an idea sure to start some fires: Is it necessary to consider government regulation of search engines? Please hold your throwing-stones until the end of the presentation. A technologically advanced century...

Don't Try Crawling Google News Comments
The newest feature on Google News - comments solicited from participants in a news story - won't be part of anyone else's news. When AOL broke down its subscriber walls, it looked like the end of walled garden content models on the Internet. They have...

Seven More Questions About SEO
Rand Fishkin followed up his original ten questions (plus bonus) on SEO knowledge with the answers, and some new questions from Danny Sullivan for everyone's perusal. If you knew about the big four search...

Google Seeks Edge In Voice Traffic Talks
As part of Google's ongoing efforts to broaden its network, the company has been actively seeking strategic negotiators for submarine networks, and for IP transit services. As part of Google's ongoing efforts to...


08.10.07


Ping Using XML-RPC In ASP.NET

by Mads Kristensen

Many blogs have the ability to ping different ping-services, such as Ping-o-Matic, Feedburner and Technorati, whenever some content is created or updated.

But it is not only blogs who can benefit from pinging these services. Almost all websites that is updated regularly can use this technique.

All these services use XML-RPC and the exact same format, so you can write a ping class ones and then just add whatever ping service URL later. I've written a very simple static ping class that can be used in any ASP.NET application.

The code

Here is the the three methods needed to send XML-RPC pings.







Implementation

Download the class below and drop it into the App_Code folder or a class library. Then from anywhere in your ASP.NET project you can use the class by calling the Send method like so:



Because it can take some time to ping all the different services, you might want to consider doing it asynchronously. Here is how to do that. That's it. Now you have a class that pings various services using XML-RPC. You can find a full list of available ping services here.

PingService.zip (816 bytes)

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 xmlProNews
xmlProNews is a collection of news and commentary designed to keep you in step with the ever evolving landscape of XML environments. News and Advice for XML Professionals

xmlProNews is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com SysAdminNews.com


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

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