[英]Error occurred when verifying security for the message in CRM On-line
I'm moving out some of the code from a plugin to an external web application. 我正在将一些代码从插件移到外部Web应用程序。 The only thing that needs to be added is the authorization.
唯一需要添加的是授权。 When executing my QueryExpression instance from within the plugin, that's not an issue.
从插件中执行我的QueryExpression实例时,这不是问题。 However, accessing the date from outside is.
但是,从外部访问日期是。 :)
:)
I'm not sure where to provide the credentials (user name and password) so the endpoint at my CRM organization lets me in. 我不确定在哪里提供凭据(用户名和密码),因此CRM组织的端点允许我进入。
I prefer to resolve it in such a way so I can create a web service reference and work towards it directly. 我更喜欢以这种方式解决它,以便我可以创建Web服务引用并直接对其进行处理。 So, the (kind of) requirement is not to go using and creating proxy.
因此,(某种)要求是不要使用和创建代理。
How can I do that?! 我怎样才能做到这一点?!
Here's the very basic scenario I'd like to effectuate. 这是我要实现的最基本的方案。 I've created a web service reference in VS using the wizard (endpoint address is Organization.svc ).
我已经使用向导在VS中创建了一个Web服务引用(端点地址为Organization.svc )。
QueryExpression request = new QueryExpression
{
EntityName = "account",
ColumnSet = new ColumnSet()
};
OrganizationServiceClient client = new OrganizationServiceClient();
IEnumerable<Entity> response = client.RetrieveMultiple(request).Entities;
int entityCount = response.Count();
I would suggest no to use Reference but to use SDK assemblies. 我建议不要使用参考,而要使用SDK程序集。 Recheck following article - http://msdn.microsoft.com/en-us/library/gg695790.aspx
重新检查以下文章-http: //msdn.microsoft.com/en-us/library/gg695790.aspx
Also Recheck this article - http://nishantrana.wordpress.com/2012/12/06/sample-code-to-connect-office-365-users-to-crm-2011-online/ and http://nishantrana.wordpress.com/2010/11/03/sample-code-for-using-iorganizationservice-in-crm-2011/ 也重新检查这篇文章- http://nishantrana.wordpress.com/2012/12/06/sample-code-to-connect-office-365-users-to-crm-2011-online/和HTTP:// nishantrana。 wordpress.com/2010/11/03/sample-code-for-using-iorganizationservice-in-crm-2011/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.