You are here: Home » SharePoint » FPRPC Call: How to determine if server is 2003 or 2007

FPRPC Call: How to determine if server is 2003 or 2007

Posted by tchmiel
No Comments »

ÿ
ÿ

To programmatically determine if you are connecting to a server running wssv2 or wssv3 via a FPRPC call, use the server version RPC.ÿ

ÿ
ÿ

If the major version is 6, then it's WSS v2.ÿ

If the major version is 12, then it's WSS v3.

ÿ
ÿ

=====================

ÿ
ÿ

GET /_vti_bin/shtml.dll/_vti_rpc HTTP/1.1

X-Vermeer-Content-Type: application/x-www-form-urlencoded

Host: troys1

Accept: */*

Content-Length:21

Connection: Keep-Alive

ÿ
ÿ

method=server+version

ÿ
ÿ

HTTP/1.1 200 OK

Connection: close

Date: Thu, 25 Jan 2007 22:47:57 GM3

Server: Microsoft-IIS/6.0

X-Powered-By: ASP.NET

MicrosoftSharePointTeamServices: 12.0.0.4518

Content-type: text/html; charset=utf-8

Set-Cookie: WSS_KeepSessionAuthenticated=80; path=/

ÿ
ÿ

<html><head><title>vermeer RPC packet</title></head>

<body>

<p>method=server version

<p>server version=

<ul>

<li>major ver=12

<li>minor ver=0

<li>phase ver=0

<li>ver incr=4518

</ul>

</body>

</html>

ÿ
ÿ

ÿ
ÿ

Your email is never shared.
Required fields are marked *




Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>