Re: SOAP problem

From: Date: Tue, 21 May 2002 06:41:03 +0000
Subject: Re: SOAP problem
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-6266@lists.php.net to get a copy of this message
If you can send me the WSDL file you are using, I'll take a look and see what is going on. Shane Jari Tenhunen wrote:
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


« previous php.pear.dev (#6266) next »