Using PSI in Project 2007 VBA: Credential issues

  • Thread starter Termin_Terminator
  • Start date
T

Termin_Terminator

Hello,

inside Project 2007 VBA I am using MSOSOAPLib30.SoapClient30 and the
WSDL files from the PSI Web Services to access PSI. The used
credentials for accessing PSI are the same of Project Prof. 2007, e.g.
when I run Project Prof. 2007 as "Administrator" those credentials are
used for accessing PSI Web Services.

Now I want to use other credentials inside VBA than "Administrator",
and I have massive trouble to command the SOAP object to use other
credentials than "Administrator".

Example code:
Set obj = New MSOSOAPLib30.SoapClient30
obj.ClientProperty("ServerHTTPRequest") = False
obj.MSSoapInit "http://sampleserver/pwa/_vti_bin/PSI/Project.asmx?
WSDL"
obj.ConnectorProperty("EndPointURL") = "http://sampleserver/pwa/
_vti_bin/PSI/Project.asmx"
obj.ConnectorProperty("AuthUser") = "MyDomain\ServiceUser"
obj.ConnectorProperty("AuthPassword") = "topsecret"
obj.ConnectorProperty("WinHTTPAuthScheme") = 18

After all the methods of the PSI Web Services are *always* called as
"Administrator" and never as "MyDomain\ServiceUser". Any help how to
use other credentials for accessing PSI Web Services inside Project
2007 VBA? Thanks in advance.

Good bye.
Termin_Terminator
 
A

Andrew Jacks

G'Day,

Have you been able to resolve your problem?

I'm not sure, but is it due to the WinHTTPAuthScheme being set to 18, which
I believe is negotiate authentication

try changing the settings to:-
1 Basic Authentication

I am interested to see how you get on
 

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