Re: SOAP problem
| From: | Jari Tenhunen | Date: | Wed, 22 May 2002 06:30:41 +0000 |
| Subject: | Re: SOAP problem | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-6312@lists.php.net to get a copy of this message | ||
On Tue, 21 May 2002, Shane Caraveo wrote:
>Thanks,
>Try this and let me know if it works. One thing you can do to test wsdl
>seperately is to do a script like this:
>
>require_once 'SOAP/WSDL.php';
>
>$wsdl = new SOAP_WSDL('sessionmanager.wsdl');
>print $wsdl->generateProxyCode();
I made a simple web page reading the wsdl-file and displaying the output
and when I tested this (by hitting refresh) I sometimes got the following
error and sometimes it works fine. The same thing happens with the WSDL.php
from cvs and Shane's patched WSDL.php.
---8<---
Warning: Variable passed to reset() is not an array or object in
/path_to_includes/pear/SOAP/WSDL.php on line 197
Warning: Variable passed to current() is not an array or object in
/path_to_includes/pear/SOAP/WSDL.php on line 198
Warning: Invalid argument supplied for foreach() in
/path_to_includes/pear/SOAP/WSDL.php on line 218
class WebService_ extends SOAP_Client { function WebService_() {
$this->SOAP_Client("", 0); } }
---8<---
The wsdl file is read from the current working dir so it's definitely NOT a
network problem.
So there's clearly something wrong with the WSDL loading/parsing.
Most of these errors seem to occur while using the array 'services'.
Any ideas how to fix this?
Since I need to perform a rock solid demo on Friday, does anyone know if
I could work around this problem by making plain SOAP calls without the
wsdl?
JT
--
Jari Tenhunen - jait@ee.oulu.fi
Stardate [-30]8496.17