如何对Project Online PSI服务进行身份验证? [英] How to authenticate to Project Online PSI services?

查看:107
本文介绍了如何对Project Online PSI服务进行身份验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在sharepoint.com上拥有MS Project Online帐户,我需要从客户端C#代码到PSI服务进行身份验证,以获取项目列表.

I have the MS Project Online account at sharepoint.com and I need to authenticate from client C# code to PSI services to get list of projects.

服务器具有基于表单的身份验证.我正在尝试通过下一个代码登录:

Server has Forms based authentication. I am trying to login via next code:

SvcLoginForms.LoginForms loginform = new SvcLoginForms.LoginForms();
loginform.Credentials = new NetworkCredential("admin@myserver.onmicrosoft.com", "password");            
loginform.Url = "https://myserver.sharepoint.com/sites/pwa/_vti_bin/PSI/Project.asmx";
loginform.Login("admin@myserver.onmicrosoft.com", "password");

当我执行loginform.Login时,我得到了SoapException消息:值不能为空.参数名称:account".内部异常xml是:

When I am executing loginform.Login I am getting SoapException with message: "Value cannot be null. Parameter name: account". Inner exception xml is:

<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">Value cannot be null.

参数名称:帐户

我做错了什么?

推荐答案

这篇出色的文章介绍了对Project Online PSI服务的身份验证: http://www.umtsoftware.com/blog/how-to-project-online-psi/

Authentication to Project Online PSI services is described in this excellent article: http://www.umtsoftware.com/blog/how-to-project-online-psi/

这篇关于如何对Project Online PSI服务进行身份验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆