I am trying to connect Magento 1 with the other platform for the inventory named "Zoho inventory" via a third-party company "kloudconnector".
The API is working fine but I still get this error.
We have tried it again getting the error
SOAP-ERROR: Parsing WSDL: Couldn't load from
'https://bydoo.eu/api/soap/?wsdl=1' : failed to load external entity
"https://bydoo.eu/api/soap/?wsdl=1"
I have tried everything.
Checking the server, firewall, ports, reinstalling Magento, reinstalling SSL. and still nothing.
I'm trying to connect to a WSDL feed, this works fine from my local machine (Windows) but not from the web server (Linux). When I attempt a connection I get this error:
Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL:
Couldn't load from
'http://services.clfdistribution.com:8080/CLFWebOrdering_Test/WebOrdering.asmx?WSDL'
: failed to load external entity
I've compared the phpinfo readouts from both machines and everything seems to match except that the working one (local PC) is PHP 5.5.36 and the non-working one (web server) is PHP 7.0.22
I've tried various fixes that I've found and nothing seems to work. Some other feeds do work but not the one I need to connect to.
We have cPanel access but no ability to edit PHP configuration (host is SiteGround).
This has now been resolved - Siteground were blocking port 8080, once this restriction was removed it all worked fine.
I'm trying use Google DFP (Doubleclick for Publishers) Api on my server. I have installed the script and all its dependencies and also I have already set them up. But when I run PHP files in the console, I get this error every time.
PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://ads.goog le.com/apis/ads/publisher/v201611/LineItemService?wsdl' : failed to load externa l entity "https://ads.google.com/apis/ads/publisher/v201611/LineItemService?wsdl " in /home/admin/web/glob.space/public_html/src/Google/AdsApi/Common/AdsSoapC lient.php on line 65
Could you please tell me, why this happens? this is a not a code issue, because I use original example codes.
Thanks in advance!
just put a slash character between Service and ? in https://ads.google.com/apis/ads/publisher/v201611/LineItemService?wsdl
Ref. http://asanamuz.ir/wp/?p=131
I have a SoapServer running on a windows machine.
When I try to instantiate a SoapClient object from a linux machine, it fails with a nice
PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://172.23.5.124:8181/Pyxvital.exe/wsdl/IPyxvital' : Premature end of data in tag definitions line 1
If I try on a windows machine, it works.
I'm not sure, but it seems to come from the fact that the Soap server sends windows line endings in the XML response (I can see ^M in the XML when I open the WSDL file).
I changed the encoding in the SoapClient options, but I can't find if I can do anything to the line endings (I tryed auto_detect_line_endings in php.ini, but it seems to affect only fgets).
Thanks.
I am having serious trouble trying to get this url to load in my code. When I go to the actual page in the browser it loads fine, but when I parse it its basically giving a 404, I have tried this using soap client and curl thinking ok maybe im doing something wrong.
This is my code, you can see its the bare basics.
$customerId = 'xxxx';
$authenticationId = 'xxxx';
$url = 'https://test.api.800loanmart.com/LoanmartService.svc?wsdl';
$config = array('trace' => 1, 'exceptions' => 0);
$service = new SoapClient($url,$config);
$result = $service->GetTermsAndConditions($customerId, $authenticationId);
var_dump($service);
and this is what it is throwing back at me...
Warning: SoapClient::SoapClient() [soapclient.soapclient]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in C:\xampp\htdocs\loanmart\index.php on line 6
Warning: SoapClient::SoapClient() [soapclient.soapclient]: I/O warning : failed to load external entity "https://test.api.800loanmart.com/LoanmartService.svc?wsdl" in C:\xampp\htdocs\loanmart\index.php on line 6
Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://test.api.800loanmart.com/LoanmartService.svc?wsdl' : failed to load external entity "https://test.api.800loanmart.com/LoanmartService.svc?wsdl" in C:\xampp\htdocs\loanmart\index.php on line 6
I have checked to see if I have openssl and it is turned on in my php.ini file, im just pretty stumped as to what to do.
Simple issue that gave me headaches! Open your php.ini file in your apache server directory and uncomment(enable) the line extension=php_openssl.dll.
This fix my issue.
Even if you did check, this is nothing but an openssl configuration issue (used in SoapClient, but still)
Try to file_get_contents($wsdl_url);
Also, check your currently loaded php.ini & supported streams (php.ini might differs from CLI to web SAPI)
php -r "phpinfo();" > file.txt
Mine :
Registered PHP Streams => php, file, glob, data, http, ftp, zip, compress.zlib, compress.bzip2, https, ftps, phar
Registered Stream Socket Transports => tcp, udp, ssl, sslv3, sslv2, tls
(your code sample works on my computer :p)
make active extension=php_openssl.dll in php.ini. Restart server.