<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Generics on Bits and Pieces</title>
		<link>https://bits.strawjackal.org/tags/generics/</link>
		<description>Recent content in Generics on Bits and Pieces</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Mon, 03 Sep 2007 16:55:35 +0200</lastBuildDate>
		
			<atom:link href="https://bits.strawjackal.org/tags/generics/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Dynamically creating a Sharepoint Web-Service proxy instance</title>
				<link>https://bits.strawjackal.org/128/</link>
				<pubDate>Mon, 03 Sep 2007 16:55:35 +0200</pubDate>
				<guid>https://bits.strawjackal.org/128/</guid>
				<description>&lt;p&gt;In my current code, I find myself accessing many Sharepoint web services. In one run of code I can access 5-6 different web services on dozens of different sites, not necessarily even on the same server. Given that I find myself writing a lot of boilerplate code looking like this:&lt;/p&gt; &lt;p&gt;&lt;font face=&#34;Courier New&#34;&gt;using (SiteData siteDataWS = new SiteData())&lt;br&gt;{&lt;br&gt;   siteDataWS.Credentials = CredentialsCache.DefaultNetworkCredentials;&lt;br&gt;   siteDataWS.Url = currentSite.ToString() + &#34;/_vti_bin/SiteData.asmx&#34;;&lt;br&gt;&lt;br&gt;   // Do something with the WS.&lt;br&gt;}&lt;/font&gt;&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
