SOAP-ERROR: Parsing WSDL: Couldn't load from <URL>
I solved this on my WAMP setup by enabling the php_openssl
extension, since the URL I was loading from used https://
.
I had exactly the same error message. In my case, making an entry in my /etc/hosts
file (on the server hosting the service) for the target server referenced in the WSDL fixed it.
Kind of a strangely worded error message..
I had this problem and it took me hours to figure out. The mainly reason of this error is the SoapClient cannot stream the web service file from the host. I uncommented this line "extension=php_openssl.dll" in my php.ini file and it works.