|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-07-12 15:21 UTC] tony2001@php.net
[2005-07-12 15:42 UTC] wase1 at gmx dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 10:00:01 2025 UTC |
Description: ------------ Sorry, my englisch is bad. Problem: I try tu use extension php_soap.dll with IIS 5.0 to build a webservice client. If my eMail ist static $param->EmailAddress = "wase1@gtmx.net"; no problem. If it is dynamic $param->EmailAddress = "$e"; Problem: Fatal error: Uncaught SoapFault exception: [soap:Server] Server was unable to process request. --> Index was outside the bounds of the array. in c:\Inetpub\wwwroot\walter\index.php:52 Stack trace: #0 c:\Inetpub\wwwroot\walter\index.php(52): SoapClient->__call('IsValidEMail', Array) #1 c:\Inetpub\wwwroot\walter\index.php(52): SoapClient->IsValidEMail(Object(stdClass)) #2 {main} thrown in c:\Inetpub\wwwroot\walter\index.php on line 52 Reproduce code: --------------- <? if(!empty($_REQUEST['email'])){ $WSDL='http://www.webservicex.net/ValidateEmail.asmx?WSDL'; $soapclient = new SoapClient($WSDL); echo "<br><pre>"; $e = trim($_REQUEST['email']); $arr = array(); $arr['EmailAddress'] = "$e"; $res = $soapclient->IsValidEMail($arr); print_r($res); echo "<hr>"; if(!empty($res->IsValidEMailResult)) echo "$e Is eMail"; else echo "$e Is No eMail"; echo "</pre><br>"; } ?> Expected result: ---------------- I wrote everything in the Description. Actual result: -------------- I wrote everything in the Description. Fatal error: Uncaught SoapFault exception: [soap:Server] Server was unable to process request. --> Index was outside the bounds of the array. in c:\Inetpub\wwwroot\walter\index.php:52 Stack trace: #0 c:\Inetpub\wwwroot\walter\index.php(52): SoapClient->__call('IsValidEMail', Array) #1 c:\Inetpub\wwwroot\walter\index.php(52): SoapClient->IsValidEMail(Object(stdClass)) #2 {main} thrown in c:\Inetpub\wwwroot\walter\index.php on line 52