Dave Burke - Freelance .NET Developer specializing in Online Communities

A freelance .NET Developer

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";
}

Posted: Jun 09 2004, 04:57 PM by daveburke | with 4 comment(s)
Filed under:

Comments

Paul said:

(The “60” varies based on the virtual site.) ??
# June 9, 2004 6:15 PM

Dave Burke said:

Paul, It was vague because I haven't investigated it. I had assumed each site had a different directory, since there was a 40 and a 50 and I thought I had 3 different virtual sites on this machine. I'm obviously wrong about what this numeric subdirectory indicates and hopefully someone will clear it up for us. Thanks for pointing that out!
# June 9, 2004 9:37 PM

Paul said:

Dave, I don't exactly know what this numeric directory means, it think be some kind of a version number.
STS 1.0 was using the 50 directory while WSS/SPS2003 always uses the 60 directory.
# June 10, 2004 4:35 AM

Dave Burke said:

Interesting. I have 40/50/60 subdirectories on my home office network machine, but the server at work where I installed SS has 50/60 only.
# June 10, 2004 8:09 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)