Calling PSI using WCF

C

Cramezul

Does anyone tried to use WCF to work with Project Server?

I'm new to WCF (also new to PSI). Since we're starting a new project using
the lastest technologies, I thought it would be nice to use WCF to call PSI.

I tried usign the default generated configuration and code from svcutil but
event calling LoginWindows.Login() wont work. I tried a few security config
and this one gives me better result:
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>

I can now call Login succesfully but my next call fail. I try to call
Project.ReadProjectList() and get this Error:
System.ServiceModel.FaultException was unhandled
Message="System.Web.Services.Protocols.SoapException: ProjectServerError(s)
LastError=GeneralSecurityAccessDenied Instructions: Pass this into
PSClientError constructor to access all error information\n at
Microsoft.Office.Project.Server.WebService.Project.ReadProjectList()".

Anyone got beter results?
 
B

Boaz Lev [MSFT]

Not having seen the code you use to execute the PSIs, it is hard for me to
tell what the exact problem is. Could it be something as simple as you not
having the permissions needed to read the projcts? Another point, on the
second web service you call (i.e. in your case the Project web service) do
you set the credentials?

Thanks,
 
C

Cramezul

Shame on my partner. He gave me the wrong permissions.

So, to be able to call the PSI from WCF, I just needed to modify the
<security> section of the config. I'm using Windows integrated security. I
didn't try Forms authentication...

Thanks.
 
B

Boaz Lev [MSFT]

Sweet. Sometimes it is the smallest things that end up causing the biggest
problems, eh? Glad you got your problem solved.

Thanks,
 
C

Cramezul

We finally went back to the ASP.NET web service interface. We had reliabilty
issues that don't happens this way...
 

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