Re: How to register Project Server Event Handler using API or Obje
I don't believe this is really what he was looking for. giving him a
library that encapsulates the PSI even further may serve to simplify the
complexities of the PSI, but it still fundamentally operates as a web
service consumer with all the overhead and complexity inherent in that
solution. He was looking for an API answer - similar to SharePoint,
where you can do many things through web services OR the API.
--
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
"Martin Winzig" wrote in
message news:3DE23648-A208-4DDB-A9EB-CC9DD422E210@microsoft.com:
> If you need Project server Api, check following post:
> http://www.projectserver.cz/cms/index.php?itemid=44
>
> Post contains link to sample event handler which using my basic project
> server API (so it's easier to call PSI, and impersonate user)
>
>
>
>
>
> --
> Blog: http://www.projectserver.cz
>
>
> "NewOnV3" wrote:
>
>
> > Thanks for quick response.
> >
> > This registration app will will have command line args where I will pass the
> > PWA url, eventname and the dll that implements the event. The code will then
> > register the eventhandler for the given project. One of the event handler we
> > have is OnPublishing
> >
> > What I am looking for is a object model(API) way to registring event and I
> > don't want to use webservice. Rather I want to call API which might call
> > webservice behind the scene.
> >
> > This is how an event handler is registered in MOSS:
> >
> > web = Create SPWeb() object from URL passed in command line arg
> > web.EventReceivers.Add(SPEventReceiverType.EmailReceived, assm,
> > strHandlerClass);
> > web.Update();
> >
> > As you see there is no webservice involved here.
> >
> > Can similar be done in project server?
> >
> > Thanks again
> >
> > "Stephen Sanderlin" wrote:
> >
>
> > > Use the Events web service of the PSI. It is documented in the SDK.
> > >
> > >
> > >
> > > No sample code that I'm familiar with, but it's not too difficult.
> > > Remember to give each association a unique uid.
> > >
> > > --
> > >
> > > 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
> > >
> > >
> > >
> > >
> > >
> > > "NewOnV3" wrote in message
> > > news:A01AFCFB-570D-4599-A40A-6C7A92735780@microsoft.com:
> > >
>
> > > > We can register Project Server event handlers from Server-Side Event Handler
> > > > Configuration of a PWA
> > > >
> > > > Now I want to do the same but using API or Object Model of Project server.
> > > >
> > > > Can this be done?
> > > >
> > > > If yes, do you have sample code on how to do this or similar stuff?
> > > >
> > > > Thanks
> > >
>
> > >
date: Tue, 2 Sep 2008 12:41:14 +0000
author: Stephen Sanderlin stephen NS-DOT sanderlin A-NS-T msprojectexperts DOT-NS com