WCF与Project Online [英] WCF with Project Online
问题描述
伙伴们,
我正在努力为我的Project Service Online获得正确的WCF配置,但没有取得任何成功。
I was struggling me out to get a right WCF configuration of my Project Service Online, but without any kind of success.
这是我的配置文件,它与On-Premises实例一起使用:
This is my configuration file, that it works with an On-Premises instance:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior name="basicHttpBehavior">
<clientCredentials>
<windows allowedImpersonationLevel="Impersonation" />
</clientCredentials>
</behavior>
</endpointBehaviors>
</behaviors>
<bindings>
<!--<basicHttpBinding>
<binding name="basicHttpConf" sendTimeout="01:00:00" maxBufferPoolSize="500000000"
maxReceivedMessageSize="500000000">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="500000000" />
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Ntlm" realm="http" />
</security>
</binding>
</basicHttpBinding>-->
<basicHttpBinding>
<binding name="basicHttpConf" sendTimeout="01:00:00" maxBufferPoolSize="500000000"
maxReceivedMessageSize="500000000">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="500000000" />
<security mode="Transport">
<transport clientCredentialType="Ntlm"/>
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="https://mysite.sharepoint.com/sites/PWA/_vti_bin/PSI/ProjectServer.svc"
behaviorConfiguration="basicHttpBehavior" binding="basicHttpBinding"
bindingConfiguration="basicHttpConf" contract="SvcProject.Project"
name="basicHttp_Project" />
<endpoint address="https://mysite.sharepoint.com/sites/PWA/_vti_bin/PSI/ProjectServer.svc"
behaviorConfiguration="basicHttpBehavior" binding="basicHttpBinding"
bindingConfiguration="basicHttpConf" contract="SvcQueueSystem.QueueSystem"
name="basicHttp_QueueSystem" />
</client>
</system.serviceModel>
</configuration>
有谁知道如何让它运作?我总是收到并且401错误。
Does anyone know how to get it work? I always receive and 401 error.
SDK的示例可能会更加扩展......
And the examples of the SDK could be more extended...
谢谢!
Miguel
推荐答案
嗨Miguel,我们不支持Project Online中的PSI - SDK中提到了这一点。 我假设您正在尝试使用PSI,因为您的配置转到projectserver.svc - 唯一支持的WCF用于CSOM并使用client.svc。
Hi Miguel, we do not support the PSI in Project Online - this is mentioned in the SDK. I assume you are trying to use PSI as your configuration goes to projectserver.svc - the only supported WCF is for CSOM and uses client.svc.
祝您好运,
Brian
这篇关于WCF与Project Online的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!