문제

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

지금까지 나는 서비스에 대한 참조를 만들었습니다. http://sugar-dev.walkinwifi.net/soap.php?wsdl=sugarsoap

그런 다음 이와 같은 코드를 작성했습니다

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

이것은 당신에게 농담을줍니다.

마지막 줄은 로그인이 호출 될 때 예외를 제공합니다.

내가 얻는 예외는 연결할 수없는 내면의 예외가 있습니다. 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."}

HTTPS 부분은 어디에서 왔습니까? 나는 HTTP 이외의 다른 참조를 사용하지 않았지만 오류는 분명히 HTTPS를 나타냅니다.

HTTP를 통해 SugarCrm 비누에 연결할 수 있습니까? 아니면 HTTPS를 사용해야합니까?

내가 그물에서 찾을 수있는 모든 예에서 그것은 HTTP이지만 대부분은 C#이있는 PHP입니다.

도움이 되었습니까?

해결책

나는 잘못된 장소를 찾고있다. 설탕의 비누 구성 내부에는 비누 호출에 사용될 URL을 지정합니다. 이것은 https://sugar-dev.walkinwifi.com.

그것을 HTTP로 변경했고 모든 것이 좋습니다.

다른 팁

어쨌든 SOAP 서비스는 HTTPS에서도 작동해야합니다. 개인적으로 C # 클라이언트와도 문제가 없었습니다. 서버 인증서와 인증 체인이 유효한지 확인하십시오.

안녕, 안토니오.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top