Errata

RESTful .NET

Errata for RESTful .NET

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Printed
Page 14
figure1-3

See 'Service' box on the right of the diagram. The correct text for the 200 status code should be 'OK' instead of 'Created'.

Anonymous  Jan 24, 2009 
Printed
Page 24
Example 2-2

Great work in explaining REST in the first chapters. I found only one minor omission in preparing the reader for configuring up WCF to use a host such as Internet Information Services (IIS).

When the reader runs the first sample they would get the error:
HTTP could not register URL http://+:8889/TestHttp/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details).

The solution is explained on the Microsoft link. But I thought it would be nice to prepare the reader for this error so that to avoid any interruption in their experience.

Phillip Williams  Feb 14, 2009 
Printed
Page 236
Code sample 11-17

The code in example 11-17 has a serious bug. The ETag created isn't quoted (as required by the specification) this may cause problems with certain clients. The code should look like this:

string GenerateETag(User u)
{
byte[] bytes = Encoding.UTF8.GetBytes(u.UserId + u.LastModified.ToString());
byte[] hash = MD5.Create().ComputeHash(bytes);
string etag = Convert.ToBase64String(hash);
return string.Format("\"{0}\"", etag);
}

Jon Flanders
 
Mar 18, 2009