From: Jeffrey H. <je...@fl...> - 2003-08-19 07:07:10
|
When using nusoap with amfphp, it can be really helpful to add the following to the nuSoapImpl function (located in Executive.php): place this after the if/else statment containing $result = $soapclient->call if ($err = $soapclient->getError()) { trigger_error("error with nusoap, ".$err, E_USER_ERROR); } else { return $result; } // $err is an error string that nusoap sets when ever an error is encountered. and remove the 'return $result' part below. As this will already return the result if successful. This will return any errors nusoap encounters to the NetConnection debugger. So for example if you enter in an invalid wsdl file, or an invalid method name, you may get something similar to this back: "Error: error with nusoap, operation BabelFish not present." Hope that helps someone out there. -Jeff. www.flash-db.com |