<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>BUS ADM 740 Blog</title>
    <link>http://www.531.sba.uwm.edu/mhaines/740Blog/</link>
    <description>on MIS Concepts and Languages</description>
    <language>en-us</language>
    <copyright>Marc Haines</copyright>
    <lastBuildDate>Wed, 07 May 2008 20:04:45 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 1.8.5223.2</generator>
    <managingEditor>mhaines@uwm.edu</managingEditor>
    <webMaster>mhaines@uwm.edu</webMaster>
    <item>
      <trackback:ping>http://www.531.sba.uwm.edu/mhaines/740Blog/Trackback.aspx?guid=7288a8e4-0ed4-437f-9768-ef6bdd836131</trackback:ping>
      <pingback:server>http://www.531.sba.uwm.edu/mhaines/740Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,7288a8e4-0ed4-437f-9768-ef6bdd836131.aspx</pingback:target>
      <dc:creator>mhaines@uwm.edu (ADMIN)</dc:creator>
      <wfw:comment>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,7288a8e4-0ed4-437f-9768-ef6bdd836131.aspx</wfw:comment>
      <wfw:commentRss>http://www.531.sba.uwm.edu/mhaines/740Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=7288a8e4-0ed4-437f-9768-ef6bdd836131</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      To leverage the DatePicker control just drag it on the form. Then in the form load
      function determine the format (e.g., <span style="FONT-SIZE: 0.9em"><code><span style="FONT-SIZE: 0.9em"><strong>DateTimePicker1.Format
      = DateTimePickerFormat.Short</strong> ).</span></code></span> The selected date is
      then available in the Text property of the control (and should show up on the form).
      By default today's date should be shown.
   </p>
        <p>
      The key properties for the calendar are
   </p>
        <p>
          <strong>SelectionStart</strong> - This is the first selected date (it is possible
      to select multiple dates at a time!)
   </p>
        <p>
          <strong>TodayDate</strong> - This sets today's date (which otherwise is set automatically
      by the system clock!)
   </p>
        <p>
      Enumerations are commonly used for small sets of finite values (i.e., types or status).
      It is easy to work with Enums in the .NET framework, the .NET compact framework, however,
      has some limitations. The example below is for an Enum called PersonStatus (with the
      values Here, There, Somewhere)
   </p>
        <pre xml:space="preserve">
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        ' In the .NET framework this would work
        '    Me.ComboBox1.DataSource = [Enum].GetNames(GetType(PersonStatus))
        ' Unfortunately this does not work in the .NET Compact Framework
        ' So some hardcoding needs to be done ...
        Me.ComboBox1.Items.Add("Here")
        Me.ComboBox1.Items.Add("There")
        Me.ComboBox1.Items.Add("Somewhere")
    End Sub

    Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
        Select Case Me.ComboBox1.SelectedItem
            Case "Here"
                thisPerson.Status = PersonStatus.Here
            Case "There"
                thisPerson.Status = PersonStatus.There
            Case "Somewhere"
                thisPerson.Status = PersonStatus.Somewhere
            Case Else
                'do nothing
        End Select
    End Sub
</pre>
        <p>
          <br />
        </p>
        <p class="poweredbyzoundry">
      Powered by <a href="http://www.zoundry.com" class="poweredbyzoundry_link" rel="nofollow">Zoundry</a></p>
        <img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=7288a8e4-0ed4-437f-9768-ef6bdd836131" />
      </body>
      <title>Calendar and Enums</title>
      <guid>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,7288a8e4-0ed4-437f-9768-ef6bdd836131.aspx</guid>
      <link>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,7288a8e4-0ed4-437f-9768-ef6bdd836131.aspx</link>
      <pubDate>Wed, 07 May 2008 20:04:45 GMT</pubDate>
      <description>
&lt;p&gt;
   To leverage the DatePicker control just drag it on the form. Then in the form load
   function determine the format (e.g., &lt;span style="FONT-SIZE: 0.9em"&gt;&lt;code&gt;&lt;span style="FONT-SIZE: 0.9em"&gt;&lt;strong&gt;DateTimePicker1.Format
   = DateTimePickerFormat.Short&lt;/strong&gt; ).&lt;/span&gt;&lt;/code&gt;&lt;/span&gt; The selected date is
   then available in the Text property of the control (and should show up on the form).
   By default today's date should be shown.
&lt;/p&gt;
&lt;p&gt;
   The key properties for the calendar are
&lt;/p&gt;
&lt;p&gt;
   &lt;strong&gt;SelectionStart&lt;/strong&gt; - This is the first selected date (it is possible
   to select multiple dates at a time!)
&lt;/p&gt;
&lt;p&gt;
   &lt;strong&gt;TodayDate&lt;/strong&gt; - This sets today's date (which otherwise is set automatically
   by the system clock!)
&lt;/p&gt;
&lt;p&gt;
   Enumerations are commonly used for small sets of finite values (i.e., types or status).
   It is easy to work with Enums in the .NET framework, the .NET compact framework, however,
   has some limitations. The example below is for an Enum called PersonStatus (with the
   values Here, There, Somewhere)
&lt;/p&gt;
&lt;pre xml:space="preserve"&gt;
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        ' In the .NET framework this would work
        '    Me.ComboBox1.DataSource = [Enum].GetNames(GetType(PersonStatus))
        ' Unfortunately this does not work in the .NET Compact Framework
        ' So some hardcoding needs to be done ...
        Me.ComboBox1.Items.Add("Here")
        Me.ComboBox1.Items.Add("There")
        Me.ComboBox1.Items.Add("Somewhere")
    End Sub

    Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
        Select Case Me.ComboBox1.SelectedItem
            Case "Here"
                thisPerson.Status = PersonStatus.Here
            Case "There"
                thisPerson.Status = PersonStatus.There
            Case "Somewhere"
                thisPerson.Status = PersonStatus.Somewhere
            Case Else
                'do nothing
        End Select
    End Sub
&lt;/pre&gt;
&lt;p&gt;
   &lt;br /&gt;
&lt;/p&gt;
&lt;p class="poweredbyzoundry"&gt;
   Powered by &lt;a href="http://www.zoundry.com" class="poweredbyzoundry_link" rel="nofollow"&gt;Zoundry&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=7288a8e4-0ed4-437f-9768-ef6bdd836131" /&gt;</description>
      <comments>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,7288a8e4-0ed4-437f-9768-ef6bdd836131.aspx</comments>
      <category>BUS ADM 740</category>
    </item>
    <item>
      <trackback:ping>http://www.531.sba.uwm.edu/mhaines/740Blog/Trackback.aspx?guid=835f436c-7762-40c6-a537-6846eddf3f91</trackback:ping>
      <pingback:server>http://www.531.sba.uwm.edu/mhaines/740Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,835f436c-7762-40c6-a537-6846eddf3f91.aspx</pingback:target>
      <dc:creator>mhaines@uwm.edu (ADMIN)</dc:creator>
      <wfw:comment>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,835f436c-7762-40c6-a537-6846eddf3f91.aspx</wfw:comment>
      <wfw:commentRss>http://www.531.sba.uwm.edu/mhaines/740Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=835f436c-7762-40c6-a537-6846eddf3f91</wfw:commentRss>
      <slash:comments>4</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">If your project is leveraging a Web service
   and you need more data to start out with, here is what you can do:<br /><br />
   1) Write code in your device application that calls the addX (X is your thing ...
   restaurant, task, etc.) of your Web service. Make sure you provide unique IDs!<br /><br />
   2) Create a network location (see previous blog) and work directly in the XML. Open
   your XML file in Visual Studio. Can be a quick way, but also error prone, which may
   lead to problems in the deserialization of your XML data. Use copy/paste as much as
   possible.<br /><br />
   3) Modify the generateData method in your Web service. Right now it only creates one
   test item. Simply repeat as much as you like the code that creates the data item,
   assigns the values, and adds it to the array list. Make sure you provide unique IDs!<br /><pre>
        Dim al As New ArrayList()
        Dim da As DataItem()
        Dim di As DataItem

        Try
            'test item (your item may have other attributes!)
            di = New DataItem
            di.ID = "0000" 'provide unique ids
            di.Name = "test"
            di.Value = 1.0
            al.Add(di)

            'another item
            di = New DataItem
            di.ID = "0001"
            di.Name = "test again"
            di.Value = 1.0
            al.Add(di)

            '... and so on

            da = al.ToArray(GetType(DataItem))

            Return DataManagementSystem.saveDataItems(da)
        Catch ex As Exception
            Return ex.Message
        End Try
</pre><br /><br /><br />
   I would use 3 to get started (and reset if necessary) and then work using 2. 
   <br /><br />
   MH<br /><p></p><img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=835f436c-7762-40c6-a537-6846eddf3f91" /></body>
      <title>More data ...</title>
      <guid>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,835f436c-7762-40c6-a537-6846eddf3f91.aspx</guid>
      <link>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,835f436c-7762-40c6-a537-6846eddf3f91.aspx</link>
      <pubDate>Mon, 05 May 2008 18:07:06 GMT</pubDate>
      <description>If your project is leveraging a Web service and you need more data to start out with, here is what you can do:&lt;br&gt;
&lt;br&gt;
1) Write code in your device application that calls the addX (X is your thing ...
restaurant, task, etc.) of your Web service. Make sure you provide unique IDs!&lt;br&gt;
&lt;br&gt;
2) Create a network location (see previous blog) and work directly in the XML. Open
your XML file in Visual Studio. Can be a quick way, but also error prone, which may
lead to problems in the deserialization of your XML data. Use copy/paste as much as
possible.&lt;br&gt;
&lt;br&gt;
3) Modify the generateData method in your Web service. Right now it only creates one
test item. Simply repeat as much as you like the code that creates the data item,
assigns the values, and adds it to the array list. Make sure you provide unique IDs!&lt;br&gt;
&lt;pre&gt;
        Dim al As New ArrayList()
        Dim da As DataItem()
        Dim di As DataItem

        Try
            'test item (your item may have other attributes!)
            di = New DataItem
            di.ID = "0000" 'provide unique ids
            di.Name = "test"
            di.Value = 1.0
            al.Add(di)

            'another item
            di = New DataItem
            di.ID = "0001"
            di.Name = "test again"
            di.Value = 1.0
            al.Add(di)

            '... and so on

            da = al.ToArray(GetType(DataItem))

            Return DataManagementSystem.saveDataItems(da)
        Catch ex As Exception
            Return ex.Message
        End Try
&lt;/pre&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I would use 3 to get started (and reset if necessary) and then work using 2. 
&lt;br&gt;
&lt;br&gt;
MH&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=835f436c-7762-40c6-a537-6846eddf3f91" /&gt;</description>
      <comments>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,835f436c-7762-40c6-a537-6846eddf3f91.aspx</comments>
      <category>BUS ADM 740;project;XML</category>
    </item>
    <item>
      <trackback:ping>http://www.531.sba.uwm.edu/mhaines/740Blog/Trackback.aspx?guid=02caf063-1014-4394-977c-f13f440b8a3a</trackback:ping>
      <pingback:server>http://www.531.sba.uwm.edu/mhaines/740Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,02caf063-1014-4394-977c-f13f440b8a3a.aspx</pingback:target>
      <dc:creator>mhaines@uwm.edu (ADMIN)</dc:creator>
      <wfw:comment>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,02caf063-1014-4394-977c-f13f440b8a3a.aspx</wfw:comment>
      <wfw:commentRss>http://www.531.sba.uwm.edu/mhaines/740Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=02caf063-1014-4394-977c-f13f440b8a3a</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      I have created - for everyone who has sent me a class and a Web service URL - a web
      service that can be leveraged by the mobile device application for the project.
   </p>
        <p>
      Some examples are
   </p>
        <p>
          <a href="http://www.746.sba.uwm.edu/jlaubach/pricingWebservice/PricingService.asmx">John's
      pricing service</a>
        </p>
        <p>
          <a href="http://www.746.sba.uwm.edu/tgessner/RestaurantDataService/RestaurantDataService.asmx">Tom's
      Restaurant service</a>
        </p>
        <p>
      All the services provide basic CRUD functionality for each class ... create, read,
      update, delete ... and are based on my <a href="http://www.746.sba.uwm.edu/mhaines/WebServices/DataManagementService.asmx">DataManagementService</a>.
      John, for example, has three classes, thus he has quite a few more functions in his
      service than Tom. Depending on their business logic not all of the methods may be
      used.
   </p>
        <p>
      It is important to note that every class has an ID property with which an object can
      be identified.
   </p>
        <p>
      Creating all the "different" Web services, was quite easy. In Tom's case I just had
      to find "DataItem" in my code and replace it with "Restaurant" ...
   </p>
        <p>
      If you want to see the code behind this take a look at the <a href="http://www.sba.uwm.edu/gdrive/Haines_M/BUSADM740%20MISConceptsAndLanguages/code/DataManagementServices.zip">DataManagementService</a> project
      in the code folder on the G-drive.
   </p>
        <p>
      The data.xml files are stored at ../fpdb/data.xml . That means in the fpdb folder
      right below your personal folder on the Web server, as this folder has the needed
      write permissions. In case you do want to view your data.xml you need to setup a "network
      location" to your fpdb folder (in my case <a href="http://www.746.sba.uwm.edu/mhaines/fpdb">http://www.746.sba.uwm.edu/mhaines/fpdb</a>)
      (see FAQ for instructions).
   </p>
        <p>
      MH
   </p>
        <p>
      Note: The generateDataFile method is used to create a data file if none exist. However,
      I did create one already for each Web service. If the generateDataFile method is used
      all existing data will be lost!
   </p>
        <p class="zoundry_bw_tags">
          <!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com -->
          <span class="ztags">
            <span class="ztagspace">Technorati</span> : <a href="http://technorati.com/tag/BUS%20ADM%20740" class="ztag" rel="tag">BUS
      ADM 740</a>, <a href="http://technorati.com/tag/Web%20service" class="ztag" rel="tag">Web
      service</a></span>
        </p>
        <p class="poweredbyzoundry">
      Powered by <a href="http://www.zoundry.com" class="poweredbyzoundry_link" rel="nofollow">Zoundry</a></p>
        <img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=02caf063-1014-4394-977c-f13f440b8a3a" />
      </body>
      <title>740: Project Web services</title>
      <guid>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,02caf063-1014-4394-977c-f13f440b8a3a.aspx</guid>
      <link>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,02caf063-1014-4394-977c-f13f440b8a3a.aspx</link>
      <pubDate>Sat, 03 May 2008 11:04:43 GMT</pubDate>
      <description>
&lt;p&gt;
   I have created - for everyone who has sent me a class and a Web service URL - a web
   service that can be leveraged by the mobile device application for the project.
&lt;/p&gt;
&lt;p&gt;
   Some examples are
&lt;/p&gt;
&lt;p&gt;
   &lt;a href="http://www.746.sba.uwm.edu/jlaubach/pricingWebservice/PricingService.asmx"&gt;John's
   pricing service&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;a href="http://www.746.sba.uwm.edu/tgessner/RestaurantDataService/RestaurantDataService.asmx"&gt;Tom's
   Restaurant service&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
   All the services provide basic CRUD functionality for each class ... create, read,
   update, delete ... and are based on my &lt;a href="http://www.746.sba.uwm.edu/mhaines/WebServices/DataManagementService.asmx"&gt;DataManagementService&lt;/a&gt;.
   John, for example, has three classes, thus he has quite a few more functions in his
   service than Tom. Depending on their business logic not all of the methods may be
   used.
&lt;/p&gt;
&lt;p&gt;
   It is important to note that every class has an ID property with which an object can
   be identified.
&lt;/p&gt;
&lt;p&gt;
   Creating all the "different" Web services, was quite easy. In Tom's case I just had
   to find "DataItem" in my code and replace it with "Restaurant" ...
&lt;/p&gt;
&lt;p&gt;
   If you want to see the code behind this take a look at the &lt;a href="http://www.sba.uwm.edu/gdrive/Haines_M/BUSADM740%20MISConceptsAndLanguages/code/DataManagementServices.zip"&gt;DataManagementService&lt;/a&gt; project
   in the code folder on the G-drive.
&lt;/p&gt;
&lt;p&gt;
   The data.xml files are stored at ../fpdb/data.xml . That means in the fpdb folder
   right below your personal folder on the Web server, as this folder has the needed
   write permissions. In case you do want to view your data.xml you need to setup a "network
   location" to your fpdb folder (in my case &lt;a href="http://www.746.sba.uwm.edu/mhaines/fpdb"&gt;http://www.746.sba.uwm.edu/mhaines/fpdb&lt;/a&gt;)
   (see FAQ for instructions).
&lt;/p&gt;
&lt;p&gt;
   MH
&lt;/p&gt;
&lt;p&gt;
   Note: The generateDataFile method is used to create a data file if none exist. However,
   I did create one already for each Web service. If the generateDataFile method is used
   all existing data will be lost!
&lt;/p&gt;
&lt;p class="zoundry_bw_tags"&gt;
   &lt;!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com --&gt;
   &lt;span class="ztags"&gt;&lt;span class="ztagspace"&gt;Technorati&lt;/span&gt; : &lt;a href="http://technorati.com/tag/BUS%20ADM%20740" class="ztag" rel="tag"&gt;BUS
   ADM 740&lt;/a&gt;, &lt;a href="http://technorati.com/tag/Web%20service" class="ztag" rel="tag"&gt;Web
   service&lt;/a&gt;&lt;/span&gt; 
&lt;/p&gt;
&lt;p class="poweredbyzoundry"&gt;
   Powered by &lt;a href="http://www.zoundry.com" class="poweredbyzoundry_link" rel="nofollow"&gt;Zoundry&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=02caf063-1014-4394-977c-f13f440b8a3a" /&gt;</description>
      <comments>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,02caf063-1014-4394-977c-f13f440b8a3a.aspx</comments>
      <category>BUS ADM 740</category>
    </item>
    <item>
      <trackback:ping>http://www.531.sba.uwm.edu/mhaines/740Blog/Trackback.aspx?guid=307669c9-4f7f-4e38-869a-db0f5736ac88</trackback:ping>
      <pingback:server>http://www.531.sba.uwm.edu/mhaines/740Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,307669c9-4f7f-4e38-869a-db0f5736ac88.aspx</pingback:target>
      <dc:creator>mhaines@uwm.edu (ADMIN)</dc:creator>
      <wfw:comment>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,307669c9-4f7f-4e38-869a-db0f5736ac88.aspx</wfw:comment>
      <wfw:commentRss>http://www.531.sba.uwm.edu/mhaines/740Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=307669c9-4f7f-4e38-869a-db0f5736ac88</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      For anyone you needs to do some direct XML processing (i.e., RSS feeds) take a look
      at the following past blog entry and other resources:
   </p>
        <p>
          <a href="http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,2e709c88-4a6a-4ab8-bf3f-e31eb11ce49b.aspx">Blog
      post about Google Calendar feed</a>
        </p>
        <p>
          <a href="http://www.sba.uwm.edu/gdrive/Haines_M/BUSADM740%20MISConceptsAndLanguages/slides/BUSADM740_12.ppt">Slides
      with XML processing code</a>
        </p>
        <p>
      ... or just use this <a href="http://www.innograte.net/webservices/RssFeedService.asmx">RSS
      Feed Web service</a> :-) (Just plug-in the RSS URL, it returns an RssFeed object with
      its "news" items. The application key is "rss".)
   </p>
        <p>
      MH<br /><br /><br /></p>
        <p class="zoundry_bw_tags">
          <!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com -->
          <span class="ztags">
            <span class="ztagspace">Technorati</span> : <a href="http://technorati.com/tag/BUS%20ADM%20740" class="ztag" rel="tag">BUS
      ADM 740</a>, <a href="http://technorati.com/tag/RSS" class="ztag" rel="tag">RSS</a>, <a href="http://technorati.com/tag/XML" class="ztag" rel="tag">XML</a></span>
        </p>
        <img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=307669c9-4f7f-4e38-869a-db0f5736ac88" />
      </body>
      <title>Leveraging RSS feeds ...</title>
      <guid>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,307669c9-4f7f-4e38-869a-db0f5736ac88.aspx</guid>
      <link>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,307669c9-4f7f-4e38-869a-db0f5736ac88.aspx</link>
      <pubDate>Wed, 30 Apr 2008 21:34:07 GMT</pubDate>
      <description>
&lt;p&gt;
   For anyone you needs to do some direct XML processing (i.e., RSS feeds) take a look
   at the following past blog entry and other resources:
&lt;/p&gt;
&lt;p&gt;
   &lt;a href="http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,2e709c88-4a6a-4ab8-bf3f-e31eb11ce49b.aspx"&gt;Blog
   post about Google Calendar feed&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;a href="http://www.sba.uwm.edu/gdrive/Haines_M/BUSADM740%20MISConceptsAndLanguages/slides/BUSADM740_12.ppt"&gt;Slides
   with XML processing code&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
   ... or just use this &lt;a href="http://www.innograte.net/webservices/RssFeedService.asmx"&gt;RSS
   Feed Web service&lt;/a&gt; :-) (Just plug-in the RSS URL, it returns an RssFeed object with
   its "news" items. The application key is "rss".)
&lt;/p&gt;
&lt;p&gt;
   MH&lt;br /&gt;
   &lt;br /&gt;
   &lt;br /&gt;
&lt;/p&gt;
&lt;p class="zoundry_bw_tags"&gt;
   &lt;!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com --&gt;
   &lt;span class="ztags"&gt;&lt;span class="ztagspace"&gt;Technorati&lt;/span&gt; : &lt;a href="http://technorati.com/tag/BUS%20ADM%20740" class="ztag" rel="tag"&gt;BUS
   ADM 740&lt;/a&gt;, &lt;a href="http://technorati.com/tag/RSS" class="ztag" rel="tag"&gt;RSS&lt;/a&gt;, &lt;a href="http://technorati.com/tag/XML" class="ztag" rel="tag"&gt;XML&lt;/a&gt;&lt;/span&gt; 
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=307669c9-4f7f-4e38-869a-db0f5736ac88" /&gt;</description>
      <comments>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,307669c9-4f7f-4e38-869a-db0f5736ac88.aspx</comments>
      <category>BUS ADM 740;XML</category>
    </item>
    <item>
      <trackback:ping>http://www.531.sba.uwm.edu/mhaines/740Blog/Trackback.aspx?guid=2e94de74-6f69-43be-ade4-89c1f38aae77</trackback:ping>
      <pingback:server>http://www.531.sba.uwm.edu/mhaines/740Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,2e94de74-6f69-43be-ade4-89c1f38aae77.aspx</pingback:target>
      <dc:creator>mhaines@uwm.edu (ADMIN)</dc:creator>
      <wfw:comment>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,2e94de74-6f69-43be-ade4-89c1f38aae77.aspx</wfw:comment>
      <wfw:commentRss>http://www.531.sba.uwm.edu/mhaines/740Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=2e94de74-6f69-43be-ade4-89c1f38aae77</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      Vista users: In case you are getting stuck again with getting your device emulator
      to connect to the Internet after cradling it: Don't miss the last step in the Mobile
      Device Center!
   </p>
        <p>
      In the Mobile Device Center, you should see the green check mark and "connected".
      However, that is not enough. Make sure you click on "connect with out setting up your
      device". Only after this step you can connect to the network (and the Internet). Check
      it out by running Internet Explorer in the device emulator.
   </p>
        <p>
      If you can pull up a Web page you are good to go!
   </p>
        <p>
      MH
   </p>
        <br />
        <p class="zoundry_bw_tags">
          <!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com -->
          <span class="ztags">
            <span class="ztagspace">Technorati</span> : <a href="http://technorati.com/tag/BUS%20ADM%20740" class="ztag" rel="tag">BUS
      ADM 740</a>, <a href="http://technorati.com/tag/device%20emulator" class="ztag" rel="tag">device
      emulator</a></span>
        </p>
        <img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=2e94de74-6f69-43be-ade4-89c1f38aae77" />
      </body>
      <title>Emulator on Vista</title>
      <guid>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,2e94de74-6f69-43be-ade4-89c1f38aae77.aspx</guid>
      <link>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,2e94de74-6f69-43be-ade4-89c1f38aae77.aspx</link>
      <pubDate>Wed, 30 Apr 2008 21:29:12 GMT</pubDate>
      <description>
&lt;p&gt;
   Vista users: In case you are getting stuck again with getting your device emulator
   to connect to the Internet after cradling it: Don't miss the last step in the Mobile
   Device Center!
&lt;/p&gt;
&lt;p&gt;
   In the Mobile Device Center, you should see the green check mark and "connected".
   However, that is not enough. Make sure you click on "connect with out setting up your
   device". Only after this step you can connect to the network (and the Internet). Check
   it out by running Internet Explorer in the device emulator.
&lt;/p&gt;
&lt;p&gt;
   If you can pull up a Web page you are good to go!
&lt;/p&gt;
&lt;p&gt;
   MH
&lt;/p&gt;
&lt;br /&gt;
&lt;p class="zoundry_bw_tags"&gt;
   &lt;!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com --&gt;
   &lt;span class="ztags"&gt;&lt;span class="ztagspace"&gt;Technorati&lt;/span&gt; : &lt;a href="http://technorati.com/tag/BUS%20ADM%20740" class="ztag" rel="tag"&gt;BUS
   ADM 740&lt;/a&gt;, &lt;a href="http://technorati.com/tag/device%20emulator" class="ztag" rel="tag"&gt;device
   emulator&lt;/a&gt;&lt;/span&gt; 
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=2e94de74-6f69-43be-ade4-89c1f38aae77" /&gt;</description>
      <comments>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,2e94de74-6f69-43be-ade4-89c1f38aae77.aspx</comments>
      <category>BUS ADM 740;emulator</category>
    </item>
    <item>
      <trackback:ping>http://www.531.sba.uwm.edu/mhaines/740Blog/Trackback.aspx?guid=87f94c97-8a88-4304-970f-6b9c9b021f96</trackback:ping>
      <pingback:server>http://www.531.sba.uwm.edu/mhaines/740Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,87f94c97-8a88-4304-970f-6b9c9b021f96.aspx</pingback:target>
      <dc:creator>mhaines@uwm.edu (ADMIN)</dc:creator>
      <wfw:comment>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,87f94c97-8a88-4304-970f-6b9c9b021f96.aspx</wfw:comment>
      <wfw:commentRss>http://www.531.sba.uwm.edu/mhaines/740Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=87f94c97-8a88-4304-970f-6b9c9b021f96</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      Just a note about creating your own Web service.
   </p>
        <p>
      For a description on how to create a Web site project for a Web service see my <a href="http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,571c52b5-b225-46f4-aae8-a192646592c5.aspx">previous
      blog entry regarding this issue</a>.
   </p>
        <p>
      I would like everyone to go ahead and create a Web site for your Web service. Once
      you have created it let me know by sending me the URL. This will allow me to check
      whether it has been created correctly.
   </p>
        <p>
      The other thing that you probably want to send me is the classes that you will use
      in your project. This serves two purposes; one, I will be able to give you feedback
      on the class structure itself, second, I will be able to help you setup the functions
      in your Web service with the classes (i.e., getXList, updateX, ... whatever your X
      is).
   </p>
        <p>
      One additional note. If you do want to test your Web service you need to insert this
      snippet of XML in your Web.config file:
   </p>
        <p>
        </p>
        <pre>      &lt;webServices&gt;
        &lt;protocols&gt;
          &lt;add name="HttpPost"/&gt;
        &lt;/protocols&gt;
      &lt;/webServices&gt;
</pre>
        <p>
      It goes right under the 
   </p>
        <pre>&lt;system.web&gt;</pre>
   tag in the Web.config file. 
   <p></p><img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=87f94c97-8a88-4304-970f-6b9c9b021f96" /></body>
      <title>Web Services - creating your own Web service</title>
      <guid>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,87f94c97-8a88-4304-970f-6b9c9b021f96.aspx</guid>
      <link>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,87f94c97-8a88-4304-970f-6b9c9b021f96.aspx</link>
      <pubDate>Wed, 23 Apr 2008 16:16:01 GMT</pubDate>
      <description>&lt;p&gt;
   Just a note about creating your own Web service.
&lt;/p&gt;
&lt;p&gt;
   For a description on how to create a Web site project for a Web service see my &lt;a href="http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,571c52b5-b225-46f4-aae8-a192646592c5.aspx"&gt;previous
   blog entry regarding this issue&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
   I would like everyone to go ahead and create a Web site for your Web service. Once
   you have created it let me know by sending me the URL. This will allow me to check
   whether it has been created correctly.
&lt;/p&gt;
&lt;p&gt;
   The other thing that you probably want to send me is the classes that you will use
   in your project. This serves two purposes; one, I will be able to give you feedback
   on the class structure itself, second, I will be able to help you setup the functions
   in your Web service with the classes (i.e., getXList, updateX, ... whatever your X
   is).
&lt;/p&gt;
&lt;p&gt;
   One additional note. If you do want to test your Web service you need to insert this
   snippet of XML in your Web.config file:
&lt;/p&gt;
&lt;p&gt;
&lt;pre&gt;      &amp;lt;webServices&amp;gt;
        &amp;lt;protocols&amp;gt;
          &amp;lt;add name="HttpPost"/&amp;gt;
        &amp;lt;/protocols&amp;gt;
      &amp;lt;/webServices&amp;gt;
&lt;/pre&gt;
&lt;p&gt;
   It goes right under the 
&lt;/p&gt;
&lt;pre&gt;&amp;lt;system.web&amp;gt;&lt;/pre&gt;
tag in the Web.config file. 
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=87f94c97-8a88-4304-970f-6b9c9b021f96" /&gt;</description>
      <comments>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,87f94c97-8a88-4304-970f-6b9c9b021f96.aspx</comments>
      <category>Web service</category>
    </item>
    <item>
      <trackback:ping>http://www.531.sba.uwm.edu/mhaines/740Blog/Trackback.aspx?guid=9ead23a1-698c-4be8-a5dc-a8e547aeeb43</trackback:ping>
      <pingback:server>http://www.531.sba.uwm.edu/mhaines/740Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,9ead23a1-698c-4be8-a5dc-a8e547aeeb43.aspx</pingback:target>
      <dc:creator>mhaines@uwm.edu (ADMIN)</dc:creator>
      <wfw:comment>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,9ead23a1-698c-4be8-a5dc-a8e547aeeb43.aspx</wfw:comment>
      <wfw:commentRss>http://www.531.sba.uwm.edu/mhaines/740Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=9ead23a1-698c-4be8-a5dc-a8e547aeeb43</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      As you may have noted, lab #4 and assignment #4 are very similar. In fact, if you
      have completed the optional part of lab #4, you have essentially solved assignment
      #4.
   </p>
        <p>
      Here is where the solution to assignment #4 may differ slightly from the lab. In the
      lab the patient information is loaded into the listboxes right upon loading the form.
      In your assignment you should have a <em>load</em> and a <em>save</em> menu option.
      The data can be loaded from the Web service or from the local file. This means you
      may provide two load menu options (<em>load local</em> and <em>load remote</em>) ...
      or you could write code that tries to always load the remote file via the Web service
      and when this is not possible tries the local file. The quick and dirty solution would
      be a a try-catch statement. Just let the remote attempt fail and load the local file
      in the catch part. The smarter solution is to <a href="http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,ea5285ec-b716-4f2a-a2de-e59fda773847.aspx">determine
      with some code whether the device is connected</a> .
   </p>
        <p>
      In any case you will need to think about where the code that loads the data from the
      Web service has to go now, as this may be different from lab#4. There could be also
      some opportunity (not required) for refactoring!
   </p>
        <p>
      A note regarding using XML. As it became apparent in the demo provided in the last
      class session, you may need to add the System.Xml reference to your project references.
      Go to MyProject, the Reference tab, and view the existing references. If it is not
      listed, click on Add Reference and select System.Xml from the list in the dialog box.
      Then add a <code><strong>Imports System.Xml.Serialization</strong></code> statement
      at the top of your code file.
   </p>
        <p>
      MH<br /></p>
        <p class="zoundry_bw_tags">
          <!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com -->
          <span class="ztags">
            <span class="ztagspace">Technorati</span> : <a href="http://technorati.com/tag/BUS%20ADM%20740" class="ztag" rel="tag">BUS
      ADM 740</a>, <a href="http://technorati.com/tag/Web%20services" class="ztag" rel="tag">Web
      services</a>, <a href="http://technorati.com/tag/XML" class="ztag" rel="tag">XML</a></span>
        </p>
        <p class="poweredbyzoundry">
      Powered by <a href="http://www.zoundry.com" class="poweredbyzoundry_link" rel="nofollow">Zoundry</a></p>
        <img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=9ead23a1-698c-4be8-a5dc-a8e547aeeb43" />
      </body>
      <title>Using XML And Assignment #4</title>
      <guid>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,9ead23a1-698c-4be8-a5dc-a8e547aeeb43.aspx</guid>
      <link>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,9ead23a1-698c-4be8-a5dc-a8e547aeeb43.aspx</link>
      <pubDate>Fri, 18 Apr 2008 00:31:21 GMT</pubDate>
      <description>
&lt;p&gt;
   As you may have noted, lab #4 and assignment #4 are very similar. In fact, if you
   have completed the optional part of lab #4, you have essentially solved assignment
   #4.
&lt;/p&gt;
&lt;p&gt;
   Here is where the solution to assignment #4 may differ slightly from the lab. In the
   lab the patient information is loaded into the listboxes right upon loading the form.
   In your assignment you should have a &lt;em&gt;load&lt;/em&gt; and a &lt;em&gt;save&lt;/em&gt; menu option.
   The data can be loaded from the Web service or from the local file. This means you
   may provide two load menu options (&lt;em&gt;load local&lt;/em&gt; and &lt;em&gt;load remote&lt;/em&gt;) ...
   or you could write code that tries to always load the remote file via the Web service
   and when this is not possible tries the local file. The quick and dirty solution would
   be a a try-catch statement. Just let the remote attempt fail and load the local file
   in the catch part. The smarter solution is to &lt;a href="http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,ea5285ec-b716-4f2a-a2de-e59fda773847.aspx"&gt;determine
   with some code whether the device is connected&lt;/a&gt; .
&lt;/p&gt;
&lt;p&gt;
   In any case you will need to think about where the code that loads the data from the
   Web service has to go now, as this may be different from lab#4. There could be also
   some opportunity (not required) for refactoring!
&lt;/p&gt;
&lt;p&gt;
   A note regarding using XML. As it became apparent in the demo provided in the last
   class session, you may need to add the System.Xml reference to your project references.
   Go to MyProject, the Reference tab, and view the existing references. If it is not
   listed, click on Add Reference and select System.Xml from the list in the dialog box.
   Then add a &lt;code&gt;&lt;strong&gt;Imports System.Xml.Serialization&lt;/strong&gt;&lt;/code&gt; statement
   at the top of your code file.
&lt;/p&gt;
&lt;p&gt;
   MH&lt;br /&gt;
&lt;/p&gt;
&lt;p class="zoundry_bw_tags"&gt;
   &lt;!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com --&gt;
   &lt;span class="ztags"&gt;&lt;span class="ztagspace"&gt;Technorati&lt;/span&gt; : &lt;a href="http://technorati.com/tag/BUS%20ADM%20740" class="ztag" rel="tag"&gt;BUS
   ADM 740&lt;/a&gt;, &lt;a href="http://technorati.com/tag/Web%20services" class="ztag" rel="tag"&gt;Web
   services&lt;/a&gt;, &lt;a href="http://technorati.com/tag/XML" class="ztag" rel="tag"&gt;XML&lt;/a&gt;&lt;/span&gt; 
&lt;/p&gt;
&lt;p class="poweredbyzoundry"&gt;
   Powered by &lt;a href="http://www.zoundry.com" class="poweredbyzoundry_link" rel="nofollow"&gt;Zoundry&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=9ead23a1-698c-4be8-a5dc-a8e547aeeb43" /&gt;</description>
      <comments>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,9ead23a1-698c-4be8-a5dc-a8e547aeeb43.aspx</comments>
      <category>BUS ADM 740</category>
    </item>
    <item>
      <trackback:ping>http://www.531.sba.uwm.edu/mhaines/740Blog/Trackback.aspx?guid=846850b2-ddf7-43e1-9696-bdcff09cfdd4</trackback:ping>
      <pingback:server>http://www.531.sba.uwm.edu/mhaines/740Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,846850b2-ddf7-43e1-9696-bdcff09cfdd4.aspx</pingback:target>
      <dc:creator>mhaines@uwm.edu (ADMIN)</dc:creator>
      <wfw:comment>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,846850b2-ddf7-43e1-9696-bdcff09cfdd4.aspx</wfw:comment>
      <wfw:commentRss>http://www.531.sba.uwm.edu/mhaines/740Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=846850b2-ddf7-43e1-9696-bdcff09cfdd4</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      How can one leverage XML without knowing much about XML?
   </p>
        <p>
      The answer, as indicated in the previous posting, is XML serialization.
   </p>
        <p>
      An XML serializer can be used to turn the data stored in objects into XML (and back
      from XML into objects). All the serializer needs to know is the class the objects
      are derived from. The serializer looks at the class definition and creates a corresponding
      XML structure. (The class has to be "serializable" and there are some cases where
      this automatic process will not work!)
   </p>
        <p>
      Below is some example code in which an XML serializer is leveraged to save and load <i>DataItem</i> objects.
      The <i>loadDataItems</i> function reads the XML from a file and returns an array of
      DataItem objects. (DataItem could be replaced with Person, Patient, Contract, Restaurant,
      ... whatever your class is!). The <i>saveDataItems</i> function takes an array of
      DataItem objects and writes it to an XML file.<br /></p>
        <br />
        <p>
      MH<br /></p>
        <p>
      --- Code ---<br /></p>
        <p>
        </p>
        <pre>'need these imports at the top of your VB code!<br />
   Imports System.Xml<br />
   Imports System.Xml.Serialization<br />
   Imports System.IO<br /><br />
   ...<br /><br />
   Public Shared Function loadDataItems() As DataItem()<br />
   Dim mySerializer As XmlSerializer<br />
   Dim dataItems As DataItem()<br /><br />
   Try<br />
   mySerializer = New XmlSerializer(GetType(DataItem()))<br /><br />
   ' To read the file, create a FileStream.<br />
   Dim myFileStream As FileStream = _<br />
   New FileStream(_filePath, FileMode.Open)<br /><br />
   ' Call the Deserialize method and cast to the object type.<br />
   dataItems = CType(mySerializer.Deserialize(myFileStream), DataItem())<br />
   Return dataItems<br />
   Catch ex As Exception<br />
   Return Nothing<br />
   End Try<br /><br />
   End Function<br /><br />
   Public Shared Function saveDataItems(ByVal dataItems As DataItem()) As Boolean<br />
   Dim mySerializer As XmlSerializer<br /><br />
   Try<br />
   mySerializer = New XmlSerializer(GetType(DataItem()))<br /><br />
   ' To write to a file, create a StreamWriter object.<br />
   Dim myWriter As StreamWriter = _<br />
   New StreamWriter(_filePath)<br /><br />
   mySerializer.Serialize(myWriter, dataItems)<br />
   myWriter.Close()<br />
   Return True<br />
   Catch ex As Exception<br />
   Return False<br />
   End Try<br /><br />
   End Function<br /></pre>
        <p>
        </p>
        <img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=846850b2-ddf7-43e1-9696-bdcff09cfdd4" />
      </body>
      <title>Working with XML ... without knowing much about XML</title>
      <guid>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,846850b2-ddf7-43e1-9696-bdcff09cfdd4.aspx</guid>
      <link>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,846850b2-ddf7-43e1-9696-bdcff09cfdd4.aspx</link>
      <pubDate>Fri, 04 Apr 2008 15:22:02 GMT</pubDate>
      <description>&lt;p&gt;
   How can one leverage XML without knowing much about XML?
&lt;/p&gt;
&lt;p&gt;
   The answer, as indicated in the previous posting, is XML serialization.
&lt;/p&gt;
&lt;p&gt;
   An XML serializer can be used to turn the data stored in objects into XML (and back
   from XML into objects). All the serializer needs to know is the class the objects
   are derived from. The serializer looks at the class definition and creates a corresponding
   XML structure. (The class has to be "serializable" and there are some cases where
   this automatic process will not work!)
&lt;/p&gt;
&lt;p&gt;
   Below is some example code in which an XML serializer is leveraged to save and load &lt;i&gt;DataItem&lt;/i&gt; objects.
   The &lt;i&gt;loadDataItems&lt;/i&gt; function reads the XML from a file and returns an array of
   DataItem objects. (DataItem could be replaced with Person, Patient, Contract, Restaurant,
   ... whatever your class is!). The &lt;i&gt;saveDataItems&lt;/i&gt; function takes an array of
   DataItem objects and writes it to an XML file.&lt;br&gt;
&lt;/p&gt;
&lt;br&gt;
&lt;p&gt;
   MH&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
   --- Code ---&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;pre&gt;'need these imports at the top of your VB code!&lt;br&gt;
Imports System.Xml&lt;br&gt;
Imports System.Xml.Serialization&lt;br&gt;
Imports System.IO&lt;br&gt;
&lt;br&gt;
...&lt;br&gt;
&lt;br&gt;
Public Shared Function loadDataItems() As DataItem()&lt;br&gt;
Dim mySerializer As XmlSerializer&lt;br&gt;
Dim dataItems As DataItem()&lt;br&gt;
&lt;br&gt;
Try&lt;br&gt;
mySerializer = New XmlSerializer(GetType(DataItem()))&lt;br&gt;
&lt;br&gt;
' To read the file, create a FileStream.&lt;br&gt;
Dim myFileStream As FileStream = _&lt;br&gt;
New FileStream(_filePath, FileMode.Open)&lt;br&gt;
&lt;br&gt;
' Call the Deserialize method and cast to the object type.&lt;br&gt;
dataItems = CType(mySerializer.Deserialize(myFileStream), DataItem())&lt;br&gt;
Return dataItems&lt;br&gt;
Catch ex As Exception&lt;br&gt;
Return Nothing&lt;br&gt;
End Try&lt;br&gt;
&lt;br&gt;
End Function&lt;br&gt;
&lt;br&gt;
Public Shared Function saveDataItems(ByVal dataItems As DataItem()) As Boolean&lt;br&gt;
Dim mySerializer As XmlSerializer&lt;br&gt;
&lt;br&gt;
Try&lt;br&gt;
mySerializer = New XmlSerializer(GetType(DataItem()))&lt;br&gt;
&lt;br&gt;
' To write to a file, create a StreamWriter object.&lt;br&gt;
Dim myWriter As StreamWriter = _&lt;br&gt;
New StreamWriter(_filePath)&lt;br&gt;
&lt;br&gt;
mySerializer.Serialize(myWriter, dataItems)&lt;br&gt;
myWriter.Close()&lt;br&gt;
Return True&lt;br&gt;
Catch ex As Exception&lt;br&gt;
Return False&lt;br&gt;
End Try&lt;br&gt;
&lt;br&gt;
End Function&lt;br&gt;
&lt;/pre&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=846850b2-ddf7-43e1-9696-bdcff09cfdd4" /&gt;</description>
      <comments>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,846850b2-ddf7-43e1-9696-bdcff09cfdd4.aspx</comments>
      <category>project;XML</category>
    </item>
    <item>
      <trackback:ping>http://www.531.sba.uwm.edu/mhaines/740Blog/Trackback.aspx?guid=3fb1571b-8a34-4f96-8bb5-5f8e1261113f</trackback:ping>
      <pingback:server>http://www.531.sba.uwm.edu/mhaines/740Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,3fb1571b-8a34-4f96-8bb5-5f8e1261113f.aspx</pingback:target>
      <dc:creator>mhaines@uwm.edu (ADMIN)</dc:creator>
      <wfw:comment>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,3fb1571b-8a34-4f96-8bb5-5f8e1261113f.aspx</wfw:comment>
      <wfw:commentRss>http://www.531.sba.uwm.edu/mhaines/740Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=3fb1571b-8a34-4f96-8bb5-5f8e1261113f</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      I had a chance today to review the project requirements documents and plans.
   </p>
        <p>
      There are some very interesting projects, some even with potential for becoming
      something more than just a class project. 
   </p>
        <p>
      I encourage everyone to share their ideas, designs, and other insights related to
      the project on the blog. (Tag these entries with the keyword "project" so
      others can search for it!) It may give others some good ideas, but can also help to
      shape your own thinking. 
   </p>
        <p>
      Here are some of the key things that most need to focus on right now:
   </p>
        <ul>
          <li>
         Understand the data: identify the key entities, their characteristics, and relationships 
      </li>
          <li>
         Define the actions: identify and describe the actions that uses may take, in "business"
         not in technical terms ("the user updates the database" is too technical, "updates
         the task status to completed" is more appropriate).</li>
        </ul>
        <p>
      The conceptual data design will enventually result in a set of classes for your application.
      The great thing is that having these classes it is quite easy to save data stored
      in objects of this class in XML files ... without knowing much about XML. The process
      is called <strong>serialization</strong> and .NET provides a XmlSerializer class that
      makes this process quite simple. 
   </p>
        <p>
      More later ...
   </p>
        <p>
      MH
   </p>
        <p>
       
   </p>
        <p>
       
   </p>
        <p>
       
   </p>
        <img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=3fb1571b-8a34-4f96-8bb5-5f8e1261113f" />
      </body>
      <title>Projects moving along ...</title>
      <guid>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,3fb1571b-8a34-4f96-8bb5-5f8e1261113f.aspx</guid>
      <link>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,3fb1571b-8a34-4f96-8bb5-5f8e1261113f.aspx</link>
      <pubDate>Fri, 04 Apr 2008 04:18:46 GMT</pubDate>
      <description>&lt;p&gt;
   I had a chance today to review the project requirements documents and plans.
&lt;/p&gt;
&lt;p&gt;
   There are some very interesting projects, some even with potential for&amp;nbsp;becoming
   something more than just a class project. 
&lt;/p&gt;
&lt;p&gt;
   I encourage everyone to share their ideas, designs, and other insights related to
   the project&amp;nbsp;on the blog. (Tag these entries with the keyword "project"&amp;nbsp;so
   others can search for it!) It may give others some good ideas, but can also help to
   shape your own thinking. 
&lt;/p&gt;
&lt;p&gt;
   Here are some of the key things that most need to focus on right now:
&lt;/p&gt;
&lt;ul&gt;
   &lt;li&gt;
      Understand the data: identify the key entities, their characteristics, and relationships 
   &lt;li&gt;
      Define the actions: identify and describe the actions that uses may take, in "business"
      not in technical terms ("the user updates the database" is too technical, "updates
      the task status to completed" is more appropriate).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
   The conceptual data design will enventually result in a set of classes for your application.
   The great thing is that having these classes it is quite easy to save data stored
   in objects of this class in XML files ... without knowing much about XML. The process
   is called &lt;strong&gt;serialization&lt;/strong&gt; and .NET provides a XmlSerializer class that
   makes this process quite simple. 
&lt;/p&gt;
&lt;p&gt;
   More later ...
&lt;/p&gt;
&lt;p&gt;
   MH
&lt;/p&gt;
&lt;p&gt;
   &amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
   &amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
   &amp;nbsp;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=3fb1571b-8a34-4f96-8bb5-5f8e1261113f" /&gt;</description>
      <comments>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,3fb1571b-8a34-4f96-8bb5-5f8e1261113f.aspx</comments>
      <category>project</category>
    </item>
    <item>
      <trackback:ping>http://www.531.sba.uwm.edu/mhaines/740Blog/Trackback.aspx?guid=ae8eaab2-e6b2-4bce-8c7d-acb89d321daf</trackback:ping>
      <pingback:server>http://www.531.sba.uwm.edu/mhaines/740Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,ae8eaab2-e6b2-4bce-8c7d-acb89d321daf.aspx</pingback:target>
      <dc:creator>mhaines@uwm.edu (ADMIN)</dc:creator>
      <wfw:comment>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,ae8eaab2-e6b2-4bce-8c7d-acb89d321daf.aspx</wfw:comment>
      <wfw:commentRss>http://www.531.sba.uwm.edu/mhaines/740Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=ae8eaab2-e6b2-4bce-8c7d-acb89d321daf</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">You can connect the emulator directly to
   the network without involving ActiveSync. 
   <br />
   ... and that's no April fools day joke. 
   <br /><br />
   So, there are two ways to connect to the network<br />
   1) simply cradle the emulator and connect via ActiveSync to the network,<br />
   2) use the VPC network driver to directly connect to the network (no ActiveSync involved). 
   <br /><br />
   If you want to achieve the latter, the first step is to see whether you have the VPC
   driver installed. Start the emulator and choose File-&gt;Configure ... from the top
   menu. 
   <br />
   In the configuration dialog window, choose the Network tab. Check the "Enable ...
   network adapter" box. If you do not have the VPC, you will get a message at this point.
   If you are able to check the box, you have the VPC driver already.<br /><br />
   If you do not have the VPC driver, go <a href="http://www.microsoft.com/downloads/details.aspx?familyid=DC8332D6-565F-4A57-BE8C-1D4718D3AF65&amp;displaylang=en">download</a> and
   install it. Then try to check the network adapter  box again in the configuration
   dialog of the emulator.<br /><br />
   To test whether you can connect to the network with your emulator, just start the
   Web browser and try to connect to a Web site (i.e., google.com). 
   <br />
   If this does not work, check the following:<br />
   In the emulator, choose "Settings" from the start menu (drop down from the top left
   corner).<br />
   In settings,  choose the  "Connections" tab, then click on "Network Cards".
   The drop down list for "My network card connects to" should show "The Internet".<br /><br />
   MH<br /><br /><br /><p></p><img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=ae8eaab2-e6b2-4bce-8c7d-acb89d321daf" /></body>
      <title>Connecting the Emulator to the Network</title>
      <guid>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,ae8eaab2-e6b2-4bce-8c7d-acb89d321daf.aspx</guid>
      <link>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,ae8eaab2-e6b2-4bce-8c7d-acb89d321daf.aspx</link>
      <pubDate>Tue, 01 Apr 2008 15:57:48 GMT</pubDate>
      <description>You can connect the emulator directly to the network without involving ActiveSync. &lt;br&gt;
... and that's no April fools day joke. 
&lt;br&gt;
&lt;br&gt;
So, there are two ways to connect to the network&lt;br&gt;
1) simply cradle the emulator and connect via ActiveSync to the network,&lt;br&gt;
2) use the VPC network driver to directly connect to the network (no ActiveSync involved). 
&lt;br&gt;
&lt;br&gt;
If you want to achieve the latter, the first step is to see whether you have the VPC
driver installed. Start the emulator and choose File-&amp;gt;Configure ... from the top
menu. 
&lt;br&gt;
In the configuration dialog window, choose the Network tab. Check the "Enable ...
network adapter" box. If you do not have the VPC, you will get a message at this point.
If you are able to check the box, you have the VPC driver already.&lt;br&gt;
&lt;br&gt;
If you do not have the VPC driver, go &lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=DC8332D6-565F-4A57-BE8C-1D4718D3AF65&amp;amp;displaylang=en"&gt;download&lt;/a&gt; and
install it. Then try to check the network adapter&amp;nbsp; box again in the configuration
dialog of the emulator.&lt;br&gt;
&lt;br&gt;
To test whether you can connect to the network with your emulator, just start the
Web browser and try to connect to a Web site (i.e., google.com). 
&lt;br&gt;
If this does not work, check the following:&lt;br&gt;
In the emulator, choose "Settings" from the start menu (drop down from the top left
corner).&lt;br&gt;
In settings,&amp;nbsp; choose the&amp;nbsp; "Connections" tab, then click on "Network Cards".
The drop down list for "My network card connects to" should show "The Internet".&lt;br&gt;
&lt;br&gt;
MH&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=ae8eaab2-e6b2-4bce-8c7d-acb89d321daf" /&gt;</description>
      <comments>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,ae8eaab2-e6b2-4bce-8c7d-acb89d321daf.aspx</comments>
      <category>BUS ADM 740;emulator;network</category>
    </item>
    <item>
      <trackback:ping>http://www.531.sba.uwm.edu/mhaines/740Blog/Trackback.aspx?guid=562a3402-5f31-49c5-adcc-9dfee617cb2a</trackback:ping>
      <pingback:server>http://www.531.sba.uwm.edu/mhaines/740Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,562a3402-5f31-49c5-adcc-9dfee617cb2a.aspx</pingback:target>
      <dc:creator>mhaines@uwm.edu (ADMIN)</dc:creator>
      <wfw:comment>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,562a3402-5f31-49c5-adcc-9dfee617cb2a.aspx</wfw:comment>
      <wfw:commentRss>http://www.531.sba.uwm.edu/mhaines/740Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=562a3402-5f31-49c5-adcc-9dfee617cb2a</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      Here is an example of how to use my NOAA Weather service. The service is available
      (and can be tested) at <a href="http://www.531.sba.uwm.edu/mhaines/webservices/NOAAWeatherService.asmx">http://www.531.sba.uwm.edu/mhaines/webservices/NOAAWeatherService.asmx</a></p>
        <p>
      For this example I created a simple form with a textbox called txtSearch, a button
      called btnFindLocations, a combo box called cbxLocations, and a label called lblWeather.
   </p>
        <p>
      The user can enter a search term in the txt box and the weather stations that match
      will be added to the list of items in the combo box. The display member of the combo
      box is set to "description", thus the content of the description shows for each item.
   </p>
        <p>
      There are two event handler routine shown in the example code below. One for the user
      clicking on the button, the other for the user selecting an item from the list. If
      you create controls (textboxes etc.) on your form with the same ID as I mentioned
      above, all you need to do is to insert the code in the class that represents your
      form, and create a Web reference to the weather Web service (see URL above) called <em>wrefWeatherService</em> .
   </p>
        <p>
          <br />
        </p>
        <pre xml:space="preserve">
    Private Sub btnFindLocations_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFindLocations.Click
        Dim ws As New wrefWeatherService.NOAAWeatherService 'weather service objet
        Dim locations As wrefWeatherService.WeatherStation() 'array of weather stations called locations
        
        Try
            'get the locations matching search term from Web service
            locations = ws.searchLocation(txtSearch.Text)


            'fill the combo box
            cbxLocations.DisplayMember = "Description" 'show station description
            For Each thisLocation As wrefWeatherService.WeatherStation In locations
                cbxLocations.Items.Add(thisLocation) 'add station to list
            Next

        Catch ex As Exception
            lblWeather.Text = "ERROR - btnFindLocations_Click" &amp; ControlChars.CrLf &amp; ex.Message
        End Try

    End Sub

    Private Sub cbxLocations_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cbxLocations.SelectedIndexChanged
        Dim ws As New wrefWeatherService.NOAAWeatherService
        Dim weatherInfo As wrefWeatherService.WeatherInfo
        Dim l As wrefWeatherService.WeatherStation

        Try
            l = cbxLocations.SelectedItem
            weatherInfo = ws.getWeatherForLocation(l.StationName, l.StationRegion, l.StationCode, l.Longitude, l.Latitude)
            lblWeather.Text = weatherInfo.LocationName &amp; ControlChars.CrLf
            lblWeather.Text += weatherInfo.TemperatureAirInFahrenheit &amp; "F "
            lblWeather.Text += weatherInfo.TemperatureAirInCelsius &amp; "C "
        Catch ex As Exception
            lblWeather.Text = "ERROR - cbxLocations" &amp; ControlChars.CrLf &amp; ex.Message
        End Try
    End Sub

  
</pre>
        <p>
      The key steps for using a Web service are ...
   </p>
        <ol>
          <li>
         Create a Web reference (need URL to WSDL of service)</li>
          <li>
         Declare and create a Web service object (must create with New!)</li>
          <li>
         A variable that can receive the result of the Web service needs to be declared (simple
         data type of complex type defined in Web service).</li>
          <li>
         Call method of the Web service and receive the result</li>
          <li>
         Do something with the result (i.e., but the weather stations in the listbox)</li>
        </ol>
        <br />
        <p class="zoundry_bw_tags">
          <!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com -->
          <span class="ztags">
            <span class="ztagspace">Technorati</span> : <a href="http://technorati.com/tag/BUS%20ADM%20740" class="ztag" rel="tag">BUS
      ADM 740</a>, <a href="http://technorati.com/tag/Web%20service" class="ztag" rel="tag">Web
      service</a></span>
        </p>
        <img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=562a3402-5f31-49c5-adcc-9dfee617cb2a" />
      </body>
      <title>Using Web services - example weather service</title>
      <guid>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,562a3402-5f31-49c5-adcc-9dfee617cb2a.aspx</guid>
      <link>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,562a3402-5f31-49c5-adcc-9dfee617cb2a.aspx</link>
      <pubDate>Fri, 28 Mar 2008 09:07:20 GMT</pubDate>
      <description>
&lt;p&gt;
   Here is an example of how to use my NOAA Weather service. The service is available
   (and can be tested) at &lt;a href="http://www.531.sba.uwm.edu/mhaines/webservices/NOAAWeatherService.asmx"&gt;http://www.531.sba.uwm.edu/mhaines/webservices/NOAAWeatherService.asmx&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
   For this example I created a simple form with a textbox called txtSearch, a button
   called btnFindLocations, a combo box called cbxLocations, and a label called lblWeather.
&lt;/p&gt;
&lt;p&gt;
   The user can enter a search term in the txt box and the weather stations that match
   will be added to the list of items in the combo box. The display member of the combo
   box is set to "description", thus the content of the description shows for each item.
&lt;/p&gt;
&lt;p&gt;
   There are two event handler routine shown in the example code below. One for the user
   clicking on the button, the other for the user selecting an item from the list. If
   you create controls (textboxes etc.) on your form with the same ID as I mentioned
   above, all you need to do is to insert the code in the class that represents your
   form, and create a Web reference to the weather Web service (see URL above) called &lt;em&gt;wrefWeatherService&lt;/em&gt; .
&lt;/p&gt;
&lt;p&gt;
   &lt;br /&gt;
&lt;/p&gt;
&lt;pre xml:space="preserve"&gt;
    Private Sub btnFindLocations_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFindLocations.Click
        Dim ws As New wrefWeatherService.NOAAWeatherService 'weather service objet
        Dim locations As wrefWeatherService.WeatherStation() 'array of weather stations called locations
        
        Try
            'get the locations matching search term from Web service
            locations = ws.searchLocation(txtSearch.Text)


            'fill the combo box
            cbxLocations.DisplayMember = "Description" 'show station description
            For Each thisLocation As wrefWeatherService.WeatherStation In locations
                cbxLocations.Items.Add(thisLocation) 'add station to list
            Next

        Catch ex As Exception
            lblWeather.Text = "ERROR - btnFindLocations_Click" &amp;amp; ControlChars.CrLf &amp;amp; ex.Message
        End Try

    End Sub

    Private Sub cbxLocations_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cbxLocations.SelectedIndexChanged
        Dim ws As New wrefWeatherService.NOAAWeatherService
        Dim weatherInfo As wrefWeatherService.WeatherInfo
        Dim l As wrefWeatherService.WeatherStation

        Try
            l = cbxLocations.SelectedItem
            weatherInfo = ws.getWeatherForLocation(l.StationName, l.StationRegion, l.StationCode, l.Longitude, l.Latitude)
            lblWeather.Text = weatherInfo.LocationName &amp;amp; ControlChars.CrLf
            lblWeather.Text += weatherInfo.TemperatureAirInFahrenheit &amp;amp; "F "
            lblWeather.Text += weatherInfo.TemperatureAirInCelsius &amp;amp; "C "
        Catch ex As Exception
            lblWeather.Text = "ERROR - cbxLocations" &amp;amp; ControlChars.CrLf &amp;amp; ex.Message
        End Try
    End Sub

  
&lt;/pre&gt;
&lt;p&gt;
   The key steps for using a Web service are ...
&lt;/p&gt;
&lt;ol&gt;
   &lt;li&gt;
      Create a Web reference (need URL to WSDL of service)&lt;/li&gt;
   &lt;li&gt;
      Declare and create a Web service object (must create with New!)&lt;/li&gt;
   &lt;li&gt;
      A variable that can receive the result of the Web service needs to be declared (simple
      data type of complex type defined in Web service).&lt;/li&gt;
   &lt;li&gt;
      Call method of the Web service and receive the result&lt;/li&gt;
   &lt;li&gt;
      Do something with the result (i.e., but the weather stations in the listbox)&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;p class="zoundry_bw_tags"&gt;
   &lt;!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com --&gt;
   &lt;span class="ztags"&gt;&lt;span class="ztagspace"&gt;Technorati&lt;/span&gt; : &lt;a href="http://technorati.com/tag/BUS%20ADM%20740" class="ztag" rel="tag"&gt;BUS
   ADM 740&lt;/a&gt;, &lt;a href="http://technorati.com/tag/Web%20service" class="ztag" rel="tag"&gt;Web
   service&lt;/a&gt;&lt;/span&gt; 
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=562a3402-5f31-49c5-adcc-9dfee617cb2a" /&gt;</description>
      <comments>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,562a3402-5f31-49c5-adcc-9dfee617cb2a.aspx</comments>
      <category>BUS ADM 740</category>
    </item>
    <item>
      <trackback:ping>http://www.531.sba.uwm.edu/mhaines/740Blog/Trackback.aspx?guid=e6cd5793-8f7f-403e-9b4a-d5431e753b5c</trackback:ping>
      <pingback:server>http://www.531.sba.uwm.edu/mhaines/740Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,e6cd5793-8f7f-403e-9b4a-d5431e753b5c.aspx</pingback:target>
      <dc:creator>mhaines@uwm.edu (ADMIN)</dc:creator>
      <wfw:comment>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,e6cd5793-8f7f-403e-9b4a-d5431e753b5c.aspx</wfw:comment>
      <wfw:commentRss>http://www.531.sba.uwm.edu/mhaines/740Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=e6cd5793-8f7f-403e-9b4a-d5431e753b5c</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      I have posted an <a href="http://www.sba.uwm.edu/gdrive/Haines_M/BUSADM740%20MisConceptsAndLanguages/project/ProjectPlan_Example.doc">example
      of a requirements document and project plan</a> from last year's class.
   </p>
        <p>
      Also take a look at the <a href="http://www.531.sba.uwm.edu/mhaines/courses/740/Project/Default.aspx">project
      milestone</a> description on the course Web site.
   </p>
        <p>
      MH
   </p>
        <p class="zoundry_bw_tags">
          <!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com -->
          <span class="ztags">
            <span class="ztagspace">Technorati</span> : <a href="http://technorati.com/tag/BUS%20ADM740" class="ztag" rel="tag">BUS
      ADM740</a></span>
        </p>
        <img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=e6cd5793-8f7f-403e-9b4a-d5431e753b5c" />
      </body>
      <title>Project Plan</title>
      <guid>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,e6cd5793-8f7f-403e-9b4a-d5431e753b5c.aspx</guid>
      <link>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,e6cd5793-8f7f-403e-9b4a-d5431e753b5c.aspx</link>
      <pubDate>Wed, 26 Mar 2008 08:46:57 GMT</pubDate>
      <description>
&lt;p&gt;
   I have posted an &lt;a href="http://www.sba.uwm.edu/gdrive/Haines_M/BUSADM740%20MisConceptsAndLanguages/project/ProjectPlan_Example.doc"&gt;example
   of a requirements document and project plan&lt;/a&gt; from last year's class.
&lt;/p&gt;
&lt;p&gt;
   Also take a look at the &lt;a href="http://www.531.sba.uwm.edu/mhaines/courses/740/Project/Default.aspx"&gt;project
   milestone&lt;/a&gt; description on the course Web site.
&lt;/p&gt;
&lt;p&gt;
   MH
&lt;/p&gt;
&lt;p class="zoundry_bw_tags"&gt;
   &lt;!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com --&gt;
   &lt;span class="ztags"&gt;&lt;span class="ztagspace"&gt;Technorati&lt;/span&gt; : &lt;a href="http://technorati.com/tag/BUS%20ADM740" class="ztag" rel="tag"&gt;BUS
   ADM740&lt;/a&gt;&lt;/span&gt; 
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=e6cd5793-8f7f-403e-9b4a-d5431e753b5c" /&gt;</description>
      <comments>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,e6cd5793-8f7f-403e-9b4a-d5431e753b5c.aspx</comments>
      <category>BUS ADM 740</category>
    </item>
    <item>
      <trackback:ping>http://www.531.sba.uwm.edu/mhaines/740Blog/Trackback.aspx?guid=38be8140-8183-4d1d-af73-8c079dccd93b</trackback:ping>
      <pingback:server>http://www.531.sba.uwm.edu/mhaines/740Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,38be8140-8183-4d1d-af73-8c079dccd93b.aspx</pingback:target>
      <dc:creator>mhaines@uwm.edu (ADMIN)</dc:creator>
      <wfw:comment>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,38be8140-8183-4d1d-af73-8c079dccd93b.aspx</wfw:comment>
      <wfw:commentRss>http://www.531.sba.uwm.edu/mhaines/740Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=38be8140-8183-4d1d-af73-8c079dccd93b</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      Ok, now you have a Web service (or you know where there is one that provides the needed
      functionality), how do you leverage it.
   </p>
        <p>
      Here are the key steps:
   </p>
        <ol>
          <li>
         Know the URL of the WSDL for the Web service.<br />
         The WSDL may reside on your local machine or on the Web. In case of the typical .NET
         Web service the WSDL can be accessed by adding a ?wsdl after the .asmx file of the
         Web service (i.e., http://www.531.sba.uwm.edu/mhaines/WebServices/testService.asmx?wsdl).
         If it is your Web service, an easy way to figure out the URL of the Web service is
         to run it in the browser and copy the URL from the browser.</li>
          <li>
         Create a Web reference.<br />
         Right-click on your project in Visual Studio and choose 'Add Web Reference'. In the
         dialog window provide the URL to the WSDL (or just the .asmx file, if it is a .NET
         based Web service) and hit 'Go'. If the Web service and its methods show up, provide
         a name for the Web reference. I like to call them wref... (i.e., wrefTestService for
         my testService.asmx) rather than the default reverse domain name.</li>
          <li>
         Create a Web service object.<br />
         Declare a variable of type WebReferenceName.ServiceName (i.e., Dim ws As New wrefTestService.TestService).
         The ServiceName is the name of the Web service class in the .asmx file! ... and don't
         forget to actually create the object with the keyword New (one of the top 10 mistakes)!</li>
          <li>
         Use the Web methods of the Web service.<br />
         Example: result = ws.testMethod()<br />
         Keep in mind that the data type of result must match the data type returned by the
         service. A service method may also have input parameters.</li>
        </ol>
        <p>
      You may also peek into the lab instructions for <a href="http://www.sba.uwm.edu/gdrive/Haines_M/BUSADM746%20EAI/labs/lab1/lab1.doc">lab
      #1 of the BUS ADM 746</a> course.
   </p>
        <p>
      BTW, here is a list of a couple of Web services that you can check out:
   </p>
        <ul>
          <li>
         test web service: <a href="http://www.531.sba.uwm.edu/mhaines/webservices/testService.asmx">http://www.531.sba.uwm.edu/mhaines/webservices/testService.asmx</a></li>
          <li>
         weather service: <a href="http://www.531.sba.uwm.edu/mhaines/webservices/NOAAWeatherService.asmx">http://www.531.sba.uwm.edu/mhaines/webservices/NOAAWeatherService.asmx</a></li>
          <li>
         traffic service: <a href="http://www.531old.sba.uwm.edu/webservices/trafficservice.asmx/getTrafficInfo">http://www.531old.sba.uwm.edu/webservices/trafficservice.asmx/getTrafficInfo</a></li>
          <li>
         simple Amazon book list service: <a href="http://www.531.sba.uwm.edu/mhaines/webservices/amazon.asmx">http://www.531.sba.uwm.edu/mhaines/webservices/amazon.asmx</a></li>
        </ul>
        <p>
      Also look on the following sites for service:
   </p>
        <ul>
          <li>
            <a href="http://www.xmethods.net">www.xmethods.net</a>
          </li>
          <li>
            <a href="http://www.strikeiron.com">www.strikeiron.com</a>
          </li>
          <li>
            <a href="http://www.serviceobjects.com">www.serviceobjects.com</a>
          </li>
        </ul>
        <p>
      You also just search for it. If you are interested in a Web service that provides
      stock quotes just search for "stock quote Web service".
   </p>
        <p>
      [Note: A - not all services listed always work , B - you may need to sign up for a
      trial license to use a service ]<br /></p>
        <p>
      MH
   </p>
        <p class="zoundry_bw_tags">
          <!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com -->
          <span class="ztags">
            <span class="ztagspace">Technorati</span> : <a href="http://technorati.com/tag/BUS%20ADM%20740" class="ztag" rel="tag">BUS
      ADM 740</a>, <a href="http://technorati.com/tag/Web%20services" class="ztag" rel="tag">Web
      services</a></span>
        </p>
        <p class="poweredbyzoundry">
      Powered by <a href="http://www.zoundry.com" class="poweredbyzoundry_link" rel="nofollow">Zoundry</a></p>
        <img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=38be8140-8183-4d1d-af73-8c079dccd93b" />
      </body>
      <title>Leveraging a Web service</title>
      <guid>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,38be8140-8183-4d1d-af73-8c079dccd93b.aspx</guid>
      <link>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,38be8140-8183-4d1d-af73-8c079dccd93b.aspx</link>
      <pubDate>Mon, 24 Mar 2008 21:10:27 GMT</pubDate>
      <description>
&lt;p&gt;
   Ok, now you have a Web service (or you know where there is one that provides the needed
   functionality), how do you leverage it.
&lt;/p&gt;
&lt;p&gt;
   Here are the key steps:
&lt;/p&gt;
&lt;ol&gt;
   &lt;li&gt;
      Know the URL of the WSDL for the Web service.&lt;br /&gt;
      The WSDL may reside on your local machine or on the Web. In case of the typical .NET
      Web service the WSDL can be accessed by adding a ?wsdl after the .asmx file of the
      Web service (i.e., http://www.531.sba.uwm.edu/mhaines/WebServices/testService.asmx?wsdl).
      If it is your Web service, an easy way to figure out the URL of the Web service is
      to run it in the browser and copy the URL from the browser.&lt;/li&gt;
   &lt;li&gt;
      Create a Web reference.&lt;br /&gt;
      Right-click on your project in Visual Studio and choose 'Add Web Reference'. In the
      dialog window provide the URL to the WSDL (or just the .asmx file, if it is a .NET
      based Web service) and hit 'Go'. If the Web service and its methods show up, provide
      a name for the Web reference. I like to call them wref... (i.e., wrefTestService for
      my testService.asmx) rather than the default reverse domain name.&lt;/li&gt;
   &lt;li&gt;
      Create a Web service object.&lt;br /&gt;
      Declare a variable of type WebReferenceName.ServiceName (i.e., Dim ws As New wrefTestService.TestService).
      The ServiceName is the name of the Web service class in the .asmx file! ... and don't
      forget to actually create the object with the keyword New (one of the top 10 mistakes)!&lt;/li&gt;
   &lt;li&gt;
      Use the Web methods of the Web service.&lt;br /&gt;
      Example: result = ws.testMethod()&lt;br /&gt;
      Keep in mind that the data type of result must match the data type returned by the
      service. A service method may also have input parameters.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
   You may also peek into the lab instructions for &lt;a href="http://www.sba.uwm.edu/gdrive/Haines_M/BUSADM746%20EAI/labs/lab1/lab1.doc"&gt;lab
   #1 of the BUS ADM 746&lt;/a&gt; course.
&lt;/p&gt;
&lt;p&gt;
   BTW, here is a list of a couple of Web services that you can check out:
&lt;/p&gt;
&lt;ul&gt;
   &lt;li&gt;
      test web service: &lt;a href="http://www.531.sba.uwm.edu/mhaines/webservices/testService.asmx"&gt;http://www.531.sba.uwm.edu/mhaines/webservices/testService.asmx&lt;/a&gt;
   &lt;/li&gt;
   &lt;li&gt;
      weather service: &lt;a href="http://www.531.sba.uwm.edu/mhaines/webservices/NOAAWeatherService.asmx"&gt;http://www.531.sba.uwm.edu/mhaines/webservices/NOAAWeatherService.asmx&lt;/a&gt;
   &lt;/li&gt;
   &lt;li&gt;
      traffic service: &lt;a href="http://www.531old.sba.uwm.edu/webservices/trafficservice.asmx/getTrafficInfo"&gt;http://www.531old.sba.uwm.edu/webservices/trafficservice.asmx/getTrafficInfo&lt;/a&gt;
   &lt;/li&gt;
   &lt;li&gt;
      simple Amazon book list service: &lt;a href="http://www.531.sba.uwm.edu/mhaines/webservices/amazon.asmx"&gt;http://www.531.sba.uwm.edu/mhaines/webservices/amazon.asmx&lt;/a&gt;
   &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
   Also look on the following sites for service:
&lt;/p&gt;
&lt;ul&gt;
   &lt;li&gt;
      &lt;a href="http://www.xmethods.net"&gt;www.xmethods.net&lt;/a&gt;
   &lt;/li&gt;
   &lt;li&gt;
      &lt;a href="http://www.strikeiron.com"&gt;www.strikeiron.com&lt;/a&gt;
   &lt;/li&gt;
   &lt;li&gt;
      &lt;a href="http://www.serviceobjects.com"&gt;www.serviceobjects.com&lt;/a&gt;
   &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
   You also just search for it. If you are interested in a Web service that provides
   stock quotes just search for "stock quote Web service".
&lt;/p&gt;
&lt;p&gt;
   [Note: A - not all services listed always work , B - you may need to sign up for a
   trial license to use a service ]&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
   MH
&lt;/p&gt;
&lt;p class="zoundry_bw_tags"&gt;
   &lt;!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com --&gt;
   &lt;span class="ztags"&gt;&lt;span class="ztagspace"&gt;Technorati&lt;/span&gt; : &lt;a href="http://technorati.com/tag/BUS%20ADM%20740" class="ztag" rel="tag"&gt;BUS
   ADM 740&lt;/a&gt;, &lt;a href="http://technorati.com/tag/Web%20services" class="ztag" rel="tag"&gt;Web
   services&lt;/a&gt;&lt;/span&gt; 
&lt;/p&gt;
&lt;p class="poweredbyzoundry"&gt;
   Powered by &lt;a href="http://www.zoundry.com" class="poweredbyzoundry_link" rel="nofollow"&gt;Zoundry&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=38be8140-8183-4d1d-af73-8c079dccd93b" /&gt;</description>
      <comments>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,38be8140-8183-4d1d-af73-8c079dccd93b.aspx</comments>
      <category>BUS ADM 740</category>
    </item>
    <item>
      <trackback:ping>http://www.531.sba.uwm.edu/mhaines/740Blog/Trackback.aspx?guid=571c52b5-b225-46f4-aae8-a192646592c5</trackback:ping>
      <pingback:server>http://www.531.sba.uwm.edu/mhaines/740Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,571c52b5-b225-46f4-aae8-a192646592c5.aspx</pingback:target>
      <dc:creator>mhaines@uwm.edu (ADMIN)</dc:creator>
      <wfw:comment>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,571c52b5-b225-46f4-aae8-a192646592c5.aspx</wfw:comment>
      <wfw:commentRss>http://www.531.sba.uwm.edu/mhaines/740Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=571c52b5-b225-46f4-aae8-a192646592c5</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      All students have a folder on our Web server available in which you can create Web
      services (and Web pages). The base URL is <a href="http://www.746.sba.uwm.edu/">http://www.746.sba.uwm.edu/</a> .
      Just add your login name to the URL and that is your personal folder on the Web server
      under which you can create the Web sites.
   </p>
        <p>
      It is fairly easy to get started with setting up a Web service. The step below outline
      the process of setting up a Web service.
   </p>
        <ol>
          <li>
         Add a new Web site: right-click on your solution, then choose Add -&gt; New Web Site. 
      </li>
          <li>
         Select the Web site type: In the dialog window choose ASP.NET Web service, make sure
         Visual Basic is selected as the language (unless you want to do this in C#!), the
         location is set to HTTP and the URL for your web site (your folder URL + name of Web
         site, for example: http://www.746.sba.uwm.edu/mhaines/myWebServices). 
      </li>
          <li>
         Provide your SBA login (e.g., SBA\mhaines) 
      </li>
          <li>
         TaDaa ... there is your Web service! By default a Service.asmx (and Service.vb) is
         created and a HelloWorld test method. You can leverage this default service or - I
         would recommend - just add another Web service to the project and name it according
         to what it does (i.e., TrafficService.asmx). 
      </li>
          <li>
         Create your Web methods. Leverage the HelloWorld function as a template to create
         your own. Note that a Web method must have the &lt;WebMethod()&gt;_ annotation above
         the function header! 
      </li>
          <li>
         Test the Web service by right-clicking on the .asmx file and selecting run in Browser.
         A test page should show up and you should see your Web methods. I will place some
         more detailed information in the FAQ. 
      </li>
        </ol>
        <p>
      Again, this is something you can check, if you want to learn about creating a Web
      service. It's not required.
   </p>
        <p>
      One important thing that everyone will have to figure out, however, are the data structures
      that you many need.
   </p>
        <p>
      So if you deal with customer information, you need to figure out what the data elements
      are that pertain to the customer. In the end you will need to create a class that
      represents these data elements. This may look like the example below:
   </p>
        <p>
          <br />
        </p>
        <pre xml:space="preserve">    Class Customer
      Public ID As String
      Public FirstName As String
      Public LastName As String
      Public Email As String
    End Class
</pre>
        <p>
      With this you can now write functions that for instance get a list of Customer objects.
      For example:
   </p>
        <pre xml:space="preserve">'this function gets an array of Customer objects (the customer list)
Function getCustomerList() As Customer()
  'code here 
End Function
</pre>
        <p xml:space="preserve">
      If it is a Web Service function (Web Method) then add the Web Method annotation to
      the function header 
   </p>
        <pre xml:space="preserve">'this function is a Web Method that gets an array of Customer objects (the customer list)
&lt;Web Method()&gt; _
Function getCustomerList() As Customer()
  'code here 
End Function  
</pre>
        <p>
      OK, you have a Web service ... now what?
   </p>
        <p>
      See next posting on consuming a Web service from an application, including a mobile
      smart device application.
   </p>
        <p>
      MH
   </p>
        <p class="zoundry_bw_tags">
          <!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com -->
          <span class="ztags">
            <span class="ztagspace">Technorati</span> : <a class="ztag" href="http://technorati.com/tag/BUS%20ADM740" rel="tag">BUS
      ADM740</a>, <a class="ztag" href="http://technorati.com/tag/Web%20service" rel="tag">Web
      service</a></span>
        </p>
        <p class="poweredbyzoundry">
      Powered by <a class="poweredbyzoundry_link" href="http://www.zoundry.com" rel="nofollow">Zoundry</a></p>
        <img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=571c52b5-b225-46f4-aae8-a192646592c5" />
      </body>
      <title>Project: Setting up a Web service - providing a Web service</title>
      <guid>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,571c52b5-b225-46f4-aae8-a192646592c5.aspx</guid>
      <link>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,571c52b5-b225-46f4-aae8-a192646592c5.aspx</link>
      <pubDate>Mon, 17 Mar 2008 21:28:58 GMT</pubDate>
      <description>&lt;p&gt;
   All students have a folder on our Web server available in which you can create Web
   services (and Web pages). The base URL is &lt;a href="http://www.746.sba.uwm.edu/"&gt;http://www.746.sba.uwm.edu/&lt;/a&gt; .
   Just add your login name to the URL and that is your personal folder on the Web server
   under which you can create the Web sites.
&lt;/p&gt;
&lt;p&gt;
   It is fairly easy to get started with setting up a Web service. The step below outline
   the process of setting up a Web service.
&lt;/p&gt;
&lt;ol&gt;
   &lt;li&gt;
      Add a new Web site: right-click on your solution, then choose Add -&amp;gt; New Web Site. 
   &lt;li&gt;
      Select the Web site type: In the dialog window choose ASP.NET Web service, make sure
      Visual Basic is selected as the language (unless you want to do this in C#!), the
      location is set to HTTP and the URL for your web site (your folder URL + name of Web
      site, for example: http://www.746.sba.uwm.edu/mhaines/myWebServices). 
   &lt;li&gt;
      Provide your SBA login (e.g., SBA\mhaines) 
   &lt;li&gt;
      TaDaa ... there is your Web service! By default a Service.asmx (and Service.vb) is
      created and a HelloWorld test method. You can leverage this default service or - I
      would recommend - just add another Web service to the project and name it according
      to what it does (i.e., TrafficService.asmx). 
   &lt;li&gt;
      Create your Web methods. Leverage the HelloWorld function as a template to create
      your own. Note that a Web method must have the &amp;lt;WebMethod()&amp;gt;_ annotation above
      the function header! 
   &lt;li&gt;
      Test the Web service by right-clicking on the .asmx file and selecting run in Browser.
      A test page should show up and you should see your Web methods. I will place some
      more detailed information in the FAQ. 
   &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
   Again, this is something you can check, if you want to learn about creating a Web
   service. It's not required.
&lt;/p&gt;
&lt;p&gt;
   One important thing that everyone will have to figure out, however, are the data structures
   that you many need.
&lt;/p&gt;
&lt;p&gt;
   So if you deal with customer information, you need to figure out what the data elements
   are that pertain to the customer. In the end you will need to create a class that
   represents these data elements. This may look like the example below:
&lt;/p&gt;
&lt;p&gt;
   &lt;br&gt;
&lt;/p&gt;
&lt;pre xml:space="preserve"&gt;    Class Customer
      Public ID As String
      Public FirstName As String
      Public LastName As String
      Public Email As String
    End Class
&lt;/pre&gt;
&lt;p&gt;
   With this you can now write functions that for instance get a list of Customer objects.
   For example:
&lt;/p&gt;
&lt;pre xml:space="preserve"&gt;'this function gets an array of Customer objects (the customer list)
Function getCustomerList() As Customer()
  'code here 
End Function
&lt;/pre&gt;
&lt;p xml:space="preserve"&gt;
   If it is a Web Service function (Web Method) then add the Web Method annotation to
   the function header 
&lt;/p&gt;
&lt;pre xml:space="preserve"&gt;'this function is a Web Method that gets an array of Customer objects (the customer list)
&amp;lt;Web Method()&amp;gt; _
Function getCustomerList() As Customer()
  'code here 
End Function  
&lt;/pre&gt;
&lt;p&gt;
   OK, you have a Web service ... now what?
&lt;/p&gt;
&lt;p&gt;
   See next posting on consuming a Web service from an application, including a mobile
   smart device application.
&lt;/p&gt;
&lt;p&gt;
   MH
&lt;/p&gt;
&lt;p class=zoundry_bw_tags&gt;
   &lt;!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com --&gt;&lt;span class=ztags&gt;&lt;span class=ztagspace&gt;Technorati&lt;/span&gt; : &lt;a class=ztag href="http://technorati.com/tag/BUS%20ADM740" rel=tag&gt;BUS
   ADM740&lt;/a&gt;, &lt;a class=ztag href="http://technorati.com/tag/Web%20service" rel=tag&gt;Web
   service&lt;/a&gt;&lt;/span&gt; 
&lt;/p&gt;
&lt;p class=poweredbyzoundry&gt;
   Powered by &lt;a class=poweredbyzoundry_link href="http://www.zoundry.com" rel=nofollow&gt;Zoundry&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=571c52b5-b225-46f4-aae8-a192646592c5" /&gt;</description>
      <comments>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,571c52b5-b225-46f4-aae8-a192646592c5.aspx</comments>
      <category>BUS ADM 740</category>
    </item>
    <item>
      <trackback:ping>http://www.531.sba.uwm.edu/mhaines/740Blog/Trackback.aspx?guid=2cf2a576-d4f1-4393-b767-4975f48bf20c</trackback:ping>
      <pingback:server>http://www.531.sba.uwm.edu/mhaines/740Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,2cf2a576-d4f1-4393-b767-4975f48bf20c.aspx</pingback:target>
      <dc:creator>mhaines@uwm.edu (ADMIN)</dc:creator>
      <wfw:comment>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,2cf2a576-d4f1-4393-b767-4975f48bf20c.aspx</wfw:comment>
      <wfw:commentRss>http://www.531.sba.uwm.edu/mhaines/740Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=2cf2a576-d4f1-4393-b767-4975f48bf20c</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      Here <em>are</em> a few things that may be helpful in thinking about the project and
      arriving at conceptual design.
   </p>
        <p>
      Most students have project scenarios that involve getting information from a "back-end"
      source to the mobile device.
   </p>
        <p>
      Thus it is necessary to have to things:
   </p>
        <ol>
          <li>
         some kind of back-end - even if it is just a simulated back-end, and 
      </li>
          <li>
         a mechanism to get the information from that back end to the mobile device. 
      </li>
        </ol>
        <p>
      A relatively easy answer to implement this is "Web services". Even if you are not
      accessing a real back-end, you can use them to simulate a back-end ... and that is
      sufficient for the proof-of-concept you will develop in this class!
   </p>
        <p>
      If you are adventurous and would like to set up a simple Web service yourself, you
      can do this on your own (more below), if you just want to focus on your mobile application,
      I can setup a simple Web service for you with 2-3 basic operations (i.e., getCustomerList,
      saveCustomerList). I will follow-up with another post setting up a Web service.
   </p>
        <p>
      I have already a number of services setup, including a weather service, a traffic
      service, a membership service (to manage users), a lottery number service, and a MCTS
      bus schedule service. (Some of these service require an application key, so talk to
      me if you want to use them!)
   </p>
        <p>
      MH<br /><br /></p>
        <p class="zoundry_bw_tags">
          <!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com -->
          <span class="ztags">
            <span class="ztagspace">Technorati</span> : <a class="ztag" href="http://technorati.com/tag/BUS%20ADM%20740" rel="tag">BUS
      ADM 740</a>, <a class="ztag" href="http://technorati.com/tag/Web%20services" rel="tag">Web
      services</a></span>
        </p>
        <p class="poweredbyzoundry">
      Powered by <a class="poweredbyzoundry_link" href="http://www.zoundry.com" rel="nofollow">Zoundry</a></p>
        <img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=2cf2a576-d4f1-4393-b767-4975f48bf20c" />
      </body>
      <title>Project: How to get the information from to the back end to the mobile device?</title>
      <guid>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,2cf2a576-d4f1-4393-b767-4975f48bf20c.aspx</guid>
      <link>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,2cf2a576-d4f1-4393-b767-4975f48bf20c.aspx</link>
      <pubDate>Mon, 17 Mar 2008 21:19:01 GMT</pubDate>
      <description>&lt;p&gt;
   Here &lt;em&gt;are&lt;/em&gt; a few things that may be helpful in thinking about the project and
   arriving at conceptual design.
&lt;/p&gt;
&lt;p&gt;
   Most students have project scenarios that involve getting information from a "back-end"
   source to the mobile device.
&lt;/p&gt;
&lt;p&gt;
   Thus it is necessary to have to things:
&lt;/p&gt;
&lt;ol&gt;
   &lt;li&gt;
      some kind of back-end - even if it is just a simulated back-end, and 
   &lt;li&gt;
      a mechanism to get the information from that back end to the mobile device. 
   &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
   A relatively easy answer to implement this is "Web services". Even if you are not
   accessing a real back-end, you can use them to simulate a back-end ... and that is
   sufficient for the proof-of-concept you will develop in this class!
&lt;/p&gt;
&lt;p&gt;
   If you are adventurous and would like to set up a simple Web service yourself, you
   can do this on your own (more below), if you just want to focus on your mobile application,
   I can setup a simple Web service for you with 2-3 basic operations (i.e., getCustomerList,
   saveCustomerList). I will follow-up with another post setting up a Web service.
&lt;/p&gt;
&lt;p&gt;
   I have already a number of services setup, including a weather service, a traffic
   service, a membership service (to manage users), a lottery number service, and a MCTS
   bus schedule service. (Some of these service require an application key, so talk to
   me if you want to use them!)
&lt;/p&gt;
&lt;p&gt;
   MH&lt;br&gt;
   &lt;br&gt;
&lt;/p&gt;
&lt;p class=zoundry_bw_tags&gt;
   &lt;!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com --&gt;&lt;span class=ztags&gt;&lt;span class=ztagspace&gt;Technorati&lt;/span&gt; : &lt;a class=ztag href="http://technorati.com/tag/BUS%20ADM%20740" rel=tag&gt;BUS
   ADM 740&lt;/a&gt;, &lt;a class=ztag href="http://technorati.com/tag/Web%20services" rel=tag&gt;Web
   services&lt;/a&gt;&lt;/span&gt; 
&lt;/p&gt;
&lt;p class=poweredbyzoundry&gt;
   Powered by &lt;a class=poweredbyzoundry_link href="http://www.zoundry.com" rel=nofollow&gt;Zoundry&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=2cf2a576-d4f1-4393-b767-4975f48bf20c" /&gt;</description>
      <comments>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,2cf2a576-d4f1-4393-b767-4975f48bf20c.aspx</comments>
      <category>BUS ADM 740</category>
    </item>
    <item>
      <trackback:ping>http://www.531.sba.uwm.edu/mhaines/740Blog/Trackback.aspx?guid=06098de6-f711-43d7-8f23-5a793f4225b3</trackback:ping>
      <pingback:server>http://www.531.sba.uwm.edu/mhaines/740Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,06098de6-f711-43d7-8f23-5a793f4225b3.aspx</pingback:target>
      <dc:creator>mhaines@uwm.edu (ADMIN)</dc:creator>
      <wfw:comment>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,06098de6-f711-43d7-8f23-5a793f4225b3.aspx</wfw:comment>
      <wfw:commentRss>http://www.531.sba.uwm.edu/mhaines/740Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=06098de6-f711-43d7-8f23-5a793f4225b3</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      I finally got around to check out how to connect the Smart Device Emulator in Vista.
      (See the <a href="http://www.531.sba.uwm.edu/mhaines/courses/740/Resources/FAQ.aspx">course
      FAQ</a> for doing this in XP.)
   </p>
        <p>
      The big difference is that <strong>ActiveSync</strong> is replaced with the <strong>Windows
      Mobile Device Center</strong>.
   </p>
        <p>
      It turned out to be pretty straightforward in my environment and fairly similar to
      setting up ActiveSync in XP. I tried this on my laptop running Vista Ultimate and
      Visual Studio 2008 (not 2005!). Before starting the device emulator I went to the
      mobile device center and opened up the connection settings. The only thing I had to
      adjust is the "allow connections to the following" (see image).
   </p>
        <p align="center">
          <img src="http://www.531.sba.uwm.edu/mhaines/740Blog/content/binary/mobileDeviceVista.png" alt="mobileDeviceVista.png" title="Mobile Device Emulator Setup" border="0" height="284" width="435" />
        </p>
        <p>
      The "allow connection to the following" option has to be checked and <strong>DMA</strong> (direct
      memory access) needs to be selected. Then I started up the emulator via the device
      emulator manager in Visual Studio (Tools-&gt;Device Emulator Manager).
   </p>
        <p>
      I cradled the emulator and ... it connected without a hitch.
   </p>
        <p>
      Now, if you use Visual Studio 2005, you need to download and install the new device
      emulator (version 2). Visit the following sites for more information.
   </p>
        <p>
          <a href="http://blogs.msdn.com/anandba/archive/2007/03/13/device-emulator-v2-is-live.aspx">http://blogs.msdn.com/anandba/...</a>
        </p>
        <p>
          <a href="http://blogs.infosupport.com/blogs/willemm/archive/2007/07/13/Using-the-Microsoft-Device-Emulator-under-Windows-Vista.aspx">http://blogs.infosupport.com/blogs/willemm/...</a>
        </p>
        <p>
      Let me know if you still run into issues.
   </p>
        <p>
      MH
   </p>
        <p class="zoundry_bw_tags">
          <!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com -->
          <span class="ztags">
            <span class="ztagspace">Technorati</span> : <a href="http://technorati.com/tag/BUS%20ADM%20740" class="ztag" rel="tag">BUS
      ADM 740</a>, <a href="http://technorati.com/tag/device%20emulator" class="ztag" rel="tag">device
      emulator</a>, <a href="http://technorati.com/tag/vista" class="ztag" rel="tag">vista</a></span>
        </p>
        <img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=06098de6-f711-43d7-8f23-5a793f4225b3" />
      </body>
      <title>Device Emulator on Vista</title>
      <guid>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,06098de6-f711-43d7-8f23-5a793f4225b3.aspx</guid>
      <link>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,06098de6-f711-43d7-8f23-5a793f4225b3.aspx</link>
      <pubDate>Tue, 11 Mar 2008 00:47:09 GMT</pubDate>
      <description>&lt;p&gt;
   I finally got around to check out how to connect the Smart Device Emulator in Vista.
   (See the &lt;a href="http://www.531.sba.uwm.edu/mhaines/courses/740/Resources/FAQ.aspx"&gt;course
   FAQ&lt;/a&gt; for doing this in XP.)
&lt;/p&gt;
&lt;p&gt;
   The big difference is that &lt;strong&gt;ActiveSync&lt;/strong&gt; is replaced with the &lt;strong&gt;Windows
   Mobile Device Center&lt;/strong&gt;.
&lt;/p&gt;
&lt;p&gt;
   It turned out to be pretty straightforward in my environment and fairly similar to
   setting up ActiveSync in XP. I tried this on my laptop running Vista Ultimate and
   Visual Studio 2008 (not 2005!). Before starting the device emulator I went to the
   mobile device center and opened up the connection settings. The only thing I had to
   adjust is the "allow connections to the following" (see image).
&lt;/p&gt;
&lt;p align="center"&gt;
   &lt;img src="http://www.531.sba.uwm.edu/mhaines/740Blog/content/binary/mobileDeviceVista.png" alt="mobileDeviceVista.png" title="Mobile Device Emulator Setup" border="0" height="284" width="435"&gt;
&lt;/p&gt;
&lt;p&gt;
   The "allow connection to the following" option has to be checked and &lt;strong&gt;DMA&lt;/strong&gt; (direct
   memory access) needs to be selected. Then I started up the emulator via the device
   emulator manager in Visual Studio (Tools-&amp;gt;Device Emulator Manager).
&lt;/p&gt;
&lt;p&gt;
   I cradled the emulator and ... it connected without a hitch.
&lt;/p&gt;
&lt;p&gt;
   Now, if you use Visual Studio 2005, you need to download and install the new device
   emulator (version 2). Visit the following sites for more information.
&lt;/p&gt;
&lt;p&gt;
   &lt;a href="http://blogs.msdn.com/anandba/archive/2007/03/13/device-emulator-v2-is-live.aspx"&gt;http://blogs.msdn.com/anandba/...&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;a href="http://blogs.infosupport.com/blogs/willemm/archive/2007/07/13/Using-the-Microsoft-Device-Emulator-under-Windows-Vista.aspx"&gt;http://blogs.infosupport.com/blogs/willemm/...&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
   Let me know if you still run into issues.
&lt;/p&gt;
&lt;p&gt;
   MH
&lt;/p&gt;
&lt;p class="zoundry_bw_tags"&gt;
   &lt;!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com --&gt;
   &lt;span class="ztags"&gt;&lt;span class="ztagspace"&gt;Technorati&lt;/span&gt; : &lt;a href="http://technorati.com/tag/BUS%20ADM%20740" class="ztag" rel="tag"&gt;BUS
   ADM 740&lt;/a&gt;, &lt;a href="http://technorati.com/tag/device%20emulator" class="ztag" rel="tag"&gt;device
   emulator&lt;/a&gt;, &lt;a href="http://technorati.com/tag/vista" class="ztag" rel="tag"&gt;vista&lt;/a&gt;&lt;/span&gt; 
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=06098de6-f711-43d7-8f23-5a793f4225b3" /&gt;</description>
      <comments>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,06098de6-f711-43d7-8f23-5a793f4225b3.aspx</comments>
      <category>BUS ADM 740;emulator;smart device;Visual Studio</category>
    </item>
    <item>
      <trackback:ping>http://www.531.sba.uwm.edu/mhaines/740Blog/Trackback.aspx?guid=2d0199ac-7b29-4410-96d0-b68e6d0282a6</trackback:ping>
      <pingback:server>http://www.531.sba.uwm.edu/mhaines/740Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,2d0199ac-7b29-4410-96d0-b68e6d0282a6.aspx</pingback:target>
      <dc:creator>mhaines@uwm.edu (ADMIN)</dc:creator>
      <wfw:comment>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,2d0199ac-7b29-4410-96d0-b68e6d0282a6.aspx</wfw:comment>
      <wfw:commentRss>http://www.531.sba.uwm.edu/mhaines/740Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=2d0199ac-7b29-4410-96d0-b68e6d0282a6</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      So why did the "FirstName" did not show up in the listbox? It became already clear
      during the demonstration that it had nothing to do with the listbox, since the combo
      box also did not produce the intended results either.
   </p>
        <p>
      As I figured out shortly after the class ended, the problem was not related to the
      code in the event handler routine nor the form <em>frmStart</em> in my <em>smartDemoApp</em> at
      all. The problem lies with the Person class declaration. Since we have not covered
      object-oriented programming and the concept of a class, my intention was to keep the
      design of the class as simple as possible, thus taking a shortcut.
   </p>
        <p>
      All the class attributes , including "FirstName", were declared as simple <strong>Public
      attributes</strong> (as shown below).
   </p>
        <pre xml:space="preserve">
Public Class Person
    Public FirstName As String
    Public LastName As String
    Public SSN As String
End Class
</pre>
        <br />
        <p>
      They should really have been declared as <strong>Public Properties</strong> instead.
      Usually it is considered good class design to make all attributes of a class private
      and use the property mechanism to expose them externally. As it is evident in the
      complete class declaration below, this makes the whole class declaration quite a bit
      longer and more complex.
   </p>
        <p>
          <br />
        </p>
        <pre xml:space="preserve">
Public Class Person
    Private _firstName As String
    Private _lastName As String
    Private _ssn As String

    Public Property FirstName() As String
        Get
            Return _firstName
        End Get
        Set(ByVal value As String)
            _firstName = value
        End Set
    End Property

    Public Property LastName() As String
        Get
            Return _lastName
        End Get
        Set(ByVal value As String)
            _lastName = value
        End Set
    End Property

    Public Property SSN() As String
        Get
            Return _ssn
        End Get
        Set(ByVal value As String)
            _ssn = value
        End Set
    End Property

End Class
</pre>
        <p>
          <br />
        </p>
        <p>
      So why did I think that my shortcut (not using properties) would work in the first
      place?<br />
      This relates back to Web services ... which is also beyond what we have covered so
      far in class.
   </p>
        <p>
      A simplified Person class without using properties would have worked, if used in the
      context of a Web service. It comes down to the fact that <em>Web services are not
      distributed objects</em>, and the distinction between a property and a public attribute
      disappears, when a class is exposed via a Web service ... everything becomes a property.
   </p>
        <p>
      I guess I have been doing a few too many Web service projects lately ;-)
   </p>
        <p>
      So my lessons out of this failed demonstration are:
   </p>
        <p>
      1) Only properties will be recognized as a display or value member
   </p>
        <p>
      2) Web services are not distributed objects (and the distinction between an attribute
      and a property disappears)
   </p>
        <p>
      3) Don't take shortcuts ... I need to read the story of the turtle and the hare again!
   </p>
        <p>
      MH
   </p>
        <p>
      P.S.,
   </p>
        <p>
      You can download the code relating to the this demo from the G-drive (see course folder
      -&gt; code -&gt; smartDemoApp.zip)<br /></p>
        <p class="zoundry_bw_tags">
          <!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com -->
          <span class="ztags">
            <span class="ztagspace">Technorati</span> : <a href="http://technorati.com/tag/BUS%20ADM%20740" class="ztag" rel="tag">BUS
      ADM 740</a></span>
        </p>
        <p class="poweredbyzoundry">
      Powered by <a href="http://www.zoundry.com" class="poweredbyzoundry_link" rel="nofollow">Zoundry</a></p>
        <img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=2d0199ac-7b29-4410-96d0-b68e6d0282a6" />
      </body>
      <title>Listbox Demo</title>
      <guid>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,2d0199ac-7b29-4410-96d0-b68e6d0282a6.aspx</guid>
      <link>http://www.531.sba.uwm.edu/mhaines/740Blog/PermaLink,guid,2d0199ac-7b29-4410-96d0-b68e6d0282a6.aspx</link>
      <pubDate>Wed, 05 Mar 2008 12:33:32 GMT</pubDate>
      <description>
&lt;p&gt;
   So why did the "FirstName" did not show up in the listbox? It became already clear
   during the demonstration that it had nothing to do with the listbox, since the combo
   box also did not produce the intended results either.
&lt;/p&gt;
&lt;p&gt;
   As I figured out shortly after the class ended, the problem was not related to the
   code in the event handler routine nor the form &lt;em&gt;frmStart&lt;/em&gt; in my &lt;em&gt;smartDemoApp&lt;/em&gt; at
   all. The problem lies with the Person class declaration. Since we have not covered
   object-oriented programming and the concept of a class, my intention was to keep the
   design of the class as simple as possible, thus taking a shortcut.
&lt;/p&gt;
&lt;p&gt;
   All the class attributes , including "FirstName", were declared as simple &lt;strong&gt;Public
   attributes&lt;/strong&gt; (as shown below).
&lt;/p&gt;
&lt;pre xml:space="preserve"&gt;
Public Class Person
    Public FirstName As String
    Public LastName As String
    Public SSN As String
End Class
&lt;/pre&gt;
&lt;br /&gt;
&lt;p&gt;
   They should really have been declared as &lt;strong&gt;Public Properties&lt;/strong&gt; instead.
   Usually it is considered good class design to make all attributes of a class private
   and use the property mechanism to expose them externally. As it is evident in the
   complete class declaration below, this makes the whole class declaration quite a bit
   longer and more complex.
&lt;/p&gt;
&lt;p&gt;
   &lt;br /&gt;
&lt;/p&gt;
&lt;pre xml:space="preserve"&gt;
Public Class Person
    Private _firstName As String
    Private _lastName As String
    Private _ssn As String

    Public Property FirstName() As String
        Get
            Return _firstName
        End Get
        Set(ByVal value As String)
            _firstName = value
        End Set
    End Property

    Public Property LastName() As String
        Get
            Return _lastName
        End Get
        Set(ByVal value As String)
            _lastName = value
        End Set
    End Property

    Public Property SSN() As String
        Get
            Return _ssn
        End Get
        Set(ByVal value As String)
            _ssn = value
        End Set
    End Property

End Class
&lt;/pre&gt;
&lt;p&gt;
   &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
   So why did I think that my shortcut (not using properties) would work in the first
   place?&lt;br /&gt;
   This relates back to Web services ... which is also beyond what we have covered so
   far in class.
&lt;/p&gt;
&lt;p&gt;
   A simplified Person class without using properties would have worked, if used in the
   context of a Web service. It comes down to the fact that &lt;em&gt;Web services are not
   distributed objects&lt;/em&gt;, and the distinction between a property and a public attribute
   disappears, when a class is exposed via a Web service ... everything becomes a property.
&lt;/p&gt;
&lt;p&gt;
   I guess I have been doing a few too many Web service projects lately ;-)
&lt;/p&gt;
&lt;p&gt;
   So my lessons out of this failed demonstration are:
&lt;/p&gt;
&lt;p&gt;
   1) Only properties will be recognized as a display or value member
&lt;/p&gt;
&lt;p&gt;
   2) Web services are not distributed objects (and the distinction between an attribute
   and a property disappears)
&lt;/p&gt;
&lt;p&gt;
   3) Don't take shortcuts ... I need to read the story of the turtle and the hare again!
&lt;/p&gt;
&lt;p&gt;
   MH
&lt;/p&gt;
&lt;p&gt;
   P.S.,
&lt;/p&gt;
&lt;p&gt;
   You can download the code relating to the this demo from the G-drive (see course folder
   -&amp;gt; code -&amp;gt; smartDemoApp.zip)&lt;br /&gt;
&lt;/p&gt;
&lt;p class="zoundry_bw_tags"&gt;
   &lt;!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com --&gt;
   &lt;span class="ztags"&gt;&lt;span class="ztagspace"&gt;Technorati&lt;/span&gt; : &lt;a href="http://technorati.com/tag/BUS%20ADM%20740" class="ztag" rel="tag"&gt;BUS
   ADM 740&lt;/a&gt;&lt;/span&gt; 
&lt;/p&gt;
&lt;p class="poweredbyzoundry"&gt;
   Powered by &lt;a href="http://www.zoundry.com" class="poweredbyzoundry_link" rel="nofollow"&gt;Zoundry&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.531.sba.uwm.edu/mhaines/740Blog/aggbug.ashx?id=2d0199ac-7b29-4410-96d0-b68e6d0282a6" /&gt;</description>
      <comments>http://www.531.sba.uwm.edu/mhaines/740Blog/CommentView,guid,2d0199ac-7b29-4410-96d0-b68e6d0282a6.aspx</comments>
      <category>BUS ADM 740</category>
    </item>
  </channel>
</rss>