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

nandika nandika at wso2.com
Thu Jun 14 21:32:47 PDT 2007


Samisa Abeysinghe wrote:
> 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...
>
yes. If "opParams" is not given, all the given operations will be 
assumed to have "WSMESSAGE" param type.

-- Nandika





More information about the Wsf-c-dev mailing list