The Twisted Irony

I just realized I often complain about the bad reliability of my SprintPCS Phone.  So does my SO Joleen.  We both complain regularly about this fundamental to our lives piece of technology.  However, because of the unreliable nature of wireless at coffee shops, the unreliable nature of Vista to stay connected, I have a wireless SprintPCS card to connect with.

That’s just odd, to use a semi-unreliable service to back up another semi-unreliable service!  😐  hmpf.

Just ponder on that…  the strange things we do to maintain connectivity, us geeks and nerds.

Debugging ADO.NET Data Services :: Tip o' The Day

I haven’t written up a tip o’ the day in ages, so it was about time that I ran smack into one.  While working with ADO.NET Data Services I kept getting this AWESOME error message!

An error occurred while processing this request.

That being one of the most awesome, fully articulate, well written, useful, cool error messages ever created!

Ok, so if you’re like me, and you’d actually like some idea of the underlying error, then here’s the trick.  First, grab that web.config and make sure your services have the appropriate debugging attributes.

   1:    <system.serviceModel>
   2:      <behaviors>
   3:        <serviceBehaviors >
   4:          <behavior name="DebugEnabled">
   5:            <serviceDebug includeExceptionDetailInFaults="True"/>
   6:          </behavior>
   7:        </serviceBehaviors>
   8:        <endpointBehaviors>
   9:          <behavior name="TheReporter.AjaxConnectionServiceAspNetAjaxBehavior">
  10:            <enableWebScript/>
  11:          </behavior>
  12:          <behavior name="TheReporter.Services.AjaxConnectorServicesAspNetAjaxBehavior">
  13:            <enableWebScript/>
  14:          </behavior>
  15:        </endpointBehaviors>
  16:      </behaviors>
  17:      <services>
  18:        <service name="TheReporter.AjaxConnectionService" behaviorConfiguration ="DebugEnabled">
  19:          <endpoint address="" behaviorConfiguration="TheReporter.AjaxConnectionServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="TheReporter.AjaxConnectionService"/>
  20:        </service>
  21:        <service name="TheReporter.Services.AjaxConnectorServices" behaviorConfiguration ="DebugEnabled">
  22:          <endpoint address="" behaviorConfiguration="TheReporter.Services.AjaxConnectorServicesAspNetAjaxBehavior" binding="webHttpBinding" contract="TheReporter.Services.AjaxConnectorServices"/>
  23:        </service>
  24:      </services>
  25:      <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
  26:    </system.serviceModel>

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

Note the attributes that have words like "debugged" in them.  Throw those in and you’re probably set.  Another thing you can do is to throw in the following code in your actual data service to enable verbose debugging.

   1:      public class RssStorageService : DataService<RssStoreEntities>
   2:      {
   3:          public static void InitializeService(IDataServiceConfiguration config)
   4:          {
   5:              config.UseVerboseErrors = true;
   6:              config.SetEntitySetAccessRule("*", EntitySetRights.All);
   7:          }
   8:      }

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

So that should provide some reasonable error messages instead of the awesome one at the top of this here post.   …Oh but wait, there’s more!  One last tip for this tip is the code attribute tag.  Throw this onto a particular method to add verbose debugging.

   1:  [System.ServiceModel.ServiceBehavior(IncludeExceptionDetailInFaults = true)] 

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

(I snagged these last two from here, the first part of this tip I snagged from here.)

Logging ADO.NET Data Services Research – Part 2

Building out the Client

(Skip further down in the entry if you don’t want to read the rant & just want working code!)

Once I did this I started working on the client piece to consume these services. First start up the Visual Studio Command Prompt.  Unfortunately at this point, it is off to the command prompt for use of the WebDataGen.exe. I looked diligently all over the Internet, then found out on "Making Webdatagen data-binding friendly" that the stupid executable had been renamed to datasvcutil.exe. Thanks for making it all that much more confusing and disorientating. This is starting to remind me of open source – everything is always changing. But I digress. After a quick search I found a good reference use of it in the entry "Visual Studio 2008 SP1: Querying and ADO.NET Data Service via .NET Client".

So I found this tool and used it with the following command.

datasvcutil.exe /uri:http://localhost:50681/Services/ReporterServices.svc/ /out:"C:\Users\Adron\Documents\Visual Studio 2008\Projects\Reporter\ReporterSilverlight\ReporterClientEntities.cs"

This class gives you some nice entities to deal with. Even able to use LINQ to ADO.NET Data Services at this point. Very cool. So now add the file to the project. I ran the command above so it would specifically put the file into the area were the project is located, but I still had to "Add Existing…" file and select it from the folder structure.

I built the project like an idiot at this point thinking it would build.  I didn’t realize there was missing assemblies so I went researching again.  I found that I needed to add the reference to the System.Data.Services.Client assembly.  Once I did that the build was clean again.  One other thing I did was clean up the namespace.  When I brought the file into the project the namespace was "FeedCollectorModel" but my project namespace is ReporterSilverlight.  Since I’m sort of a stickler for using namespaces appropriately and in parallel with actual project structure I changed that to reflect the actual location.

Note:  Nasty code… Lots of code…

When I really kind of dug through he generated code that the datasvcutil.exe created I wasn’t too happy.  It is generated code so I don’t honestly care, but just looking at all this mess, I’d dread needing to actually find something or troubleshoot it.  Overall, for the few basic views and tables above the executable generated 1400+ lines of code.  Not exactly a quick read, but I digress, we’ll just pretend like usual to know exactly what all the generated code does.

So now that I have the client side objects I’m ready to do some querying against the services and present the data.  Well, that’s what I thought.  I was horribly wrong.  It appears that Microsoft, in their absolute wisdom renamed, removed, and changed a few things around to make this an extremely annoying effort.  Everything up until this point has been fairly smooth, it all changed here.

First I was supposed to be able to use LINQ to query against the data services, that didn’t go over too well.  I got continued reports of "ToList()" isn’t implemented on this class.  Blagh blag blagh, bunch of crap, I USED the tool that Microsoft provides to make the classes, the "datasvcutil.exe".  Maybe I needed to RTFM again but I just wanted to bloody freaking data and it wasn’t working.  So I moved to the next option.

At this point I was so aggravated with the crappy "datasvcutil.exe" that I completely deleted the file.  There HAD to be a better way to do this and if I had to, I’d hand write some code just to assure that I understood what the problem was.

The next option was this WebDataContext.  Well I typed it into Visual Studio thinking I’d have the reference, nope.  Wrong again I was.  Did ReSharper find it?  Nope, it didn’t find it either, which really meant there was an issue.  Now keep in mind, I have SP1 for VS.NET 08, SP1 for Vista, and SP1 for .NET 3.5.  I have ALL of the updates one is supposed to have.  But I don’t have any references to WebDataContext.  I do a search and find out that there is supposed to be an assembly called Microsoft.Data.WebClient.  I look for it and find nothing.  This doesn’t bode well at this point.

I dive back into the web.  After a search for the dll itself, the first item is someone with the same issue, not being able to add the reference, stating it isn’t in the list to add.  The second item that returns is a spyware add for the dll.  At this point I’m really thinking this can’t be good.  All I want is some freaking data!  I checked out the first link and got nothing useful.  The question was asked a year ago.  This is par for the course with the ASP.NET Forums.  So again, I start diving into the other results.  I also pop up another tab and do a search directly on the MSDN Site.

I finally stumble on this page, after searching on Microsoft’s site, that these files have all been renamed.  In all seriousness, I don’t care how smart anyone is at Microsoft, this is blatantly STUPID to whimsically rename so many files on such a frequent basis.  STOP RENAMING stuff.  It’s annoying and makes me want to go develop Ruby on Rails – right when Microsoft is trying desperately to get back some of that audience.

Anyway, I digress… (Skip to here)

After fighting with these other, misnamed things from Astoria, I finally dug around on the MSDN site and got things straightened out.

At first, since you couldn’t in the past, I thought I would not be able to just make a web service reference within the Silverlight Project.  Well as of some point between the past and the deluge of SP1s, you now can.  With that newfound knowledge I went right to making a web service reference and getting the proxy built.  Thank goodness for keeping it simple – I knew that there had to be an easier way.

After adding the web service reference I added a Silverlight DataGrid to the main page.  With the DataGrid the completed XAML looked like this.

 

 

 

 

 

 

   1:  <UserControl xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"  x:Class="ReporterSilverlight.Page"
   2:      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
   3:      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
   4:      Width="400" Height="300">
   5:      <Grid x:Name="LayoutRoot" Background="White">
   6:          <data:DataGrid x:Name="grid"></data:DataGrid>
   7:      </Grid>
   8:  </UserControl>

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

I then simply added the following code to the Page.xaml.cs file.  Guess what happened?

   1:  using System;
   2:  using System.Data.Services.Client;
   3:  using System.Linq;
   4:  using System.Windows.Controls;
   5:  using ReporterSilverlight.FeedCollectionService;
   6:   
   7:  namespace ReporterSilverlight
   8:  {
   9:      public partial class Page : UserControl
  10:      {
  11:          private readonly FeedCollectorEntities svc =
  12:              new FeedCollectorEntities(new Uri("Services/ReporterServices.svc/", UriKind.Relative));
  13:   
  14:          public Page()
  15:          {
  16:              InitializeComponent();
  17:   
  18:              var fd = (from f in svc.RssFeeds
  19:                        select f) as DataServiceQuery<RssFeeds>;
  20:   
  21:              if (fd != null) fd.BeginExecute((ar) => grid.ItemsSource = fd.EndExecute(ar).ToList(), null);
  22:          }
  23:      }
  24:  }

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

You got it, it worked.  Didn’t expect that?  I almost didn’t either considering the poor fortune I was having trying to get everything working before.  At this point though, everything became smooth sailing.

The data showed up in the grid as expected.

Last Note of the Day…

Also check out this application called Fiddler 2. It allows one to craft web requests and submit them manually. A video on how to use Fiddler is available also.  This comes in really handy when you want to make sure a service is working.

Logging ADO.NET Data Services Research – Part 1

I started digging through ADO.NET Data Services for work related items and this is my research so far. So far setting up a ADO.NET Data Services Service (redundant?) is super easy. There are several "Getting Started with ADO.NET Data Services" write ups out there; "Introduction to ADO.NET Data Services", "ADO.NET Data Services with ASP.NET AJAX Support", and others. One that has given me gruff so far is "Using ADO.NET Data Services" in the MSDN Documentation. It appears that parts of the code are misplaced and commented, in addition it doesn’t work. I’ve tried it on several boxes just as the tutorial states and it just doesn’t provide the feed. The error generally seems to be,

Server Error in ‘/’ Application.

The type ‘CustomDataService.ContactsListing’, provided as the Service attribute value in the ServiceHost directive could not be found.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The type ‘CustomDataService.ContactsListing’, provided as the Service attribute value in the ServiceHost directive could not be found.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

    

[InvalidOperationException: The type ‘CustomDataService.ContactsListing’, provided as the Service attribute value in the ServiceHost directive could not be found.]

System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +4072062

System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +11656092

System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +42

System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +479

    

[ServiceActivationException: The service ‘/ContactsListing.svc’ cannot be activated due to an exception during compilation. The exception message is: The type ‘CustomDataService.ContactsListing’, provided as the Service attribute value in the ServiceHost directive could not be found..]

System.ServiceModel.AsyncResult.End(IAsyncResult result) +11527290

System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +194

System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) +176

System.ServiceModel.Activation.HttpHandler.ProcessRequest(HttpContext context) +23

System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181

System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

    

Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

The Astoria Team Blog article "ADO.NET Data Services Concepts", which is generally pretty good so take a read, also has a link to this MSDN and other information. They also have an entry on the upcoming "Astoria Offline" that is coming soon – this should be interesting.

A Tutorial on ADO.NET Data Access Services

Project FilesWithout a working test I went
out on my own and did the following. First I created a Visual Studio Solution and added several project types to it;  An ASP.NET MVC Web Application & respective Unit Test Project, a Database Project, and finally a Silverlight 2 Project that I selected the ASP.NET MVC as the host for the Silverlight 2 Page.  Overall the solution looked something like the image to the left.  Click on the image to see a full size and for clarity.

Inside the ReporterMvc Project I created a new folder called Services.  This is the folder I’ll actually place the ADO.NET Data Services in to keep the overall project orderly.

After I created the projects I setup the database for use.  I created the database previously so I already had a generation script.  So I went ahead and created the database via the Service Explorer Wizard in Visual Studio and then ran the script I have.  The script is listed separately on the code page.

Next I created an ADO.NET Entity Data Model & associated entity objects.  Create these objects inside the Models directory.  During the course of the wizard be sure to select all of the tables and views.

.smugcontainer div {overflow: hidden;line-height: 1.1;margin-top: 10px;font-family: verdana, arial, lucida, sans-serif;font-size: 85%;background-color1: rgb(20, 20, 20);}
.smugimg li {float: left;display: block;width: 160px;height: 200px;background-position: 50% 50%;margin-right: 10px;margin-bottom: 10px;}
.smugimg li img {width: auto; height: auto; border: solid 1px #aaa; background: #555; padding: 2px; vertical-align: middle;}
.smugimg a {display: block;text-align: center;text-decoration: none; color1: rgb(240,240,240);}
.smugimg a:hover img {border: 3px solid #6da6d1; padding: 0px;}

.smugcontainer div {overflow: hidden;line-height: 1.1;margin-top: 10px;font-family: verdana, arial, lucida, sans-serif;font-size: 85%;background-color1: rgb(20, 20, 20);}
.smugimg li {float: left;display: block;width: 160px;height: 200px;background-position: 50% 50%;margin-right: 10px;margin-bottom: 10px;}
.smugimg li img {width: auto; height: auto; border: solid 1px #aaa; background: #555; padding: 2px; vertical-align: middle;}
.smugimg a {display: block;text-align: center;text-decoration: none; color1: rgb(240,240,240);}
.smugimg a:hover img {border: 3px solid #6da6d1; padding: 0px;}

To update or add tables I just right click on the empty white space around the entities and select the "Update Model from Database…" option. Follow the instructions on the dialog that appears, it will be the same as the wizard shown above.  What I ended up with is as shown.

Next I added the ADO.NET Web Service to the project. With both of those added I now had the following in my project;  FeedCollector.edmx in the models directory and ReporterServices.svc in the Services directory.

I opened up the FeedCollector.edmx.cs file to verify that the class was actually named FeedCollectorEntities.  When you open up the designer code file it will look like the code listed below (I’ve just cut the first 41 lines of generated code.  I bolded the class name just for familiarity.  If ever in doubt about what type you’ll pass in the data services, this is how one can easily find it.

   1:  //------------------------------------------------------------------------------
   2:  // <auto-generated>
   3:  //     This code was generated by a tool.
   4:  //     Runtime Version:2.0.50727.3053
   5:  //
   6:  //     Changes to this file may cause incorrect behavior and will be lost if
   7:  //     the code is regenerated.
   8:  // </auto-generated>
   9:  //------------------------------------------------------------------------------
  10:   
  11:  [assembly: global::System.Data.Objects.DataClasses.EdmSchemaAttribute()]
  12:  [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("FeedCollectorModel", "FK_RssFeedEntries_RssFeeds", "RssFeeds", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(ReporterMvc.Models.RssFeeds), "RssFeedEntries", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(ReporterMvc.Models.RssFeedEntries))]
  13:  [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("FeedCollectorModel", "FK_RssFeedEntryCategories_RssFeedEntries", "RssFeedEntries", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(ReporterMvc.Models.RssFeedEntries), "RssFeedEntryCategories", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(ReporterMvc.Models.RssFeedEntryCategories))]
  14:  [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("FeedCollectorModel", "FK_RssFeedEntryTags_RssFeedEntries", "RssFeedEntries", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(ReporterMvc.Models.RssFeedEntries), "RssFeedEntryTags", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(ReporterMvc.Models.RssFeedEntryTags))]
  15:   
  16:  // Original file name:
  17:  // Generation date: 11/22/2008 11:27:18 AM
  18:  namespace ReporterMvc.Models
  19:  {
  20:      
  21:      /// <summary>
  22:      /// There are no comments for FeedCollectorEntities in the schema.
  23:      /// </summary>
  24:      public partial class FeedCollectorEntities : global::System.Data.Objects.ObjectContext
  25:      {
  26:          /// <summary>
  27:          /// Initializes a new FeedCollectorEntities object using the connection string found in the 'FeedCollectorEntities' section of the application configuration file.
  28:          /// </summary>
  29:          public FeedCollectorEntities() : 
  30:                  base("name=FeedCollectorEntities", "FeedCollectorEntities")
  31:          {
  32:              this.OnContextCreated();
  33:          }
  34:          /// <summary>
  35:          /// Initialize a new FeedCollectorEntities object.
  36:          /// </summary>
  37:          public FeedCollectorEntities(string connectionString) : 
  38:                  base(connectionString, "FeedCollectorEntities")
  39:          {
  40:              this.OnContextCreated();
  41:          }

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

After that I opened up the code behind and stuck in a few key elements of code.  This allows the service to be opened up to an requestor of the service.

   1:  using System.Data.Services;
   2:  using ReporterMvc.Models;
   3:   
   4:  namespace ReporterMvc.Services
   5:  {
   6:      public class ReporterServices : DataService<FeedCollectorEntities>
   7:      {
   8:          public static void InitializeService(IDataServiceConfiguration config)
   9:          {
  10:              config.SetEntitySetAccessRule("*", EntitySetRights.All);
  11:          }
  12:      }
  13:  }

The next thing I’ve tried is the ways to query via REST. I like the "Introduction to ADO.NET Data Services Part 2" entry that Greg Galipeau has written on his blog. For my test I went against some of my work related data. One of the things that bugs me though is the http://somedomain/stuff.svc/ being used for the REST address. I want it to just be http://somedomain/stuff/.

With just these simple actions I then checked the service to assure I was getting back accurate results.  I right clicked on the file and selected Browse.  The following were the results.

<service xml:base="http://localhost:50681/Services/ReporterServices.svc/">
<workspace>
<atom:title>Default</atom:title>
<collection href="RssFeedEntries">
<atom:title>RssFeedEntries</atom:title>
</collection>
<collection href="RssFeedEntryCategories">
<atom:title>RssFeedEntryCategories</atom:title>
</collection>
<collection href="RssFeedEntryTags">
<atom:title>RssFeedEntryTags</atom:title>
</collection>
<collection href="RssFeeds">
<atom:title>RssFeeds</atom:title>
</collection>
<collection href="RssEntriesCategoriesTags">
<atom:title>RssEntriesCategoriesTags</atom:title>
</collection>
<collection href="RssFeedsEntries">
<atom:title>RssFeedsEntries</atom:title>
</collection>
<collection href="RssFeedsEntriesTagsCategories">
<atom:title>RssFeedsEntriesTagsCategories</atom:title>
</collection>
</workspace>
</service>

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

This was perfect, exactly what I expected.  I did a few further tests.  The URI that I started with was http://localhost:6your6port6here/ResporterServices.svc/ which is what gave me the results above.  If you take any of the <atom:title/> attributes and pass them into the URI you’ll get the respective results.  For example I tested out the RssFeeds (http://localhost:6your6port6here/Services/ReporterServices.svc/RssFeeds/) and received the appropriate results.  When checking the results in IE make sure to turn off the feed options.  In Opera you get the straight feed, which is handy.

If you have to pick a browser to test this with, I prefer Opera.  The results are uber clean compared to the other browsers and you don’t have to go clicking options or selecting to not feed the atom results.  An example of the results.

 

In part 2 I’ll show how to wire up a Silverlight 2 Client to these data services.

Great Customer Service Remarks

Eric (@ericgerhardt on twitter or here) found some broken data and reported the problem.

Dear customer: we were going to deliver your data but we found it melted on the limb of a dead tree in an infinite wasteland.

Just classic, all I can say.