I just found out.
New STP May 25th. Teaser here.
So I ran another half marathon. It was the Miami Beach 13.1. Well I attempted to run it. I probably should have stopped when I got foot pain at mile 1. The weather was too nice to pass up…oh well. I got through it and got my medal! I’ll be taking a Brett Favre style retirement from running for a while.
I’m looking forward to running this race again. Hopefully next year I can stay injury free. I’d like to see how I can deal with all the big bridges while not having to deal with pain.
While working on a project today I figured out how to use jQuery’s $.ajax functionality to consume an ASP.NET 1.1 web service. I was always under the impression that this wasn’t possible. However, this is quite easy. By default an ASP.NET 1.1 web service will accept an HTTP GET, HTTP POST, or HTTP SOAP. Calling a 1.1 web service is as easy as:
$.ajax({
type: "POST",
url: 'PathToYourService.asmx/FunctionName',
data: 'foo1=value1&foo2=value&foo3=value',
dataType: "xml",
success: function(xml) {
//do something with your data
}
});
Replace the data variables with your service parameters and you should be all set. jQuery makes parsing all that XML really easy as well.