我使用soap请求开发了一个进程。它在Windows XP的本地机器上运行正常。但是当我在cpanel服务器上传时,它将无法正常执行。我注意到它在此行$client->loadWSDL();
之后停止了处理。 $ cleint对象将创建好。如果有人知道它可能有什么问题。
提前致谢。
require_once('lib/nusoap.php');
require_once('config.php');
$params = "<CreateUsersRequest xmlns='http://www.abc-online.com/services/api/1.0/'>
<Credentials>
<EmailAddress>$emailaddress</EmailAddress>
<Password>$password</Password>
<CustomerID>$customerID</CustomerID>
</Credentials>
<Emails>
<string>$newEmail</string>
</Emails>
<AutoGeneratePassword>false</AutoGeneratePassword>
<Password>$newPassword</Password>
<SendLoginEmail>true</SendLoginEmail>
<PersonalComment>$comment</PersonalComment>
</CreateUsersRequest>";
//
$client = new soapclient($accountURL.'/services/api/1.0/soap_server.asmx?wsdl',array('encoding'=>'UTF-8'));
ini_set("soap.wsdl_cache_enabled", "0");
//$err = $client->getError();
//echo $err;
$client->setUseCurl(0);
$client->loadWSDL();
$userCreated = $client->call('CreateUsers',$params);
//find out if it worked
$userCreatedStatus = $userCreated['Success'];