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

nandika nandika at wso2.com
Thu Jun 14 03:25:04 PDT 2007


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));

Thanks
Nandika

Samisa Abeysinghe wrote:
> nandika at wso2.com wrote:
>> Hi,
>>  I am +1 for adding functions that accepts arguments other than 
>> WSMesage.
>>   
> Looks like this is a requirement, as we cannot wrap the user defined 
> method with a method that takes a WSMessage.
> We did not consider backward compatibility requirement, when we 
> discussed WSMessage based API. While features such as MTOM require 
> WSMessage based API, we also need to have support for regular PHP 
> functions.
>
> Samisa...
>
>> -- Nandika
>>
>>
>>  
>>> Hi ;
>>>
>>>     In WSF-PHP server side implementation we can only execute a 
>>> function
>>> which only takes an argument of WSMessage as
>>>
>>>     function someFunction($inMessage)
>>>     {
>>>           // some logic
>>>           return $value
>>>     }
>>>
>>>     But to do soap backward compatibility we need to execute functions
>>> which excepts arguments other than WSMessage.So there should be two
>>> paths then how about changing our API to support these issues.Would 
>>> like
>>> to have your comments please?.
>>>
>>> thanks
>>> Buddhika
>>>
>>> _______________________________________________
>>> Wsf-c-dev mailing list
>>> Wsf-c-dev at wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/wsf-c-dev
>>>
>>>     
>>
>>
>> _______________________________________________
>> Wsf-c-dev mailing list
>> Wsf-c-dev at wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/wsf-c-dev
>>
>>   
>
>





More information about the Wsf-c-dev mailing list