Hello,
I got an error on line 421 with a wsdl which doesn't contain any <types> tag, the types being imported through the <import> tag.
"
PHP Stack trace:
PHP 1. {main}() C:\wsdl2php-0.2.1-pear\wsdl2php-0.2.1\bin\wsdl2php.php:0
PHP 2. checkForEnum() C:\wsdl2php-0.2.1-pear\wsdl2php-0.2.1\bin\wsdl2php.php:223
PHP 3. findType() C:\wsdl2php-0.2.1-pear\wsdl2php-0.2.1\bin\wsdl2php.php:396
Fatal error: Call to a member function getElementsByTagName() on a non-object in
C:\wsdl2php-0.2.1-pear\wsdl2php-0.2.1\bin\wsdl2php.php on line 421
Call Stack:
0.0204 796648 1. {main}() C:\wsdl2php-0.2.1-pear\wsdl2php-0.2.1\bin\wsdl2php.php:0
53.9628 9811816 2. checkForEnum() C:\wsdl2php-0.2.1-pear\wsdl2php-0.2.1\bin\wsdl2php.php:223
53.9628 9812024 3. findType() C:\wsdl2php-0.2.1-pear\wsdl2php-0.2.1\bin\wsdl2php.php:396
"
I fixed it adding the if statement
if ($types_node)
such
function findType(&$dom, $class) {
$types_node = $dom->getElementsByTagName('types')->item(0);
if ($types_node)
{
...
}
return null;
}
could you please add this fix in the default package ?
Thanks in advance
Best regards,
Christophe