Can';t连接到SugarCRM Soap API
我刚刚开始一个项目,需要使用SOAP接口将联系人插入SugarCRM系统 到目前为止,我已经创建了对该服务的引用 然后写一些这样的代码Can';t连接到SugarCRM Soap API,soap,c#-3.0,sugarcrm,Soap,C# 3.0,Sugarcrm,我刚刚开始一个项目,需要使用SOAP接口将联系人插入SugarCRM系统 到目前为止,我已经创建了对该服务的引用 然后写一些这样的代码 public SugarHelper() { //Create a new instance of the client proxy this.sugarClient = new sugarsoapPortTypeClient(); //Set the default value this
public SugarHelper()
{
//Create a new instance of the client proxy
this.sugarClient = new sugarsoapPortTypeClient();
//Set the default value
this.sessionId = String.Empty;
}
public bool Authenticate(string Username, string Password)
{
//Create an authentication object
user_auth user = new user_auth();
//Set the credentials
user.user_name = Username;
user.password = this.computeMD5String(Password);
//Try to authenticate
set_entry_result authentication_result = this.sugarClient.login(user, "");
这给了你一个笑话
当调用login时,最后一行给出了一个异常
我得到的异常有一个内部异常,抱怨它无法连接
https部分来自哪里?除了http之外,我没有使用其他引用,但错误清楚地说明了https
我可以通过http连接到SugarCRM soap还是必须使用https
我在网上能找到的所有例子都是http,但大多数都是php和非常c#one。我找错地方了。在Sugar的Soap配置中,指定将用于Soap调用的url。这设置为
将其更改为http,一切正常。我找错地方了。在Sugar的Soap配置中,指定将用于Soap调用的url。这设置为
将其更改为http,一切正常。无论如何,SOAP服务也必须通过HTTPS工作。就个人而言,我没有遇到任何问题,即使是与C#客户。验证服务器证书和证书链是否有效 再见,
Antonio。无论如何,SOAP服务也必须通过HTTPS工作。就个人而言,我没有遇到任何问题,即使是与C#客户。验证服务器证书和证书链是否有效 再见, Antonio.C#用于访问SugarCRM公开的Web服务的SOAP客户端。该框架的客户端版本基于.NET 4 C#SOAP客户端,用于访问SugarCRM公开的Web服务。该框架的客户端版本基于.NET4
{"An error occurred while making the HTTP request to https://sugar-dev.walkinwifi.net/soap.php. This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server."}