当我拨打Soap电话时,我开始收到以下错误。
SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://soapapi.findapprenticeship.service.gov.uk/Services/VacancyDetails/VacancyDetails51.svc?WSDL'
我的代码是......
$wsdl = 'https://soapapi.findapprenticeship.service.gov.uk/Services/VacancyDetails/VacancyDetails51.svc?WSDL'
$this->client = new SoapClient($wsdl, ['trace' => true]);
$this->client->__setSoapHeaders([
new SoapHeader($this->namespace, 'PublicKey', env('PublicKey')),
new SoapHeader($this->namespace, 'MessageId', Uuid::uuid4()->toString()),
new SoapHeader($this->namespace, 'ExternalSystemId', env('ExternalSystemId')),
]);
我可以浏览到网址,所以我知道它在那里工作,只是SoapClient不能。奇怪的是它上周工作正常,但是我注意到我使用的两台不同的Mac,它已经开始抛出这个错误了。
有人可以帮忙吗?
由于