レスポンスとレスポンス属性の作成
以下のスクリプトはレスポンスとレスポンスの属性を作成します。CreateResponse() へのコール用のエージェント タイプ オブジェクトを取得するために GetAgentType() をコールする必要があることに注意します。
casso127jpjp
以下のスクリプトはレスポンスとレスポンスの属性を作成します。CreateResponse() へのコール用のエージェント タイプ オブジェクトを取得するために GetAgentType() をコールする必要があることに注意します。
use Netegrity::PolicyMgtAPI;$policyapi = Netegrity::PolicyMgtAPI->New();$session = $policyapi->CreateSession("adminid", "adminpwd");$domain = $session->GetDomain("Acme North Domain");$agenttype=$session->GetAgentType("Web Agent");$response=$domain->CreateResponse("Welcome to Payroll",$agenttype);if ($response==undef) {print "\nCouldn't create the response.";}else {$attr=$response->CreateAttribute("WebAgent-HTTP-Cookie-Variable","cookiename=mycookie");if ($attr==undef) {print "\nCouldn't create attribute for ".$response->Name();}else {print "\nCreated response " . $response->Name();print "\nCreated attribute " . $attr->GetValue();}}