Trying to get POG generator running on centos. soap problems

20 views
Skip to first unread message

lkasdorf

unread,
Jul 8, 2020, 3:53:56 PM7/8/20
to Php Object Generator
I know that nobody supports this anymore, but I have legacy code that I need to maintain, and I need a working phpobjectgenerator.com. 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

Soap Clientenabled
Soap Serverenabled
DirectiveLocal ValueMaster Value
soap.wsdl_cache11
soap.wsdl_cache_dir/tmp/tmp
soap.wsdl_cache_enabled11
soap.wsdl_cache_limit55
soap.wsdl_cache_ttl8640086400


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['homepage'] = "http://mydomain.com/pog_master";


$configuration['revisionNumber']="";
$configuration['versionNumber'] = "3.2";
$configuration['author'] = "Php Object Generator";
$configuration['copyright'] = "Free for personal & commercial use. (Offered under the BSD license)";
?>

lkasdorf

unread,
Jul 8, 2020, 11:30:45 PM7/8/20
to Php Object Generator
Never mind- I found the problem. I had neglected to change the url for soap:address at the end of pog.wsdl. Once I changed that, it started working :)
LK

LAW Andy

unread,
Jul 9, 2020, 3:41:08 AM7/9/20
to php-object...@googlegroups.com
Great work.

If you could maybe package it up and publish it as a Docker image that would extend the usefulness in case any of the rest of us needed to visit this problem again in the future?

Stay safe.

Later,

Andy

-- 
You received this message because you are subscribed to the Google Groups "Php Object Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-object-gener...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-object-generator/c07bff70-171b-4e97-90d5-f50e2cb664b7o%40googlegroups.com.

The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
Reply all
Reply to author
Forward
0 new messages