To SPS2003 : Modifying the WS reference map constructor for multiple sites
Sharepoint 2003 has a great collection of Web Services--which, unlike my experience with the Sharepoint .NET Library namespace over the last couple of weeks--work great. These are created in the virtual site's _vti_bin subdirectory, which actually refer back to a
C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\ISAPI
location. (The “60” varies based on the virtual site.)
Since I'm testing a number of virtual sites on various servers, I use a dropdown to pass the URL of the Web Service (in this case the DWS.asmx service), passing the URL as a string in the reference.cs constructor. This allows me to make a single Web Reference and call any virtual site's collection of web services.
public Dws() {
this.Url = "http://drastic/_vti_bin/Dws.asmx";
}
public Dws(string wsUrl)
{
this.Url = wsUrl;
//this.Url = "http://drastic/_vti_bin/Dws.asmx";
}