C
caboclo975
I created a web service that I want to hit Project Server and pull off
information (ie timecard entries). The first thing this web service
needs to do is hit the LoginWindows webservice (if you are using
windows credentials, which I am) on Project Server and authenticate to
it. Both servers (project server and the server that is hosting the
web service) are on the same domain. I am using sample code that I
found on MSDN, but it isn't connecting. here is the piece of
authentication code.
const string LOGINWINDOWS = "_vti_bin/PSI/LoginWindows.asmx";
string baseUrl = "http://rexex01:32001/pwa/";
public static WebSvcLoginWindows.LoginWindows loginWindowsSvc =
new WebSvcLoginWindows.LoginWindows();
loginWindowsSvc.Url = baseUrl + LOGINWINDOWS;
loginWindowsSvc.Credentials =
CredentialCache.DefaultCredentials;
if (loginWindowsSvc.Login())
{
logonSucceeded = true;
}
loginWindowsSvc.Login() is returning false, it does not seem to be
logging in. I can't figure out what I am doing wrong.
can anybody help me with this?
information (ie timecard entries). The first thing this web service
needs to do is hit the LoginWindows webservice (if you are using
windows credentials, which I am) on Project Server and authenticate to
it. Both servers (project server and the server that is hosting the
web service) are on the same domain. I am using sample code that I
found on MSDN, but it isn't connecting. here is the piece of
authentication code.
const string LOGINWINDOWS = "_vti_bin/PSI/LoginWindows.asmx";
string baseUrl = "http://rexex01:32001/pwa/";
public static WebSvcLoginWindows.LoginWindows loginWindowsSvc =
new WebSvcLoginWindows.LoginWindows();
loginWindowsSvc.Url = baseUrl + LOGINWINDOWS;
loginWindowsSvc.Credentials =
CredentialCache.DefaultCredentials;
if (loginWindowsSvc.Login())
{
logonSucceeded = true;
}
loginWindowsSvc.Login() is returning false, it does not seem to be
logging in. I can't figure out what I am doing wrong.
can anybody help me with this?