SOAP problem
| From: | Jari Tenhunen | Date: | Tue, 21 May 2002 06:25:42 +0000 |
| Subject: | SOAP problem | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-6263@lists.php.net to get a copy of this message | ||
Hi,
I'm using PEAR SOAP Client at work to connect to our XML database, which
has a SOAP interface generated by themindelectric.com GLUE.
The problem is that sometimes (too often) the SOAP request fails.
And when this happens I get a PHP warning:
"Warning: Invalid argument supplied for foreach() in
/path_to_includes/pear/SOAP/WSDL.php on line 92"
and a soap_fault as a response:
"soap_fault Object ( [error_message_prefix] => [mode] => 1 [level] => 1024
[code] => WSDL [message] => no operation login in wsdl [userinfo] =>
[callback] => )"
When I look at the .wsdl the operation "login" is clearly there. That's for
sure. If this isn't odd enough, sometimes the request succeeds and both of
the errors disappear. Has anyone a slightest clue where the problem might
be? Is this network related or what? Is there a timeout that fails?
Next I'll install a sniffer and have a look at the traffic to see if
things get any clearer.
But anyway, I think at least the PHP warning should traced and silenced.
Don't you?
I added an ugly workaround using if (is_array()) { }.
Regards,
JT
--
Jari Tenhunen - jait@ee.oulu.fi
Stardate [-30]8491.05