[wsf-c-dev] [PHP] WSService API additions

Samisa Abeysinghe samisa at wso2.com
Sun Feb 11 23:47:26 PST 2007


James Clark wrote:
> On Mon, 2007-02-12 at 08:07 +0600, Samisa Abeysinghe wrote:
>   
>> SoapServer has two functions SoapServer::addFunction and 
>> SoapServer::getFunctions.
>> In order to support SoapServer API with WSService, we need to have 
>> support for similar API.
>>     
>
> WSService doesn't have to map directly on to SoapServer.  In our
> SoapServer implementation can't we keep track of the current set of
> functions and create a WSService object as needed?  
I was thinking of creating the WSService object within the SoapServer 
constructor itself.
However, we can also afford to create the WSService object inside 
SoapServer::handle() method.
That way we can keep track of the added functions and create our 
WSService accordingly.
> Does the semantics
> of the functions that we specify with the operations method differ from
> those added with addFunction and getFunctions?
>   
As far as function adding is concerned, both WSService and SoapServer 
are interested in function name. So the semantics are the same.
However, with SoapServer the added function could take parameters that 
are of any type. (the WSDL in use would govern what these parameters are)
But with our extension, the function needs to take a WSMessage object 
instance as the parameter. Hence the runtime semantics differ.
We need to figure out how to come up with a mapping between them.

Samisa...

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





More information about the Wsf-c-dev mailing list