title: Error using SoapClient() in PHP
body: <p>I'm trying to access WSDL(Web Service Definition Language) file using SoapClient() of PHP. I found that WSDL file is authenticated. I tried with passing credentials on an array by another parameter and active SSL on my server, still I'm getting an error.</p>
  
  <p>Here is the code I'm using:</p>
  
  <blockquote>
    <p>$client = new
    SoapClient("https://webservices.chargepointportal.net:8081/coulomb_api_1.1.wsdl",array("trace"
    => "1","Username" => "username","Password" => "password"));</p>
  </blockquote>
  
  <p>Here is the error I'm getting:</p>
  
  <blockquote>
    <p>Warning:
    SoapClient::SoapClient(https://webservices.chargepointportal.net:8081/coulomb_api_1.1.wsdl)
    [soapclient.soapclient]: failed to open stream: Connection timed out
    in PATH_TO_FILE on line 80</p>
    
    <p>Warning: SoapClient::SoapClient() [soapclient.soapclient]: I/O warning
    : failed to load external entity
    "https://webservices.chargepointportal.net:8081/coulomb_api_1.1.wsdl"
    in PATH_TO_FILE on line 80</p>
    
    <p>Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing
    WSDL: Couldn't load from
    'https://webservices.chargepointportal.net:8081/coulomb_api_1.1.wsdl'
    : failed to load external entity
    "https://webservices.chargepointportal.net:8081/coulomb_api_1.1.wsdl"
    in PATH_TO_FILE:80 Stack trace: #0
    /home2/wingstec/public_html/widget/API/index.php(80):
    SoapClient->SoapClient('https://webserv...', Array) #1 {main} thrown
    in PATH_TO_FILE on line 80</p>
  </blockquote>
  
  <p>It seems that error says file not exist at the path we given but when we run that path directly on browser then we're getting that file</p>
  
  <p>Can anyone help me to figure out what the exactly problem is?</p>