<feed xmlns:dc="http://purl.org/dc/elements/1.1/" 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="http://www.w3.org/2005/Atom" xml:lang="en-US">
    <title>Wayne Magnum's Blog</title>
    <link rel="self" type="application/xml" href="http://geekswithblogs.net/WayneMagnum/Atom.aspx" />
    <subtitle type="html"> </subtitle>
    <id>http://geekswithblogs.net/WayneMagnum/Default.aspx</id>
    <author>
        <name>Wayne H Magnum</name>
        <uri>http://geekswithblogs.net/WayneMagnum/Default.aspx</uri>
    </author>
    <generator uri="http://subtextproject.com" version="Subtext Version 0.0.0.0">Subtext</generator>
    <updated>2011-09-29T09:55:15Z</updated>
    <entry>
        <title>SharePoint Search Server 2010 Error</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/WayneMagnum/archive/2011/09/29/sharepoint-search-server-2010-error.aspx" />
        <id>http://geekswithblogs.net/WayneMagnum/archive/2011/09/29/sharepoint-search-server-2010-error.aspx</id>
        <published>2011-09-29T09:41:48-05:00:00</published>
        <updated>2011-09-29T09:55:15Z</updated>
        <content type="html">I was experiencing the below error message. While searching the internet and poking around on my SharePoint farm for a possible solution to the error i was able to find the below solution.
&lt;br /&gt;&lt;br /&gt;

&lt;b&gt;Error:&lt;/b&gt;
The mount operation for the gatherer application [GUID] -crawl-0 has failed because the schema version of the search gatherer database is less than the minimum backwards compatibility schema version supported for this gatherer application. The database might not have been upgraded.
&lt;br /&gt;&lt;br /&gt;

&lt;b&gt;Solution:&lt;/b&gt;
Go to the Central Admin and determine the status of the SharePoint DB's. A healthy state shows "No Action Required" for all DB's but in my case the majority of my DB's needed to be updated.
&lt;br /&gt;
&lt;b&gt;Http://[central admin]/_admin/DatabaseStatus.aspx&lt;/b&gt;
&lt;br /&gt;&lt;br /&gt;

Finally run this command: 
&lt;b&gt;psconfig.exe -cmd upgrade -inplace b2b -wait&lt;/b&gt;
&lt;br /&gt;&lt;br /&gt;

Upon completion of running this command everything read "No Action required" and I was able to run the SharePoint crawl once again.




&lt;img src="http://geekswithblogs.net/WayneMagnum/aggbug/147104.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/WayneMagnum/comments/147104.aspx</wfw:comment>
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/WayneMagnum/comments/commentRss/147104.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/WayneMagnum/services/trackbacks/147104.aspx</trackback:ping>
    </entry>
    <entry>
        <title>How to assign an exiting SharePoint group to a site using the SharePoint object model?</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/WayneMagnum/archive/2011/01/21/how-to-assign-an-exiting-sharepoint-group-to-a-site.aspx" />
        <id>http://geekswithblogs.net/WayneMagnum/archive/2011/01/21/how-to-assign-an-exiting-sharepoint-group-to-a-site.aspx</id>
        <published>2011-01-21T13:24:52-06:00:00</published>
        <updated>2011-01-21T13:24:52Z</updated>
        <content type="html">&lt;p&gt;&lt;span class="Apple-style-span" style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium 'Times New Roman'; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"&gt;&lt;span class="Apple-style-span" style="font-family: arial; font-size: small"&gt;
&lt;div&gt;&lt;small&gt;The below code demonstrates how you can assign a SharePoint Group to a SharePoint site  using the SharePoint object model.&lt;/small&gt;&lt;/div&gt;
&lt;div&gt;&lt;small&gt;&lt;br /&gt;
&lt;/small&gt;&lt;/div&gt;
&lt;div&gt;&lt;small&gt;SPSite spsite = new SPSite("Site_Name");&lt;/small&gt;&lt;/div&gt;
&lt;div&gt;&lt;small&gt;try&lt;/small&gt;&lt;/div&gt;
&lt;div&gt;&lt;small&gt;{&lt;/small&gt;&lt;/div&gt;
&lt;div&gt;&lt;small&gt;     using (SPWeb web = spsite.OpenWeb())&lt;/small&gt;&lt;/div&gt;
&lt;div&gt;&lt;small&gt;     {&lt;/small&gt;&lt;/div&gt;
&lt;div&gt;&lt;small&gt;          web.AllowUnsafeUpdates = true;&lt;/small&gt;&lt;/div&gt;
&lt;div&gt;&lt;small&gt;          SPGroup sgrp = web.SiteGroups["Group_Name"];&lt;/small&gt;&lt;/div&gt;
&lt;div&gt;&lt;small&gt;          SPRoleDefinition roleDefinition = web.RoleDefinitions.GetByType(&lt;/small&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;small&gt;SPRoleType.Reader);&lt;/small&gt;&lt;/div&gt;
&lt;div&gt;&lt;small&gt;          SPRoleAssignment roleAssignment = new SPRoleAssignment((SPPrincipal)&lt;/small&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;small&gt;sgrp);&lt;/small&gt;&lt;/div&gt;
&lt;div&gt;&lt;small&gt;          roleAssignment.&lt;/small&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;small&gt;RoleDefinitionBindings.Add(&lt;/small&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;small&gt;roleDefinition);&lt;/small&gt;&lt;/div&gt;
&lt;div&gt;&lt;small&gt;          web.RoleAssignments.Add(&lt;/small&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;small&gt;roleAssignment);&lt;/small&gt;&lt;/div&gt;
&lt;div&gt;&lt;small&gt;          web.Update();&lt;/small&gt;&lt;/div&gt;
&lt;div&gt;&lt;small&gt;     }&lt;/small&gt;&lt;/div&gt;
&lt;div&gt;&lt;small&gt;}&lt;/small&gt;&lt;/div&gt;
&lt;div&gt;&lt;small&gt;catch (Exception ex)&lt;/small&gt;&lt;/div&gt;
&lt;div&gt;&lt;small&gt;{&lt;/small&gt;&lt;/div&gt;
&lt;div&gt;&lt;small&gt;     LoggingManager.&lt;/small&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;small&gt;WriteEventToLogFile(ex);&lt;/small&gt;&lt;/div&gt;
&lt;div&gt;&lt;small&gt;}&lt;/small&gt;&lt;/div&gt;
&lt;p&gt; &lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br class="Apple-interchange-newline" /&gt;
 &lt;/p&gt;&lt;img src="http://geekswithblogs.net/WayneMagnum/aggbug/143575.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/WayneMagnum/comments/143575.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/WayneMagnum/comments/commentRss/143575.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/WayneMagnum/services/trackbacks/143575.aspx</trackback:ping>
    </entry>
    <entry>
        <title>CAML Query Utility by U2U</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/WayneMagnum/archive/2010/03/16/caml-query-utility-by-u2u.aspx" />
        <id>http://geekswithblogs.net/WayneMagnum/archive/2010/03/16/caml-query-utility-by-u2u.aspx</id>
        <published>2010-03-16T21:29:56-05:00:00</published>
        <updated>2010-03-16T21:29:56Z</updated>
        <content type="html">&lt;p&gt;This is a great utility which i have used countless times to generate CAML Queries.&lt;/p&gt;
&lt;p&gt;Enjoy....&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.u2u.net/res/Tools/CamlQueryBuilder.aspx"&gt;http://www.u2u.net/res/Tools/CamlQueryBuilder.aspx&lt;/a&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/WayneMagnum/aggbug/138567.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/WayneMagnum/comments/138567.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/WayneMagnum/comments/commentRss/138567.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/WayneMagnum/services/trackbacks/138567.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Anonymous Access </title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/WayneMagnum/archive/2009/02/02/anonymous-access.aspx" />
        <id>http://geekswithblogs.net/WayneMagnum/archive/2009/02/02/anonymous-access.aspx</id>
        <published>2009-02-02T10:28:59-06:00:00</published>
        <updated>2009-02-02T10:28:59Z</updated>
        <content type="html">&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;font size="2"&gt;We had a issue with Anonymous Access  in our production environment. Each time a user would go to that list information there would be prompted to login. We followed the the step below to get around it...&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;a name="_Toc220915003"&gt;&lt;span style="FONT-SIZE: 13pt; COLOR: blue; LINE-HEIGHT: 115%; FONT-FAMILY: 'Cambria','serif'"&gt;&lt;font face="Arial" size="2"&gt;List Permission Settings&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="FONT-SIZE: 13pt; COLOR: blue; LINE-HEIGHT: 115%; FONT-FAMILY: 'Cambria','serif'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;font size="2"&gt;1.     Stsadm -o deactivatefeature -url &lt;/font&gt;&lt;a href="http://site.url.name/"&gt;&lt;font size="2"&gt;http://&lt;strong&gt;site.url.name&lt;/strong&gt;&lt;/font&gt;&lt;/a&gt;&lt;font size="2"&gt;&lt;strong&gt; &lt;/strong&gt;-filename ViewFormPagesLockdown\feature.xml&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;font size="2"&gt;2.     Break the inheritance for the list&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;font size="2"&gt;3.     Uncheck the anonymous access for the list and save&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;font size="2"&gt;4.     Reapply the anonymous access for the list and save&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;font size="2"&gt;5.     Stsadm -o activatefeature -url &lt;/font&gt;&lt;a href="http://site.url.name/"&gt;&lt;font size="2"&gt;http://&lt;strong&gt;site.url.name&lt;/strong&gt;&lt;/font&gt;&lt;/a&gt;&lt;font size="2"&gt; -filename ViewFormPagesLockdown\feature.xml&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;strong&gt;&lt;font size="2"&gt;Useful link...&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://support.microsoft.com/kb/927082/en-us?spid=11373&amp;amp;sid=200"&gt;&lt;font size="2"&gt;http://support.microsoft.com/kb/927082/en-us?spid=11373&amp;amp;sid=200&lt;/font&gt;&lt;/a&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/WayneMagnum/aggbug/129146.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/WayneMagnum/comments/129146.aspx</wfw:comment>
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/WayneMagnum/comments/commentRss/129146.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/WayneMagnum/services/trackbacks/129146.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Configurting BizTalk WS Adapter with ISAPI redirects work-around.</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/WayneMagnum/archive/2008/12/29/configurting-biztalk-ws-adapter-with-isapi-redirects-work-around.aspx" />
        <id>http://geekswithblogs.net/WayneMagnum/archive/2008/12/29/configurting-biztalk-ws-adapter-with-isapi-redirects-work-around.aspx</id>
        <published>2008-12-29T09:34:29-06:00:00</published>
        <updated>2008-12-29T09:34:29Z</updated>
        <content type="html">&lt;p&gt;We recently encounted a problem trying to configure the BizTalk WS Adapters in our production environment and we were at a stand still until we ran into the below posted link that helped us rolling out our project to the production environment...&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;We received the below error message when we tried to configure the Windows sharepoint services adapter on a Load balanced Windows Server 2003 Environment. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;"Error encoutered while querying virtual server state for URL: http//myserver/. Make sure the site is extended by Windows SharePoint Services. (CWssAdaCfg)"&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;THe below link provided a solution for us...&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;a href="http://blogs.msdn.com/johnwpowell/archive/2008/08/14/error-configuring-biztalk-sharepoint-adapter-on-sharepoint-sp1.aspx"&gt;http://blogs.msdn.com/johnwpowell/archive/2008/08/14/error-configuring-biztalk-sharepoint-adapter-on-sharepoint-sp1.aspx&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Thanks John Powell for the great post.&lt;/p&gt;&lt;img src="http://geekswithblogs.net/WayneMagnum/aggbug/128213.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/WayneMagnum/comments/128213.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/WayneMagnum/comments/commentRss/128213.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/WayneMagnum/services/trackbacks/128213.aspx</trackback:ping>
    </entry>
    <entry>
        <title>InfoPath: Debugging and Setting up a App.config</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/WayneMagnum/archive/2008/07/09/infopath-debugging-and-setting-up-a-app.config.aspx" />
        <id>http://geekswithblogs.net/WayneMagnum/archive/2008/07/09/infopath-debugging-and-setting-up-a-app.config.aspx</id>
        <published>2008-07-09T15:11:18-05:00:00</published>
        <updated>2008-07-09T15:11:18Z</updated>
        <content type="html">&lt;p&gt;The below article explains how to setup a your InfoPath environment for local debugging...&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;a href="http://support.microsoft.com/kb/555963"&gt;http://support.microsoft.com/kb/555963&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;img src="http://geekswithblogs.net/WayneMagnum/aggbug/123689.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/WayneMagnum/comments/123689.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/WayneMagnum/comments/commentRss/123689.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/WayneMagnum/services/trackbacks/123689.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Ajax Enabled Webparts in MOSS: Work Arounds</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/WayneMagnum/archive/2008/07/05/ajax-enabled-webparts-in-moss-work-arounds.aspx" />
        <id>http://geekswithblogs.net/WayneMagnum/archive/2008/07/05/ajax-enabled-webparts-in-moss-work-arounds.aspx</id>
        <published>2008-07-05T17:10:51-05:00:00</published>
        <updated>2010-10-11T15:42:31Z</updated>
        <content type="html">&lt;font face="Arial"&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;strong&gt;&lt;font color="#ff0000"&gt;Error Message:&lt;/font&gt;&lt;/strong&gt;&lt;br /&gt;
Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;strong&gt;&lt;font color="#339966"&gt;Solution:&lt;/font&gt;&lt;/strong&gt;&lt;br /&gt;
Disabled the view state for control.&lt;br /&gt;
this.[ControlName].EnableViewState = false;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;font color="#339966"&gt;&lt;font color="#ff0000"&gt;&lt;strong&gt;Error Message:&lt;br /&gt;
&lt;/strong&gt;&lt;/font&gt;&lt;font color="#000000"&gt;Script controls may not be registered before PreRender. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#339966"&gt;&lt;strong&gt;Solution:&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;
Added a reference of Script Manager to the current Master Page.&lt;br /&gt;
     &lt;strong&gt;Add to the top of the Master Page:&lt;/strong&gt; &lt;font style="BACKGROUND-COLOR: #ffff00"&gt;&amp;lt;%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" Namespace="System.Web.UI" TagPrefix="asp" %&amp;gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Added &amp;lt;asp:Scriptmanager/&amp;gt; right below the &amp;lt;WebPartPages/&amp;gt; in the master page.&lt;br /&gt;
     &lt;strong&gt;Look for in the Master Page:&lt;/strong&gt;&lt;font style="BACKGROUND-COLOR: #ffff00"&gt; &amp;lt;WebPartPages:SPWebPartManager id="m" runat="Server"/&amp;gt;&lt;/font&gt;&lt;br /&gt;
     &lt;strong&gt;Add:&lt;/strong&gt; &lt;font style="BACKGROUND-COLOR: #ffff00"&gt;&amp;lt;asp:ScriptManager ID="scriptManager1" runat="server"&amp;gt;&amp;lt;/asp:ScriptManager&amp;gt;&lt;br /&gt;
&lt;/font&gt;&lt;/p&gt;
&lt;/font&gt;&lt;font face="Arial"&gt;&lt;/font&gt;&lt;font face="Arial"&gt;&lt;font face="Arial"&gt;&lt;br /&gt;
&lt;/font&gt;&lt;/font&gt;&lt;img src="http://geekswithblogs.net/WayneMagnum/aggbug/123602.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/WayneMagnum/comments/123602.aspx</wfw:comment>
        <slash:comments>4</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/WayneMagnum/comments/commentRss/123602.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/WayneMagnum/services/trackbacks/123602.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Reading Content From a SP List Web Service</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/WayneMagnum/archive/2008/06/24/reading-content-from-a-sp-list-vis-ws.aspx" />
        <id>http://geekswithblogs.net/WayneMagnum/archive/2008/06/24/reading-content-from-a-sp-list-vis-ws.aspx</id>
        <published>2008-06-24T14:46:15-05:00:00</published>
        <updated>2008-07-05T17:17:26Z</updated>
        <content type="html">&lt;h5&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt;The following code below enables you to read the response from MOSS List Web Service...&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt;MOSSListWS.&lt;span style="COLOR: #2b91af"&gt;Lists&lt;/span&gt; list_svc = &lt;span style="COLOR: blue"&gt;new&lt;/span&gt; MOSSListWS.&lt;span style="COLOR: #2b91af"&gt;Lists&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt;list_svc.Credentials = &lt;span style="COLOR: blue"&gt;new&lt;/span&gt; System.Net.&lt;span style="COLOR: #2b91af"&gt;NetworkCredential&lt;/span&gt;(username,&lt;span style="COLOR: #a31515"&gt;"password"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt;// The URL property for WebService retrieve&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt;list_svc.Url = &lt;span style="COLOR: #a31515"&gt;"http://ilocalhost/_vti_bin/lists.asmx"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #2b91af; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt;XmlNode&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt; itemCollection = list_svc.GetListItems(&lt;span style="COLOR: #a31515"&gt;"listName"&lt;/span&gt;, &lt;span style="COLOR: blue"&gt;string&lt;/span&gt;.Empty, &lt;span style="COLOR: blue"&gt;null&lt;/span&gt;, &lt;span style="COLOR: blue"&gt;null&lt;/span&gt;, &lt;span style="COLOR: #a31515"&gt;"0"&lt;/span&gt;, &lt;span style="COLOR: blue"&gt;null&lt;/span&gt;, &lt;span style="COLOR: #a31515"&gt;""&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #2b91af; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt;XmlDocument&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt; xmlDoc = &lt;span style="COLOR: blue"&gt;new&lt;/span&gt; &lt;span style="COLOR: #2b91af"&gt;XmlDocument&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt;xmlDoc.LoadXml(itemCollection.OuterXml);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #2b91af; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt;DataSet&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt; ds = &lt;span style="COLOR: blue"&gt;new&lt;/span&gt; &lt;span style="COLOR: #2b91af"&gt;DataSet&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #2b91af; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt;StringReader&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt; stringReader = &lt;span style="COLOR: blue"&gt;new&lt;/span&gt; &lt;span style="COLOR: #2b91af"&gt;StringReader&lt;/span&gt;(xmlDoc.OuterXml);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt;ds.ReadXml(stringReader);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt;stringReader.Dispose();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;span style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes"&gt;dataGridView1.DataSource = ds.Tables[1];&lt;/span&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;/h5&gt;&lt;img src="http://geekswithblogs.net/WayneMagnum/aggbug/123132.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/WayneMagnum/comments/123132.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/WayneMagnum/comments/commentRss/123132.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/WayneMagnum/services/trackbacks/123132.aspx</trackback:ping>
    </entry>
    <entry>
        <title>SharePoint List WebService to Insert Item</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/WayneMagnum/archive/2008/03/27/sharepoint-list-webservice-to-insert-item.aspx" />
        <id>http://geekswithblogs.net/WayneMagnum/archive/2008/03/27/sharepoint-list-webservice-to-insert-item.aspx</id>
        <published>2008-03-27T00:58:27-05:00:00</published>
        <updated>2009-02-01T19:40:55Z</updated>
        <content type="html">&lt;font face="Arial"&gt;
&lt;p&gt;&lt;strong style="mso-bidi-font-weight: normal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;Using the SharePoint List WebService to insert an item into a list...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;WebService Reference: &lt;a href="http://%3cservername%3e/_vti_bin/Lists.asmx"&gt;http://&amp;lt;servername&amp;gt;/_vti_bin/Lists.asmx&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;try&lt;br /&gt;
{&lt;br /&gt;
 ws_list.&lt;span style="COLOR: #4bacc6; mso-themecolor: accent5"&gt;Lists &lt;/span&gt;list = new ws_list.&lt;span style="COLOR: #4bacc6; mso-themecolor: accent5"&gt;Lists();&lt;/span&gt;&lt;br /&gt;
 list.Credentials = new System.Net.&lt;span style="COLOR: #4bacc6; mso-themecolor: accent5"&gt;NetworkCredential&lt;/span&gt;("username", "password", "domain");&lt;br /&gt;
 &lt;span style="COLOR: #4bacc6; mso-themecolor: accent5"&gt;XmlDocument &lt;/span&gt;doc = new &lt;span style="COLOR: #4bacc6; mso-themecolor: accent5"&gt;XmlDocument();&lt;/span&gt;&lt;br /&gt;
 XmlElement batch_element = doc.&lt;span style="COLOR: #4bacc6; mso-themecolor: accent5"&gt;CreateElement&lt;/span&gt;("Batch");&lt;br /&gt;
 &lt;span style="COLOR: blue"&gt;string&lt;/span&gt; item = "&amp;lt;Method ID=\"1\" Cmd=\"New\"&amp;gt;" + "&amp;lt;Field Name=\"ID\"&amp;gt;New&amp;lt;/Field&amp;gt;" + "&amp;lt;Field Name=\"Title\"&amp;gt;This is a test&amp;lt;/Field&amp;gt;" + "&amp;lt;/Method&amp;gt;";&lt;br /&gt;
 batch_element.InnerXml = item;&lt;br /&gt;
 list.UpdateListItems("ListTest", batch_element);&lt;br /&gt;
}&lt;br /&gt;
catch(Exception ex)&lt;br /&gt;
{&lt;br /&gt;
&lt;span style="COLOR: blue"&gt;string&lt;/span&gt; err = ex.Message;&lt;br /&gt;
}&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;&lt;strong&gt;Another Example&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;
&lt;p&gt;&lt;font face="Arial"&gt;            try&lt;br /&gt;
            {&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;                /*Declare and initialize a variable for the Lists Web service.*/&lt;br /&gt;
                siteWebServiceLists.Lists listService = new siteWebServiceLists.Lists();&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;                /*Authenticate the current user by passing their default credentials to the Web service from the system credential cache.*/&lt;br /&gt;
                listService.Credentials = System.Net.CredentialCache.DefaultCredentials;&lt;br /&gt;
                listService.Url = url + "/_vti_bin/Lists.asmx";&lt;br /&gt;
                System.Xml.XmlNode ndListView = listService.GetListAndView(list, "");&lt;br /&gt;
                &lt;br /&gt;
                /*Create an XmlDocument object and construct a Batch element and its attributes. Note that an empty ViewName parameter causes the method to use the default view. */&lt;br /&gt;
                System.Xml.XmlDocument doc = new System.Xml.XmlDocument();&lt;br /&gt;
                System.Xml.XmlElement batchElement = doc.CreateElement("Batch");&lt;br /&gt;
                &lt;br /&gt;
                batchElement.SetAttribute("OnError", "Continue");&lt;br /&gt;
                batchElement.SetAttribute("ListVersion", "1");&lt;br /&gt;
                batchElement.InnerXml = "&amp;lt;Method ID='1' Cmd='New'&amp;gt;" +&lt;br /&gt;
                "&amp;lt;Field Name='Title'&amp;gt;Title&amp;lt;/Field&amp;gt;" +&lt;br /&gt;
                "&amp;lt;Field Name='First_x0020_Name'&amp;gt;Wayne&amp;lt;/Field&amp;gt;" +&lt;br /&gt;
                "&amp;lt;Field Name='Last_x0020_Name'&amp;gt;Magnum&amp;lt;/Field&amp;gt;" +&lt;br /&gt;
                "&amp;lt;/Method&amp;gt;";&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;                /*Update list items. This example uses the list GUID, which is recommended, but the list display name will also work.*/&lt;br /&gt;
                System.Xml.XmlNode n = listService.UpdateListItems(list, batchElement);&lt;br /&gt;
                XmlTextReader xr = new XmlTextReader(n.OuterXml, XmlNodeType.Element, null);&lt;br /&gt;
                while (xr.Read())&lt;br /&gt;
                {&lt;br /&gt;
                    if (xr.ReadToFollowing("z:row"))&lt;br /&gt;
                    {&lt;br /&gt;
                        if (xr["ows_ID"] != null)&lt;br /&gt;
                        {&lt;br /&gt;
                            Console.WriteLine(xr["ows_ID"].ToString());&lt;br /&gt;
                        }&lt;br /&gt;
                    }&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
            catch (Exception)&lt;br /&gt;
            {&lt;br /&gt;
                throw;&lt;br /&gt;
            }&lt;/font&gt;&lt;/p&gt;
&lt;/span&gt;&lt;/font&gt;&lt;img src="http://geekswithblogs.net/WayneMagnum/aggbug/120785.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/WayneMagnum/comments/120785.aspx</wfw:comment>
        <slash:comments>25</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/WayneMagnum/comments/commentRss/120785.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/WayneMagnum/services/trackbacks/120785.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Custom Collection Parameter in a Web Service</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/WayneMagnum/archive/2008/01/24/custom-collection-parameter-in-a-web-service.aspx" />
        <id>http://geekswithblogs.net/WayneMagnum/archive/2008/01/24/custom-collection-parameter-in-a-web-service.aspx</id>
        <published>2008-01-24T08:13:47-06:00:00</published>
        <updated>2012-01-06T23:24:08Z</updated>
        <content type="html">&lt;font color="#000000" size="2"&gt;
&lt;div&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: black"&gt;This post below will show you how to pass a custom collection as a parameter to the webservice.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: black"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: black"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: red"&gt;&lt;strong&gt;Create a custom collection class...&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;public&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; &lt;span style="COLOR: blue"&gt;class&lt;/span&gt; &lt;span style="COLOR: #2b91af"&gt;Person&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;public&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; &lt;span style="COLOR: blue"&gt;int&lt;/span&gt; Age;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;public&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; &lt;span style="COLOR: blue"&gt;string&lt;/span&gt; FName, LName;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;public&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; Person() { }&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;span style="FONT-SIZE: 10pt"&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;public&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; Person(&lt;span style="COLOR: blue"&gt;string&lt;/span&gt; fname, &lt;span style="COLOR: blue"&gt;string&lt;/span&gt; lname, &lt;span style="COLOR: blue"&gt;int&lt;/span&gt; age)&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt 1in"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;Age = age;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt 1in"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;FName = fname;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt 1in"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;LName = lname;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: red"&gt;&lt;strong&gt;Create a Web Method...&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 9pt"&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;[&lt;span style="COLOR: #2b91af"&gt;WebMethod&lt;/span&gt;]&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;public&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; &lt;span style="COLOR: blue"&gt;void&lt;/span&gt; Method(&lt;span style="COLOR: #2b91af"&gt;Person&lt;/span&gt;[] fields, &lt;span style="COLOR: blue"&gt;bool&lt;/span&gt; attachmentincluded)&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;           System.Collections.Generic.&lt;span style="COLOR: #2b91af"&gt;List&lt;/span&gt;&amp;lt;&lt;span style="COLOR: #2b91af"&gt;Person&lt;/span&gt;&amp;gt; people = &lt;span style="COLOR: blue"&gt;new&lt;/span&gt; &lt;span style="COLOR: #2b91af"&gt;List&lt;/span&gt;&amp;lt;&lt;span style="COLOR: #2b91af"&gt;Person&lt;/span&gt;&amp;gt;(fields);&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;            &lt;span style="COLOR: blue"&gt;foreach&lt;/span&gt; (&lt;span style="COLOR: #2b91af"&gt;Person&lt;/span&gt; i &lt;span style="COLOR: blue"&gt;in&lt;/span&gt; people)&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;            {&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                &lt;span style="COLOR: blue"&gt;string&lt;/span&gt; F, L;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                &lt;span style="COLOR: blue"&gt;int&lt;/span&gt; A;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                F =i.FName;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                L = i.LName;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                A = i.Age;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;            }&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt; }&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: red"&gt;&lt;strong&gt;In the consumer application...&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: green"&gt;     //Create People... &lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: green"&gt;     &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;localhost.&lt;span style="COLOR: #2b91af"&gt;Person&lt;/span&gt; john = &lt;span style="COLOR: blue"&gt;new&lt;/span&gt; localhost.&lt;span style="COLOR: #2b91af"&gt;Person&lt;/span&gt;(); &lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: green"&gt;     &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;john.FName = &lt;span style="COLOR: #a31515"&gt;"John"&lt;/span&gt;; &lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: green"&gt;     &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;john.LName = &lt;span style="COLOR: #a31515"&gt;"Doe"&lt;/span&gt;; &lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: green"&gt;     &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;john.Age = 37; &lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;     &lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: green"&gt;     &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;localhost.&lt;span style="COLOR: #2b91af"&gt;Person&lt;/span&gt; jane = &lt;span style="COLOR: blue"&gt;new&lt;/span&gt; localhost.&lt;span style="COLOR: #2b91af"&gt;Person&lt;/span&gt;(); &lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: green"&gt;     &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;jane.FName = &lt;span style="COLOR: #a31515"&gt;"Jane"&lt;/span&gt;; &lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: green"&gt;     &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;jane.LName = &lt;span style="COLOR: #a31515"&gt;"Doe"&lt;/span&gt;; &lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: green"&gt;     &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;jane.Age = 37; &lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;     &lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: green"&gt;     //Create array &lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: green"&gt;     &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;localhost.&lt;span style="COLOR: #2b91af"&gt;Person&lt;/span&gt;[] people = { john, jane };&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: green"&gt;     //Call Web Service &lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: green"&gt;     &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;localhost.&lt;span style="COLOR: #2b91af"&gt;Service1&lt;/span&gt; s = &lt;span style="COLOR: blue"&gt;new&lt;/span&gt; localhost.&lt;span style="COLOR: #2b91af"&gt;Service1&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: green"&gt;     &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;s.Method(people, &lt;span style="COLOR: blue"&gt;false&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;p&gt; &lt;/p&gt;
&lt;/font&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;img src="http://geekswithblogs.net/WayneMagnum/aggbug/118877.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/WayneMagnum/comments/118877.aspx</wfw:comment>
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/WayneMagnum/comments/commentRss/118877.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/WayneMagnum/services/trackbacks/118877.aspx</trackback:ping>
    </entry>
</feed>
