2009-09-17 5 views
1

SOAP 인터페이스를 사용하여 연락처를 SugarCRM 시스템에 삽입해야하는 프로젝트를 시작했습니다.SugarCRM Soap API에 연결할 수 없습니다.

는 지금까지 서비스이

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, ""); 

같은 일부 코드이 당신에게 농담을 제공합니다 다음 writen http://sugar-dev.walkinwifi.net/soap.php?wsdl=sugarsoap

에 대한 참조를 만들었습니다.

마지막 줄은 로그인이 호출 될 때 예외입니다.

내가 얻는 예외는 HTTPS 부분에서 오는가 https://sugar-dev.walkinwifi.net/soap.php

{"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."} 

에 연결할 수없는 불평 내부 예외가있다? http 이외에 다른 참조를 사용하지 않았지만 오류는 https를 명확하게 표시합니다.

http를 통해 SugarCRM 비누에 연결할 수 있습니까? 아니면 https를 사용해야합니까?

모든 예제에서 나는 인터넷에서 찾을 수 있지만 http는 대부분이 매우 C# 1 인 PHP입니다.

답변

1

잘못 찾고 있습니다. Sugar의 Soap 구성에서 비누 호출에 사용될 URL을 지정합니다. 이 값은 https://sugar-dev.walkinwifi.com으로 설정됩니다.

http로 변경되었으며 모두 정상입니다.

0

어쨌든 SOAP 서비스는 HTTPS에서도 작동해야합니다. 개인적으로 C# 클라이언트를 사용하는 경우에도 문제가 발생하지 않았습니다. 서버 인증서 및 인증서 체인이 유효한지 확인하십시오.

안녕, 안토니오.

+0

SugarCRM에 의해 노출 된 웹 서비스에 액세스하기위한 C# SOAP 클라이언트. 프레임 워크의 클라이언트 버전은 .NET 4 https://github.com/amusarra/SugarCRMCSharpSOAPClient를 기반으로합니다. –

관련 문제