LoginWindows web service

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.

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top