This is the error I get:
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://subdomain.example.com:105/Example/Example.asmx?WSDL' : failed to load external entity "http://subdomain.example.com:105/Example/Example.asmx?WSDL"
as a result of this request:
$client = new SoapClient('http://subdomain.example.com:105/Example/Example.asmx?WSDL');
WHAT I TRIED:
Accessing this exact resource from my localhost or web browser also works.
Accessing other resources which don't have :105 works (if that could matter).
Tried to do
socket_create_listen(105)
but gotten "Permission denied" error. Then tried to enable Port 105 via WHM by adding it firewall to the list of ports (IPv4, IPv4, TCP and UDP). All that still didn't work and there was no response from port 105.allow_url_fopen is switched On.
default_socket_timeout is set to 300.
Tried this answer: https://stackoverflow.com/a/7118802 (parameters that I changed are URL and port - which I changed to 105. Other parameters I've left literally identical, maybe that was a mistake?)
As per some other SO answers, tried using https instead, doesn't work. Tried adding www. but that URL doesn't even exist.
Tried echoing file_get_contents() as per this answer: https://stackoverflow.com/a/14729295/525445 - it gives me a blank screen.
Tried this: Fatal error: Uncaught SoapFault exception: [WSDL] which has resulted in
Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host
- Tried fetching it with cURL, as suggested here: https://stackoverflow.com/a/5311925/525445 The response I got is bool(false)