SOAP Interface problem? I am not receiving the correct fields back in my class.

2 views
Skip to first unread message

mmcinally

unread,
Jan 22, 2007, 11:20:24 AM1/22/07
to Php Object Generator
When I use the web interface, I can pass in "FirstName", "LastName",
"Address" all as VARCHAR(255) fields.

I receive the correct class information back.

When I try to do the SAME thing using the SOAP interface, I always get
back the wrong fields:

var $pog_attribute_type = array(
"helloworldId" => array("NUMERIC", "INT"),
"Array" => array("TEXT", ""),
);

----------------------------------------------------------------

My SOAP test file is very simple:

$wsdl = 'http://www.phpobjectgenerator.com/services/soap.php?wsdl';

$client = new SoapClient($wsdl);
$object = base64_decode($client->GetGeneratorVersion());

print_r($object);

$objectName = 'HelloWorld';
$attributeList = array('FirstName', 'LastName');
$typeList = array('VARCHAR(255)', 'VARCHAR(255)');
$language = 'php4';
$wrapper = 'POG';
$pdoDriver = 'mysql';

$object = base64_decode($client->GenerateObject(
$objectName,
$attributeList,
$typeList,
$language,
$wrapper,
$pdoDriver
)
);

echo "<pre>";
echo $object;
echo "</pre>";


Is there something I am doing wrong?

Please help!


Mike.

Joel

unread,
Jan 22, 2007, 12:09:51 PM1/22/07
to Php Object Generator
There was once an issue with PHP5's built-in SOAP client and NuSoap's
SOAP server that we currently use. It had to do with string arrays not
correctly recognized. I will have to check it this issue crept back up,
but it seems that it is indeed this issue that you're experiencing.
>From your code, you seem to be doing everything correctly.

A temporary workaround is to use NuSOAP's soap client or to use methods
that do not take string arrays to generate the object (for e.g.
GenerateObjectFromLink)

I will get back to you once we verify this issue.

Regards,
Joel

Reply all
Reply to author
Forward
0 new messages