I know that nobody supports this anymore, but I have legacy code that I need to maintain, and I need a working
. I'm trying to get it running on a remote centos server (to which I have root access).
Perhaps somebody can suggest a simple way to get it to work on a normal centos 7.8 vmware serer. I'm runnng php 5.6 in this domain.
I pulled the latest code from git and loaded onto my server. Soap is installed, according to phpinfo.
Soap Client | enabled |
Soap Server | enabled |
Directive | Local Value | Master Value |
---|
soap.wsdl_cache | 1 | 1 |
soap.wsdl_cache_dir | /tmp | /tmp |
soap.wsdl_cache_enabled | 1 | 1 |
soap.wsdl_cache_limit | 5 | 5 |
soap.wsdl_cache_ttl | 86400 | 86400
|
Configuration is set to use phpsoap (rather than nusoap).
It fails in index2.php when it tries to generate code. At the top left I see "Error: Could not connect to host". And inside the greybox2, where the generated code goes, I see "<br />
<b>Notice</b>: Undefined variable: object in <b>/home2/mazzuca1/public_html/pog_master3/index2.php</b> on line <b>168</b><br />
".
It seems to generate the client object, but when the GenerateObject method is called, it says that it cannot connect to host.
$client = new SoapClient('services/pog.wsdl', array('cache_wsdl' => 0));
try
{
$object = base64_decode($client->GenerateObject($objectName, $attributeList, $typeList, $language, $wrapper, $pdoDriver, $classList));
Any ideas? I've spent a couple days trying to puzzle this out.
Thanks!
Here is my configuration, fwiw. I have substituted my actual domain for "mydomain"
<?php
global $configuration;
$configuration['soapEngine'] = "phpsoap"; //other value is "nusoap"
$configuration['revisionNumber']="";
$configuration['versionNumber'] = "3.2";
$configuration['author'] = "Php Object Generator";
$configuration['copyright'] = "Free for personal & commercial use. (Offered under the BSD license)";
?>