Nouvelle méthode de validation des WSDL
This commit is contained in:
parent
85f86469ab
commit
df3d75047f
@ -101,6 +101,21 @@ class WsdlDownloader
|
||||
if ($responseSuccessfull) {
|
||||
$response = $this->curl->getResponseBody();
|
||||
|
||||
libxml_use_internal_errors(true);
|
||||
|
||||
$doc = simplexml_load_string($response);
|
||||
|
||||
if (!$doc) {
|
||||
$errors = libxml_get_errors();
|
||||
dump($errors);
|
||||
|
||||
if (count($errors)) {
|
||||
throw new \Exception('There is something wrong with the WSDL file formatting. The file can\'t be downloaded to be cached.');
|
||||
}
|
||||
|
||||
libxml_clear_errors();
|
||||
}
|
||||
|
||||
if ($this->resolveRemoteIncludes) {
|
||||
$this->resolveRemoteIncludes($response, $cacheFilePath, $wsdl);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user