Sugar CRM - Java 客户端 - 登录

发布于 2024-10-04 06:35:56 字数 785 浏览 0 评论 0原文

我正在尝试开发一个从 Sugar CRM 获取联系人的 Java 应用程序。我新安装了Sugar CRM 6.0.2,并且没有对其进行任何修改。我正在利用内置的基于 SOAP 的 Web 服务(必须使用肥皂,不能基于休息)来登录。但在登录时,我收到一条错误消息:

anyType{
    id=-1; 
    error=anyType{
        number=10; 
        name=Invalid Login; 
        description=Login attempt failed please check the username and password;
    };
}

我正在为 user_auth 参数发送一个字符串 user

  1. String user = "user_auth{username=will; password =18218139eec55d83cf82679934e5cd75; version=1.0;}";
  2. String user = "{'user_auth':{'用户名':'will','密码':'18218139eec55d83cf82679934e5cd75','版本':'1.0' }}";

我尝试了上述两个选项,但都不起作用。我尝试了 application_name 的“SugarCRM”和“CRM”。

如果你们中的任何人可以在这方面帮助我,那将对我有很大帮助。谢谢。

I was trying to develop a Java application which gets contacts from Sugar CRM. I have newly installed Sugar CRM 6.0.2 and I did not make any modifications to it. I am making use of the inbuilt SOAP based WebServices (have to use soap cant go for rest based) to login. But while logging in I am getting an error message saying:

anyType{
    id=-1; 
    error=anyType{
        number=10; 
        name=Invalid Login; 
        description=Login attempt failed please check the username and password;
    };
}

I am sending a string user for user_auth parameter:

  1. String user = "user_auth{username=will; password=18218139eec55d83cf82679934e5cd75; version=1.0;}";
  2. String user = "{'user_auth':{'username':'will','password':'18218139eec55d83cf82679934e5cd75', 'version':'1.0'}}";

I tried both of the above options and its not working. I tried "SugarCRM" and "CRM" for application_name.

If anyone of you can help me regarding this that would be a great helpful for me. Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

锦爱 2024-10-11 06:35:56

SugarCRM 中存在错误。您只能使用管理员登录 Web 服务。

并且您无法将 JSON 字符串传递给 SOAP。您必须使用 SOAP 传递 XML。

http://support.sugarcrm.com /02_Documentation/04_Sugar_Developer/Sugar_Developer_Guide_6.5/02_Application_Framework/Web_Services/Examples/SOAP/PHP/Logging_In

There is a bug in SugarCRM. You may only log into the WebServices with Admin.

And you can't pass JSON Strings to SOAP. You have to pass XML using SOAP.

http://support.sugarcrm.com/02_Documentation/04_Sugar_Developer/Sugar_Developer_Guide_6.5/02_Application_Framework/Web_Services/Examples/SOAP/PHP/Logging_In

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文