Linqpad beyond Linq

LINQPad is a great way to learn Linq, but there is plenty of information on their site about that: http://linqpad.net/. And I don't need to rehash all the information on their site. Instead, I would like to talk about the ways LINQPad can be used beyond that. I am also going to assume you know what about the Dump function native to LINQPad and general understanding of LINQPad.

Using LINQPad to test ASMX Web Services

Generate the SOAP client -- open "Visual Studio Command Prompt" and run "WSDL url"

Compile the SOAP -- client run "csc /t:library filename generated in previous step"

Add the correct references in LINQPad, one to the library we just created and one to System.Web.Services.dll

Type the necessary code to call the web service, just as you would have normally in Visual Studio

Using LINQPad to call a WCF Service

Generate the client -- open "Visual Studio Command Prompt" and run "SVCUTIL /config:path to LINQPad's config file /mergeConfig url" Note that this will generate the client and will add the necessary settings in LINQPad's config file

Compile the client run "csc /t:library code file generated in previous step"

Add the correct references in LINQPad, one to the library we just created and one to System.ServiceModel.dll

Add the follow code and make adjustments as necessary