[wsf-c-dev][WSF-PHP]Soap backward compatibility in server side

Samisa Abeysinghe samisa at wso2.com
Thu Jun 14 19:12:18 PDT 2007


nandika wrote:
> Hi all,
> To support functions that accept parameters different from WSMessage, 
> we should have a way of specifying the type of the function
> when creating the WSService object.
> How about having the following API for doing so.
>
> We will add a new associative array "opParams" which will be a mapping 
> of function name to function type.
> The function type will be one of the following constants. WSMESSAGE |  
> MIXED
>
> eg.
>
> function addFunction($a,$b){
>    // implementation
> }
>
> function echoFunction($msg){
>    // this argument is a WSMessage
> }
>
> $operations = array("add"=>"addFunction", "echoString"=>"echoFunction");
> $op_params = array("addFunction"=>"MIXED","echoFunction"=>"WSMESSAGE");
>
> $svc = new WSService(array("operations"=>$operations, 
> "opParams"=>$op_params));
And if "opParams" was not given when constructing WSService, we should 
assume all given operations to have ""WSMESSAGE" param type?

Samisa...

-- 
Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank - Web Services Developers' Portal)




More information about the Wsf-c-dev mailing list