[wsf-c-dev][WSF-PHP] Using security policy in WSF-PHP
Buddhika Semasinghe
buddhika at wso2.com
Mon Jun 4 02:17:31 PDT 2007
Hi ;
We have to change some security stuffs in WSF-PHP since neethi is
introduced to AXIS2C.Earlier we did not have a mechanism to set
service-level policy, operation-level policy and message-level policy.
To do that we have to add some options to our current API. In server
side we can introduce another option to our options array as
"policy " => operation_name and
operation_name => policy object | array of options
1.For service-level policy we can use the same technique as;
$svr = new WSService(array("operations" => $operations,
"policy" => $policy,
"securityToken" =>
$sec_token));
2.For both service-level and operation-level we can do
$svr = new WSService("operations" => $operations,
"policy" => $policy_obj1,
"securityToken" => $sec,
"op_policy "=> $oppolicy);
$oppolicy = array("add" => $policy_obj2,
"div" => $policy_obj3);
3.For service-level, operation-level and message-level policies
$oppolicy = array("add" => array( "policy" =>$policy_obj2,
"in" =>
$policy_obj3,
"out" =>
$policy_obj4));
Here if we omit policy option, no operation-policy is present only
service-level and message-level policies.
Seems it is getting more complicated for the user :-( . I would
like to have your comments?
thanks
Buddhika
~
More information about the Wsf-c-dev
mailing list