Sugar CRM - Java 客户端 - 登录
我正在尝试开发一个从 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
:
String user = "user_auth{username=will; password =18218139eec55d83cf82679934e5cd75; version=1.0;}";
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:
String user = "user_auth{username=will; password=18218139eec55d83cf82679934e5cd75; version=1.0;}";
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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