SoapExtensions per class

Someone was asking today in the ASP.NET newsgroups if there was an easy way to apply a SoapExtension to a complete WebService-derived class, instead of applying his custom SoapExtensionAttribute-derived attribute class to each and every WebMethod. I looked and, afaics, there isn't one [1], since it seems the runtime won't...

dotnetinterop.com

Mattias Sjögren, friend and fellow MVP, has created a new website dotnetinterop.com full of tips and articles on .NET interop facilities (both P/Invoke and COM Interop). If you're using either one, do yourself a favor and stop by :)

Typed Collections

"Until the next version of the .NET Framework (with generics) is released, you might think that you're stuck with framework collections that are typed for elements of type object. Which opens obvious doorways where buglets can slip through.It doesn't have to be that way - here's some basic boilerplate code...

Assembly.GetExecutingAssembly()

BradA points out the use of Assembly.GetExecutingAssembly().Location to find out the path to the executable. One thing to watch out for is that Assembly.GetExecutingAssembly() can return null under some conditions. Off the top of my head, this very likely will happen if you're not running in the default appdomain, or...

IM

Following Brad's lead, if any of you want to get in touch with me over instant messaging, I'm usually available through MSN Messenger at tomasr@passport.com :)

Messaging or RPC replied

Justin makes some really good points (and question) on his comments on SOAP WebServices. I'd like to reply to some of them, and take the opportunity to ask a few more questions of my own. Justin asks whether my example is really messaging. Well, probably not; but that was something,...

Sam's published!

Congratulations are in order to my friend Sam, who just got his first article in print! Way to go, buddy! It's really exciting to see your name on a magazine cover (well, at least I know it was for me...). Again, congrats, Sam, and keep up the good work. You're...

Stupid Question #1 (keeps on going)

Ali Aghareza posted a reply to my earlier messages with a really insightful example that presents one reason for ASP.NET to change the element name the type is serialized as: when the method returns two different instances of the same type. However, all is not that rosy. If no element...

Stupid Question #1 continued

Christian responds to my earlier question on a comment: "As you are using a Document/literal ASMX based Web Service which aims at *messages* and not *RPCs* (you know this distinction and the ongoing discussions ...), the top element of the serialized instance is just a signal for what kind of...

WebServices Stupid Question #1

I've been playing these last few days with ASP.NET WebServices [1], and, naturally, I've been running into a few snags. Yesterday I ran into what seems to be an inconsistency in the way XML serialization works where WebServices are invoked. Consider this simple ASMX file: <%@ WebService Language="C#" class="WeirdBhv" %>...