Logging into Project Server

R

Robin

Hi all

I am reading the SDK and API reference documentation for Project Server 2003 (or what I believe is this), and I just can't seem to find anything about programmatic logon to Project Server that makes sense. As far as I can tell, it appears as though I must call an "ASP" page passing username and password to login. This just doesn't seem right

What I'm hoping to do is this

1) create a web part to add into SharePoint that calls out to a web servic
2) this web service (located on the same server as Project Server), should take the credentials that SharePoint knows, and use them to login to Project Serve
3) based on these credentials, expose things in the web part from Project Server based on the passed credential

Does Project Server 2003 offer some kind of class/object/method for directly logging into Project Server as the current user

Any information will be helpful...thank

Robin..
 
L

Lars Hammarberg

Hi!

You're trying to access data from an application running on a web server and
don't think calling asp pages make sense? Well... you could try any method
you like, I suppose, but the main thing is that you need a session cookie
from the ProjectServer. This cookie has to accompany all calls to the PDS
running on that server.

If you want to access ProjectServer data using ProjectServer authentication
(uid/pwd) then you'll have to get your cookie from
http://MyServer/ProjectServer/LgnPSAu.asp?un=MyUserName&pwd=MyPassword
If you want to access ProjectServer using NTAuthentication, you'll have to
use another URL:
http://MyServer/ProjectServer/LgnIntAu.asp

Both of these will give you a session cookie that you'll then pass on to the
PDS.wsdl using SOAP.

Does this help?

/Lars Hammarberg
www.camako.se
MSProject Premier Partner



Robin said:
Hi all,

I am reading the SDK and API reference documentation for Project Server
2003 (or what I believe is this), and I just can't seem to find anything
about programmatic logon to Project Server that makes sense. As far as I
can tell, it appears as though I must call an "ASP" page passing username
and password to login. This just doesn't seem right.
What I'm hoping to do is this:

1) create a web part to add into SharePoint that calls out to a web service
2) this web service (located on the same server as Project Server), should
take the credentials that SharePoint knows, and use them to login to Project
Server
3) based on these credentials, expose things in the web part from Project
Server based on the passed credentials
Does Project Server 2003 offer some kind of class/object/method for
directly logging into Project Server as the current user?
 
R

Robin

Hi Lars

It's not that it doesn't make sense I guess, its just that I figured there would be some kind of object model (like MCMS) that allows you to access everything in Project Server, rather than an XML-based API. Nonetheless, I will carry on. Do you have any good links to some standard progamming tasks for pulling back data from project server

Thanks for your help.
Robin..
 
L

Lars Hammarberg

Hi!
Sorry about the delay...
I always start looking in the sdk for Project2003 and then go on looking in
the sdk for Project2002, as the latter contains lots of examples of code
that runs perfectly fine in Proj2003 as well.
Both can be found on MSDN.

--

/Lars Hammarberg
www.camako.se
MSProject Premier Partner



Robin said:
Hi Lars,

It's not that it doesn't make sense I guess, its just that I figured there
would be some kind of object model (like MCMS) that allows you to access
everything in Project Server, rather than an XML-based API. Nonetheless, I
will carry on. Do you have any good links to some standard progamming tasks
for pulling back data from project server?
 

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