石鹸リクエストを使用してプロセスを開発しました。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'];