Error using SoapClient() in PHP

Ads

 
 
 

Share on Google+Share on Google+

Dhaval Parekh
Error using SoapClient() in PHP
0 Answer(s)      4 years and 7 months ago
Posted in : PHP

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.

Here is the code I'm using:

$client = new SoapClient("https://webservices.chargepointportal.net:8081/coulomb_api_1.1.wsdl",array("trace" => "1","Username" => "username","Password" => "password"));

Here is the error I'm getting:

Warning: SoapClient::SoapClient(https://webservices.chargepointportal.net:8081/coulombapi1.1.wsdl) [soapclient.soapclient]: failed to open stream: Connection timed out in PATHTOFILE on line 80

Warning: SoapClient::SoapClient() [soapclient.soapclient]: I/O warning :

failed to load external entity "https://webservices.chargepointportal.net:8081/coulombapi1.1.wsdl" in PATHTOFILE on line 80

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing

WSDL: Couldn't load from 'https://webservices.chargepointportal.net:8081/coulombapi1.1.wsdl' : failed to load external entity "https://webservices.chargepointportal.net:8081/coulombapi1.1.wsdl" in PATHTOFILE:80 Stack trace: #0 /home2/wingstec/public_html/widget/API/index.php(80): SoapClient->SoapClient('https://webserv...', Array) #1 {main} thrown in PATHTOFILE on line 80

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

Can anyone help me to figure out what the exactly problem is?

Ads
View Answers
Ads









Related Tutorials/Questions & Answers:
Tutorials   
Java Spring Hibernate Struts Training I am Java programmer. Should I learn Java Script or Python? Delete multiple records with pagination by selecting checkboxes How to add one hour in php date? connection in php connection in php connection in php PHP magento how to make previous and next Button Display Data in php session written exam display database results question create a simple form Magento Strings in PHP Zend Framework Installation in xampp? How to prevent adding duplicate items to the shopping cart php problem maximum execution time of 30 seconds exceeded in php Call-time pass-by-reference has been removed in HTTP_POST_VARS is deprecated $_GET[] index is not defined Function mysql_db_query() is deprecated Function mysql_db_query() is deprecated Function split() is deprecated Fatal error: Call to undefined function session_register() in .php file php tag not working Error reporting in PHP Why are MySQL Routines and Views not used with PHP? How to add Click to copy function to my wordpres blog? connection of php to MySQL. loan calculator Datepicker not getting called through include function of php change url string integrate login in php Installation of wamp server Display PHP clock with user input date and time value in div from php, reloading form pre-populate form developing a system using php n mysql Configure apache Tomcat to work with Eclipse and PDT in php How to display a file for 24 hours? LOGIN ERROR LOGIN FAILED", $_SESSION['login fail']='0',}?> I GOT ERROR FOR MY PROJECT PHP Sending emails and insert into trable Tutorial college Student Admission System PLZ HELP ME. i need php code.

Ads

 
Advertisement null

Ads