HTTPS location
에 연결하려고합니다. 현재 Could not connect to host
오류가 발생합니다. 두 개의 우분투 서버에서 테스트하고 있습니다. 이 오류는 오프 사이트에있는 하나의 우분투 서버에서 발생합니다. 사이트의 개발 서버에있는 다른 서버가 정상적으로 작동합니다. 나는 서버 파일을 수색하고이 문제점을 일으키는 원인이 될 시스템에있는 어떤 다름도 찾아 내지 않았다. 비슷한 문제가있는 사람을 아직 찾지 못했으며 동일한 오류 메시지와 관련된 여러 가지 해결책을 시도했습니다 (예 : wsdl 캐싱 사용 중지 등).Soap을 HTTPS에 연결할 수없는 이유는 무엇입니까?
- HTTP는 HTTPS 하나 개의 서버에서 작동
- 의 php.ini 파일은 HTTP 작동 (
phpinfo();
활성화 같은 - 은 OpenSSL과 비누 쇼, 그래서 나는 가정 비누는 괜찮 두 서버 모두에서 잘 작동)
wget https://exampleurl.com/services/SessionService
는
은 내가에서 다음 보여야 오류가 서버에서 잘 작동?
어떤 테스트를 수행 할 수 있습니까?
오류에 대한 추가 정보는 어떻게 얻을 수 있습니까?
$sessionService = new SessionService('/path/to/local/file/SessionService.wsdl', array(
'location' => "https://exampleurl.com/services/SessionService"
));
try {
// throws SoapFault error
$token = @Login($sessionService, $username, $password);
}
catch (SoapFault $sf) {
//echo $sf->getMessage());
//echo $sf;
}
SessionService 클래스 :
class SessionService extends SoapClient {
private static $classmap = array(
'login' => 'login',
'loginResponse' => 'loginResponse',
...
);
public function SessionService($wsdl = "http://localhost:8080/services/SessionService?wsdl", $options = array()) {
foreach (self::$classmap as $key => $value) {
if (!isset($options['classmap'][$key])) {
$options['classmap'][$key] = $value;
}
}
parent::__construct($wsdl, $options);
}
//fails here
public function login(login $parameters) {
return $this->__soapCall('login', array($parameters), array(
'uri' => 'http://example.url.com',
'soapaction' => ''
)
);
}
//... other functions
}