<?xml version="1.0" encoding="utf-8"?>
<feed xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom">
  <title>Santos Ray Victorero, II !</title>
  <link rel="alternate" type="text/html" href="http://www.blogs.victorero.com/" />
  <link rel="self" href="http://www.blogs.victorero.com/SyndicationService.asmx/GetAtom" />
  <icon>favicon.ico</icon>
  <updated>2011-09-03T16:03:49.375-04:00</updated>
  <author>
    <name>Copyright (c) 2005 - 2010 by Santos Ray Victorero, II</name>
  </author>
  <subtitle>There is no business like cyber-business</subtitle>
  <id>http://www.blogs.victorero.com/</id>
  <generator uri="http://dasblog.info/" version="2.2.8279.16125">DasBlog</generator>
  <entry>
    <title>Simple Windows Console Client for The Smart Shopping List</title>
    <link rel="alternate" type="text/html" href="http://www.blogs.victorero.com/2011/09/03/SimpleWindowsConsoleClientForTheSmartShoppingList.aspx" />
    <id>http://www.blogs.victorero.com/PermaLink,guid,3e6b5339-351c-414e-8fd3-e6cfa75c0391.aspx</id>
    <published>2011-09-03T16:03:49.375-04:00</published>
    <updated>2011-09-03T16:03:49.375-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
In this post I want to show you how to create a very simple Windows Console client
for <a title="The Smart Shopping List" href="http://smartshoppinglist.net" target="_blank">The
Smart Shopping List</a> using Visual Studio &amp; the <a title="RestSharp Library" href="http://restsharp.org" target="_blank">RestSharp</a> REST
library.
</p>
        <ul>
          <li>
Create a Windows Console Application using Visual Studio</li>
        </ul>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/Creating-a-Windows_CF44/image_2.png">
            <img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/Creating-a-Windows_CF44/image_thumb.png" width="244" height="187" />
          </a>
        </p>
        <p>
 
</p>
        <ul>
          <li>
Download <a title="RestSharp Library" href="http://restsharp.org" target="_blank">RestSharp</a> <a title="Nuget.org" href="http://nuget.org" target="_blank">Nuget</a> Package 
</li>
        </ul>
        <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/Creating-a-Windows_CF44/image_6.png">
          <img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/Creating-a-Windows_CF44/image_thumb_2.png" width="244" height="187" />
        </a>
        <p>
 
</p>
        <ul>
          <li>
Add the following code</li>
        </ul>
        <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/Creating-a-Windows_CF44/image_8.png">
          <img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/Creating-a-Windows_CF44/image_thumb_3.png" width="244" height="187" />
        </a>
        <p>
 
</p>
        <ul>
          <li>
When you build &amp; run the application you should get an output similar to this:</li>
        </ul>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/Creating-a-Windows_CF44/image_10.png">
            <img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/Creating-a-Windows_CF44/image_thumb_4.png" width="244" height="36" />
          </a>
        </p>
        <p>
You could also create, read, update &amp; delete (CRUD) Stores, Product Categories,
Products &amp; Shopping List. Please check this <a title="The Smart ShoppingList Web Api" href="http://www.blogs.victorero.com/2011/07/20/TheSmartShoppingListWebApi.aspx" target="_blank">post</a> for
more information.    
</p>
        <img width="0" height="0" src="http://www.blogs.victorero.com/aggbug.ashx?id=3e6b5339-351c-414e-8fd3-e6cfa75c0391" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Test Driving The Smart Shopping List Web Api</title>
    <link rel="alternate" type="text/html" href="http://www.blogs.victorero.com/2011/09/02/TestDrivingTheSmartShoppingListWebApi.aspx" />
    <id>http://www.blogs.victorero.com/PermaLink,guid,0c5b948f-aed8-4a30-9b74-1af461bd187a.aspx</id>
    <published>2011-09-02T12:29:35.3125-04:00</published>
    <updated>2011-09-02T13:08:00.5-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
You can access The Smart Shopping List Web Api from any client as follows:
</p>
        <ul>
          <li>
Join/Register to use <a href="http://smartshoppinglist.net" target="_blank">The Smart
Shopping List</a></li>
        </ul>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/adb01e01b07d_ABA9/image_4.png">
            <img style="background-image: none; border-right-width: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/adb01e01b07d_ABA9/image_thumb_1.png" width="244" height="189" />
          </a>
        </p>
        <ul>
          <li>
On the Edit Shopper screen press Save 
</li>
        </ul>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/adb01e01b07d_ABA9/image_6.png">
            <img style="background-image: none; border-right-width: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/adb01e01b07d_ABA9/image_thumb_2.png" width="244" height="189" />
          </a>
        </p>
        <ul>
          <li>
When The Smart Shopping List Home page displays then you are registered 
</li>
        </ul>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/adb01e01b07d_ABA9/image_8.png">
            <img style="background-image: none; border-right-width: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/adb01e01b07d_ABA9/image_thumb_3.png" width="244" height="189" />
          </a>
        </p>
        <ul>
          <li>
Now point your favorite client to <a href="http://www.blogs.victorero.com/ct.ashx?id=42f3eee9-399c-45d5-b867-e323eacf3ccb&amp;url=https%3a%2f%2fwebapi.smartshoppinglist.net">https://webapi.smartshoppinglist.net</a> and
provide the following headers: 
</li>
        </ul>
        <blockquote>
          <p>
Accept: application/vnd.cyberbizsoft.ssl+xml
</p>
          <p>
Authorization: Basic Your-User-ID:Your-Password (Base64 encoded)
</p>
        </blockquote>
        <blockquote>
          <p>
When using POST, PUT &amp; DELETE you must also add:
</p>
        </blockquote>
        <blockquote>
          <p>
Content-Type: application/vnd.cyberbizsoft.ssl+xml
</p>
        </blockquote>
        <p>
          <img src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/1a00cc0a3972_B196/image_2.png" />
        </p>
        <p>
The entry point will provide the links that are available and as you add stores, products,
etc. the application state will be updated.
</p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/adb01e01b07d_ABA9/image_10.png">
            <img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/adb01e01b07d_ABA9/image_thumb_4.png" width="244" height="187" />
          </a>
        </p>
        <img width="0" height="0" src="http://www.blogs.victorero.com/aggbug.ashx?id=0c5b948f-aed8-4a30-9b74-1af461bd187a" />
      </div>
    </content>
  </entry>
  <entry>
    <title>The Smart Shopping List Web Api</title>
    <link rel="alternate" type="text/html" href="http://www.blogs.victorero.com/2011/07/20/TheSmartShoppingListWebApi.aspx" />
    <id>http://www.blogs.victorero.com/PermaLink,guid,42f3eee9-399c-45d5-b867-e323eacf3ccb.aspx</id>
    <published>2011-07-19T23:07:07.8125-04:00</published>
    <updated>2011-07-19T23:18:20.0625-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
On a previous <a href="http://www.blogs.victorero.com/2011/03/15/RESTfullWebServices.aspx" target="_blank">post</a> I
outlined a procedure for implementing ReSTful Web Services. In this post I will expand
that outline with the design/implementation of a Web Api for <a href="http://smartshoppinglist.net" target="_blank">The
Smart Shopping List</a>.
</p>
        <p>
Figure 1 shows a class diagram of the simple domain model for The Smart Shopping List.
</p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/1a00cc0a3972_B196/SSLDomain_4.jpg">
            <img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="SSLDomain" border="0" alt="SSLDomain" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/1a00cc0a3972_B196/SSLDomain_thumb_1.jpg" width="244" height="213" />
          </a>
        </p>
        <p>
Figure 1. The Smart Shopping List domain model
</p>
        <p>
As you can see we have a Shopper that could have zero to many Stores and also zero
to many Shopping Lists.
</p>
        <p>
Each Store could have zero to many Product Categories and also zero to many Products.
</p>
        <p>
Each Shopping List could have zero to many Products along with some other information.
</p>
        <p>
Figure 2 shows a class diagram of the logical resources that will represent our Web
Api.
</p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/1a00cc0a3972_B196/SSLResources_4.jpg">
            <img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="SSLResources" border="0" alt="SSLResources" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/1a00cc0a3972_B196/SSLResources_thumb_1.jpg" width="244" height="213" />
          </a>
        </p>
        <p>
Figure 2.The Smart Shopping List Resource Model
</p>
        <p>
We have one entry point logical resource named Smart Shopping List, that advertises
the Store  &amp; the Shopping List logical resources for each Shopper. 
</p>
        <p>
The Store logical resource contains two logical sub-resources Product Category &amp;
Product  and the Shopping List logical resource has one Detail logical sub-resource.
</p>
        <p>
Those logical resources and sub-resources are named by their Uris as depicted in Table
1.
</p>
        <table border="1" cellspacing="0" cellpadding="2" width="600">
          <tbody>
            <tr>
              <td valign="top" width="300" align="center">
                <strong>Logical Resource</strong>
              </td>
              <td valign="top" width="298" align="center">
                <strong>Uri</strong>
              </td>
            </tr>
            <tr>
              <td valign="top" width="300">
SmartShoppingListResource</td>
              <td valign="top" width="298">
""</td>
            </tr>
            <tr>
              <td valign="top" width="300">
StoreResource</td>
              <td valign="top" width="298">
"stores"</td>
            </tr>
            <tr>
              <td valign="top" width="300">
 </td>
              <td valign="top" width="298">
"stores/{storeid}/productcategories"</td>
            </tr>
            <tr>
              <td valign="top" width="300">
 </td>
              <td valign="top" width="298">
"stores/{storeid}/products"</td>
            </tr>
            <tr>
              <td valign="top" width="300">
ShoppingListResource</td>
              <td valign="top" width="298">
"shoppinglists"</td>
            </tr>
            <tr>
              <td valign="top" width="300">
 </td>
              <td valign="top" width="298">
"shoppinglists/{shoppinglistid}/detail"</td>
            </tr>
          </tbody>
        </table>
        <p>
Table 1. Logical Resources Uris
</p>
        <p>
Each logical resource also implement a subset of the uniform interface as Table 2
shows.
</p>
        <table border="1" cellspacing="0" cellpadding="2" width="724">
          <tbody>
            <tr>
              <td valign="top" width="66" align="center">
                <strong>Method</strong>
              </td>
              <td valign="top" width="233" align="center">
                <strong>Uri</strong>
              </td>
              <td valign="top" width="221" align="center">
                <strong>Description</strong>
              </td>
              <td valign="top" width="202" align="center">
                <strong>Result</strong>
              </td>
            </tr>
            <tr>
              <td width="66" align="center">
GET</td>
              <td width="233">
""</td>
              <td valign="top" width="221">
Request current Status of The Smart Shopping List</td>
              <td valign="top" width="202">
A representation of The Smart Shopping List  status</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"stores"</td>
              <td valign="top" width="221">
Request all the Stores of the current Shopper</td>
              <td valign="top" width="202">
                <p align="justify">
If success,  return 200 and a list representation. If not, 400.  
</p>
              </td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"stores/productcategories"</td>
              <td valign="top" width="221">
Request all the Product Categories of the current Shopper</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"stores/{sid}/productcategories"</td>
              <td valign="top" width="221">
Request all the Product Categories in a Store</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"stores/products"</td>
              <td valign="top" width="221">
Request all the Products of the current Shopper</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"stores/{id}/products"</td>
              <td valign="top" width="221">
Request all the Products in a Store</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"shoppinglists"</td>
              <td valign="top" width="221">
Request all the Shopping Lists of the current Shopper</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"stores/{id}"</td>
              <td valign="top" width="221">
Request the current state of a Store</td>
              <td valign="top" width="202">
If success, return 200 and a single representation with its status. If not, 304, 400
or 404. 
</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"stores/productcategories/{id}"</td>
              <td valign="top" width="221">
Request the current state of a Product Category</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"stores/products/{id}"</td>
              <td valign="top" width="221">
Request the current state of a Product</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"shoppinglists/{id}"</td>
              <td valign="top" width="221">
Request the current state of a Shopping List</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"shoppinglists/{slid}/details"</td>
              <td valign="top" width="221">
Request all the Detail in a Shopping List</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"shoppinglists/{slid}/details/{id}"</td>
              <td valign="top" width="221">
Request the current state of a Shopping List Detail</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
POST</td>
              <td width="233">
"stores"</td>
              <td valign="top" width="221">
Create a new Store for the current Shopper</td>
              <td valign="top" width="202">
If success, return 201 a Location header &amp; with the new representation &amp; its
status. If not, 204, 400 or 409</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"stores/{id}/productcategories"</td>
              <td valign="top" width="221">
Creates a new Product Category for a Store</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"stores/{id}/products"</td>
              <td valign="top" width="221">
Creates a new Product  for a Store</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"shoppinglists"</td>
              <td valign="top" width="221">
Creates a new Shopping List for the current Shopper</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"shoppinglists/{slid}/details"</td>
              <td valign="top" width="221">
Creates a new Detail for a Shopping List</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
PUT</td>
              <td width="233">
"stores/{id}"</td>
              <td valign="top" width="221">
Updates a Store 
</td>
              <td valign="top" width="202">
If success, return 200 with the representation &amp; its status. If not, 204, 400,
404 or 409</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"stores/{sid}/productcategories/{id}"</td>
              <td valign="top" width="221">
Updates a Product Category</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"stores/{sid}/products/{id}"</td>
              <td valign="top" width="221">
Updates a Product</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"shoppinglists/{id}"</td>
              <td valign="top" width="221">
Updates a Shopping List</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"shoppinglists/{slid}/details/{id}"</td>
              <td valign="top" width="221">
Updates a Shopping List's Detail</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
DELETE</td>
              <td width="233">
"stores/{id}"</td>
              <td valign="top" width="221">
Removes a Store 
</td>
              <td valign="top" width="202">
If success return 200. If not 204, 400, 404 or 409</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"stores/{sid}/productcategories/{id}"</td>
              <td valign="top" width="221">
Removes a Product Category</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"stores/{sid}/products/{id}"</td>
              <td valign="top" width="221">
Removes a Product</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"shoppinglists/{id}"</td>
              <td valign="top" width="221">
Removes a Shopping List</td>
              <td width="202" align="center">
"</td>
            </tr>
            <tr>
              <td width="66" align="center">
"</td>
              <td width="233">
"shoppinglists/{slid}/details/{id}"</td>
              <td valign="top" width="221">
Removes a Shopping List's Detail</td>
              <td width="202" align="center">
"</td>
            </tr>
          </tbody>
        </table>
        <p>
Table 2. Logical Resource Uniform Interface subset
</p>
        <p>
Figure 3 shows that each logical resource has two representations one for a single
resource and another for its collection along with its status.
</p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/1a00cc0a3972_B196/SSLResourceRepresentations_4.jpg">
            <img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="SSLResourceRepresentations" border="0" alt="SSLResourceRepresentations" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/1a00cc0a3972_B196/SSLResourceRepresentations_thumb_1.jpg" width="244" height="183" />
          </a>
        </p>
        <p>
Figure 3. The Smart Shopping List Resource Representation Model
</p>
        <p>
Also each resource representation contains links that advertises the logical resource
status.
</p>
        <p>
For the implementation I have used preview 4 of the <a href="http://wcf.codeplex.com" target="_blank">WCF
Web Ap</a>i and I will be adding this code later this week (if everything goes smoothly <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/1a00cc0a3972_B196/wlEmoticon-smile_2.png" />)
to <a href="http://smartshoppinglist.codeplex.com" target="_blank">The Smart Shopping
List Source Code</a>. You also will be able to "test drive" The Smart Shopping List
at <a href="https://webapi.smartshoppinglist.net">https://webapi.smartshoppinglist.net</a> but
you have to create a <a href="http://smartshoppinglist.net/Account/Register" target="_blank">Smart
Shopping List account</a> and also use the following headers with your client:
</p>
        <p>
Accept: application/vnd.cyberbizsoft.ssl+xml
</p>
        <p>
Authorization: Basic Your-User-ID:Your-Password (Base64 encoded)
</p>
        <p>
When using POST, PUT &amp; DELETE you must also add:
</p>
        <p>
Content-Type: application/vnd.cyberbizsoft.ssl+xml
</p>
        <p>
Just point your client to <a href="https://webapi.smartshoppinglist.net">https://webapi.smartshoppinglist.net</a> and
follow the protocol.
</p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/1a00cc0a3972_B196/image_2.png">
            <img style="background-image: none; border-right-width: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/1a00cc0a3972_B196/image_thumb.png" width="244" height="187" />
          </a> 
</p>
        <p>
Figure 4. Sample POSTing session using Fiddler.
</p>
        <img width="0" height="0" src="http://www.blogs.victorero.com/aggbug.ashx?id=42f3eee9-399c-45d5-b867-e323eacf3ccb" />
      </div>
    </content>
  </entry>
  <entry>
    <title>RESTfull Web Services</title>
    <link rel="alternate" type="text/html" href="http://www.blogs.victorero.com/2011/03/15/RESTfullWebServices.aspx" />
    <id>http://www.blogs.victorero.com/PermaLink,guid,4641a329-ff9e-438e-a114-20721225df2a.aspx</id>
    <published>2011-03-15T16:25:37.7336037-04:00</published>
    <updated>2011-03-15T16:48:51.7247277-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <h5>Design Notes
</h5>
        <ul>
          <li>
Application is computerized behavior to achieve a business goal 
</li>
          <li>
Application Protocol is a set of rules of allowed/legal interactions in an Application 
</li>
          <li>
Application State is an instant of time of the Application 
</li>
          <li>
URIs are used for resource identification 
</li>
          <li>
HTTP Methods/Verbs are used as the Uniform Interface 
</li>
          <li>
Resources are a logical representation of the Domain Model/Data Set 
</li>
          <li>
Resource Representations are transformations/views of Resources state at an instant
of time 
</li>
          <li>
Resource Representations are requested via headers 
</li>
          <li>
There is a one to many relationship between a resource and its representations 
</li>
          <li>
Access to Resources is always mediated by way of Resource Representations 
</li>
          <li>
            <div align="left">Hypermedia Resource Representation allows lazy-cacheable access
that advertise permitted transitions
</div>
          </li>
          <li>
            <div align="left">Use Transaction Resources to create stateless interaction
</div>
          </li>
        </ul>
        <h5 align="left">Design Procedure
</h5>
        <ol>
          <li>
            <div align="left">Figure out the Domain Model/Data Set (if it does not already exists)
</div>
          </li>
          <li>
            <div align="left">Split the Domain Model/Data Set into logical Resources
</div>
          </li>
          <li>
            <div align="left">Name the resources using URIs i.e. /orders, /orders/{key}, etc.
</div>
          </li>
          <li>
            <div align="left">Expose your subset of the uniform interface i.e. GET/POST/PUT/DELETE
</div>
          </li>
          <li>
            <div align="left">Design the Resource Representations
</div>
          </li>
          <li>
            <div align="left">Design the Hypermedia Resource Representations integration
</div>
          </li>
          <li>
            <div align="left">Design Scenarios, Alternative Paths &amp; Error Conditions    
</div>
          </li>
        </ol>
        <img width="0" height="0" src="http://www.blogs.victorero.com/aggbug.ashx?id=4641a329-ff9e-438e-a114-20721225df2a" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Requesting an Invitation &amp; Subscribing to the Accounting Engine</title>
    <link rel="alternate" type="text/html" href="http://www.blogs.victorero.com/2011/03/05/RequestingAnInvitationSubscribingToTheAccountingEngine.aspx" />
    <id>http://www.blogs.victorero.com/PermaLink,guid,b40e77dd-fe16-4f8e-b72c-2d6fd2e82159.aspx</id>
    <published>2011-03-05T12:23:05.7208399-05:00</published>
    <updated>2011-03-05T12:44:27.0005383-05:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Navigate to <a href="http://www.accountingengine.net" target="_blank">The Accounting
Engine</a></p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/8a6df2939dee_10E7D/image_2.png">
            <img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/8a6df2939dee_10E7D/image_thumb.png" width="244" height="190" />
          </a>
        </p>
        <p>
Fill and submit the Request 
</p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/8a6df2939dee_10E7D/image_4.png">
            <img style="background-image: none; border-right-width: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/8a6df2939dee_10E7D/image_thumb_1.png" width="244" height="190" />
          </a>
        </p>
        <p>
Make sure to have a valid email.  
</p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/8a6df2939dee_10E7D/image_6.png">
            <img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/8a6df2939dee_10E7D/image_thumb_2.png" width="244" height="148" />
          </a>
        </p>
        <p>
The email will contain among other information a link to the Subscription where you
will complete the registration.
</p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/8a6df2939dee_10E7D/image_10.png">
            <img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/8a6df2939dee_10E7D/image_thumb_4.png" width="244" height="190" />
          </a>
        </p>
        <p>
Complete and submit the Subscription
</p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/8a6df2939dee_10E7D/image_12.png">
            <img style="background-image: none; border-right-width: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/8a6df2939dee_10E7D/image_thumb_5.png" width="244" height="190" />
          </a>
        </p>
        <p>
After the Accounting Data is created a logon is displayed
</p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/8a6df2939dee_10E7D/image_14.png">
            <img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/8a6df2939dee_10E7D/image_thumb_6.png" width="244" height="151" />
          </a>
        </p>
        <p>
Use the information from the email sent to login
</p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/8a6df2939dee_10E7D/image_16.png">
            <img style="background-image: none; border-right-width: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/8a6df2939dee_10E7D/image_thumb_7.png" width="244" height="190" />
          </a>
        </p>
        <p>
When you login successfully as an Administrator you will be redirected to the Settings. 
</p>
        <img width="0" height="0" src="http://www.blogs.victorero.com/aggbug.ashx?id=b40e77dd-fe16-4f8e-b72c-2d6fd2e82159" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Microsoft was charging my Credit Card for Services I was/am not Using</title>
    <link rel="alternate" type="text/html" href="http://www.blogs.victorero.com/2011/03/03/MicrosoftWasChargingMyCreditCardForServicesIWasamNotUsing.aspx" />
    <id>http://www.blogs.victorero.com/PermaLink,guid,9dfd4d4d-bc21-4625-a9a0-6ca73debca2b.aspx</id>
    <published>2011-03-03T15:49:00.6652963-05:00</published>
    <updated>2011-03-12T18:18:05.2772171-05:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <h3>
        </h3>
        <h4 align="center">
          <font color="#ff0000">Update: This situation has been resolved</font>
        </h4>
        <p>
Back on October last year I got an email from Microsoft in which they said that they
were trying to charge my company credit card for services I was not receiving. I responded:
</p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/60f5efad8d79_DC9D/image_4.png">
            <img style="background-image: none; border-right-width: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/60f5efad8d79_DC9D/image_thumb_1.png" width="244" height="130" />
          </a>
        </p>
        <p>
They ignored my request and continued sending the same stupid message only changing
the Notice # and I continued replaying:
</p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/60f5efad8d79_DC9D/image_6.png">
            <img style="background-image: none; border-right-width: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/Windows-Live-Writer/60f5efad8d79_DC9D/image_thumb_2.png" width="244" height="108" />
          </a>
        </p>
        <p>
I consider this a harassment and that Microsoft is trying to damage my company reputation
and credit history.
</p>
        <p>
If they continue this path I will take legal action to stop this Character Assassination
attempt! 
</p>
        <img width="0" height="0" src="http://www.blogs.victorero.com/aggbug.ashx?id=9dfd4d4d-bc21-4625-a9a0-6ca73debca2b" />
      </div>
    </content>
  </entry>
  <entry>
    <title>What’s wrong with these “Big Outfits”</title>
    <link rel="alternate" type="text/html" href="http://www.blogs.victorero.com/2010/08/19/WhatsWrongWithTheseBigOutfits.aspx" />
    <id>http://www.blogs.victorero.com/PermaLink,guid,a1e099e9-3ece-49a9-9f87-02d2b2de0078.aspx</id>
    <published>2010-08-19T09:55:19.6595205-04:00</published>
    <updated>2010-08-19T09:57:02.1374449-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Today after downloading and installing Crystal Reports for Visual Studio 2010 Beta
2 I got this message:
</p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/WindowsLiveWriter/WhatswrongwiththeseBigOutfits_8D7B/CRforVS2010_Beta2.jpg">
            <img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="CRforVS2010_Beta2" border="0" alt="CRforVS2010_Beta2" src="http://www.blogs.victorero.com/content/binary/WindowsLiveWriter/WhatswrongwiththeseBigOutfits_8D7B/CRforVS2010_Beta2_thumb.jpg" width="244" height="96" />
          </a>
        </p>
        <p>
I understand that it is a beta but do they test this stuff!
</p>
        <p>
I am lucky that I always install these kind of software in a test system but it is
annoying and time consuming.  
</p>
        <img width="0" height="0" src="http://www.blogs.victorero.com/aggbug.ashx?id=a1e099e9-3ece-49a9-9f87-02d2b2de0078" />
      </div>
    </content>
  </entry>
  <entry>
    <title>What is this? The Kinder &amp; Gentler Mafia!</title>
    <link rel="alternate" type="text/html" href="http://www.blogs.victorero.com/2010/08/05/WhatIsThisTheKinderGentlerMafia.aspx" />
    <id>http://www.blogs.victorero.com/PermaLink,guid,403193c8-0289-4aa9-a464-25cb96e911d4.aspx</id>
    <published>2010-08-05T11:14:54.348583-04:00</published>
    <updated>2010-08-07T14:43:21.3894945-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/WindowsLiveWriter/WhatisthisTheKinderGentlerMafia_9FFF/image_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/WindowsLiveWriter/WhatisthisTheKinderGentlerMafia_9FFF/image_thumb.png" width="244" height="196" />
          </a>
        </p>
        <p>
 
</p>
        <p>
Can someone from Microsoft explain What is the job of their "Dirteam"?
</p>
        <p>
          <strong>
            <font color="#ff0000">This is the response I got so far. Is this arrogance
or what?:</font>
          </strong>
        </p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/WindowsLiveWriter/WhatisthisTheKinderGentlerMafia_9FFF/image_4.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/WindowsLiveWriter/WhatisthisTheKinderGentlerMafia_9FFF/image_thumb_1.png" width="184" height="244" />
          </a>
        </p>
        <img width="0" height="0" src="http://www.blogs.victorero.com/aggbug.ashx?id=403193c8-0289-4aa9-a464-25cb96e911d4" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Changing default language in VS 2010 from Visual Basic to C#</title>
    <link rel="alternate" type="text/html" href="http://www.blogs.victorero.com/2010/07/10/ChangingDefaultLanguageInVS2010FromVisualBasicToC.aspx" />
    <id>http://www.blogs.victorero.com/PermaLink,guid,35a1a52b-9d9c-4f6b-9624-69f8d19b720c.aspx</id>
    <published>2010-07-10T14:32:56.4861606-04:00</published>
    <updated>2010-07-10T14:58:51.7758555-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I don't know when and how it happened, maybe when I installed VS 2010 side-by-side
with VS 2008, but my VS 2010 default language was set to Visual Basic and I don't
use "that thing" anymore. I ignored it for a while since I have been just converting
from VS 2008 but it got annoying because every time I created a new project it was
created with Visual Basic so I had to delete it and recreate it.
</p>
        <p>
Finally I decided to change the setting but I was looking on the wrong place Tools
-&gt; Options. After a while I found this <a href="http://www.eggheadcafe.com/community/aspnet/7/10079498/how-to-change-the-default-language-from-visual-basic-to-c.aspx" target="_blank">eggheadcafe
posting</a> and as it said it is Tools -&gt; Import and Export Settings.:
</p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/WindowsLiveWriter/ChangingdefaultlanguageinVS2010fromVisua_CAAA/image_2.png">
            <img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/WindowsLiveWriter/ChangingdefaultlanguageinVS2010fromVisua_CAAA/image_thumb.png" width="244" height="219" />
          </a>
        </p>
        <p>
Save your current settings in case you change your mind later: (not me :-))
</p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/WindowsLiveWriter/ChangingdefaultlanguageinVS2010fromVisua_CAAA/image_4.png">
            <img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/WindowsLiveWriter/ChangingdefaultlanguageinVS2010fromVisua_CAAA/image_thumb_1.png" width="244" height="219" />
          </a>
        </p>
        <p>
Then select Visual C# Development Settings and click Finish:
</p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/WindowsLiveWriter/ChangingdefaultlanguageinVS2010fromVisua_CAAA/image_6.png">
            <img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/WindowsLiveWriter/ChangingdefaultlanguageinVS2010fromVisua_CAAA/image_thumb_2.png" width="244" height="219" />
          </a>
        </p>
        <img width="0" height="0" src="http://www.blogs.victorero.com/aggbug.ashx?id=35a1a52b-9d9c-4f6b-9624-69f8d19b720c" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Installing Silverlight 4 Tools v1.0 for Visual Studio 2010</title>
    <link rel="alternate" type="text/html" href="http://www.blogs.victorero.com/2010/05/18/InstallingSilverlight4ToolsV10ForVisualStudio2010.aspx" />
    <id>http://www.blogs.victorero.com/PermaLink,guid,9403e414-435b-486d-abc5-649bfd3689b3.aspx</id>
    <published>2010-05-18T11:32:43.0044654-04:00</published>
    <updated>2010-05-18T11:35:40.7609888-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
While installing Silverlight 4 Tools v1.0 for Visual Studio I ran into the following
screen sometimes after the installation hanged for a while:
</p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/WindowsLiveWriter/InstallingSilverlig.0forVisualStudio2010_A208/image_2.png">
            <img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/WindowsLiveWriter/InstallingSilverlig.0forVisualStudio2010_A208/image_thumb.png" width="244" height="229" />
          </a>
        </p>
        <p>
I had found that problem before while trying to install SQL Server 2008 so I located
the following registry key:
</p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/WindowsLiveWriter/InstallingSilverlig.0forVisualStudio2010_A208/image_8.png">
            <img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/WindowsLiveWriter/InstallingSilverlig.0forVisualStudio2010_A208/image_thumb_3.png" width="244" height="168" />
          </a> 
</p>
        <p>
and removed this from the PendingFileRenameOperations
</p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/WindowsLiveWriter/InstallingSilverlig.0forVisualStudio2010_A208/image_4.png">
            <img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/WindowsLiveWriter/InstallingSilverlig.0forVisualStudio2010_A208/image_thumb_1.png" width="244" height="220" />
          </a>
        </p>
        <p>
After doing that I ran the installation again and it completed successfully.
</p>
        <p>
        </p>
        <p>
        </p>
        <p>
        </p>
        <p>
          <a href="http://www.blogs.victorero.com/content/binary/WindowsLiveWriter/InstallingSilverlig.0forVisualStudio2010_A208/image_10.png">
            <img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogs.victorero.com/content/binary/WindowsLiveWriter/InstallingSilverlig.0forVisualStudio2010_A208/image_thumb_4.png" width="244" height="229" />
          </a>
        </p>
        <img width="0" height="0" src="http://www.blogs.victorero.com/aggbug.ashx?id=9403e414-435b-486d-abc5-649bfd3689b3" />
      </div>
    </content>
  </entry>
</feed>
