R – Log on to Project Server and call PSI method

authenticationproject-server-2007psi

I have a Microsoft Project Server 2007 instance on a network server. I want to call from a development machine a webservice from PSI. How can I connect to PS by specifying a username and password? (Something similar to what happens when you access the PWA in a browser, you enter your username and password, even if on the computer from which you work you have another user/password).

Best Answer

Instead, I simply set the credentials for the web service to network credentials using a custom user, domain and password. Seems to work for what I need.

myPSWebService.Credentials = new NetworkCredential("user", "pass", "domain");