How to access the Project Web Service with remote user

  • Thread starter Thiago Przybylovicz
  • Start date
T

Thiago Przybylovicz

Hi, everyone... I'm having a problem with authorization in a Project-based
application...

I'm developing locally, on the server, and my local user
(CONTOSO\Administrator) can access the Project data by ProjectWebService
(from PSI) without any problem... But I installed the application in another
server, and access it remotely... When I try to access the pages with Project
data, it throws an exception saying "401: Unauthorized".

My code is using Impersonate (because I don't know how to use without it) to
login on Project by the webservices, and the user that I'm using from the
remote machine (bematech\projectadmin) is Project administrator. There's
another configuration that need to be made on the server for my user can
access the Project by my application or another way (without impersonate,
perhaps) to do that? It's urgent!!

Thanks

Thiago
 
S

Stephen Sanderlin

Impersonation (in essence) requires two authentications. One to connect
to the web service itself (when instantiating the derived web service
class), and another one to execute the action being impersonated (when
calling the method after you SetImpersonationContext).



What user's credentials are you setting as the derived web service
class's Credentials property? From what you're describing, it sounds
like you're using CredentialCache.DefaultCredentials. If so, this may be
your problem.



Try connecting to Project.asmx using Internet Explorer while logged in
as BEMATECH\ProjectAdmin. If it fails, then your problem is that this
account does not have access to the SSP. This is because
BEMATECH\ProjectAdmin is not the SSP Admin account, and by default it
will not have access to the PSI. You will have to add this as a Process
Account for the SSP in the Edit Shared Services Provider page for that
particular PWA instance.

--

Stephen Sanderlin

Principal Consultant

MSProjectExperts



For Project Server Consulting: http://www.msprojectexperts.com

For Project Server Training: http://www.projectservertraining.com



Read my blog at: http://www.projectserverhelp.com/

Join the community at: http://forums.epmfaq.com





"Thiago Przybylovicz" <[email protected]>
wrote in message
 
T

Thiago Przybylovicz

The credentials were fine, but the user hasn't the access on SSP, like you
said. I put him there, and it worked perfectly! I don't have words to thank
you!! =D

Regards

Thiago
 

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