[wsf-c-dev] [wsf-php] API for adding classes to WSService
Samisa Abeysinghe
samisa at wso2.com
Mon Nov 12 22:09:50 PST 2007
Buddhika Semasinghe wrote:
> nandika wrote:
>> Hi all,
>> At the moment we only support exposing php functions as operations in
>> server side. However a user may need to expose php class methods
>> as operations as well.
>>
>> I think we can do this in 2 ways.
>>
>> 1 . adding an additional option to WSService as "classes" which would
>> be an array of arrays as follows.
>>
>> WSService( array("classes"=>array(array("foo",$operations, $actions))));
>
> I think array of array option is better since it looks our API more
> consistent. Is it better if the option array would be like this
>
> WSService (array("classes" => array("foo" => array($operations,
> $actions),
> "bar" =>
> array($operations1, $actions1))))
+1.
Samisa...
More information about the Wsf-c-dev
mailing list