[wsf-c-dev] Data Service

Samisa Abeysinghe samisa at wso2.com
Wed Mar 12 19:47:15 PDT 2008


sumedha at wso2.com wrote:
>> Sanjiva Weerawarana wrote:
>>     
>>> Can you give some more info on the php data services stuff?
>>>       
>> What has been done in PHP DS is that, you can create a PHP class
>> inherited form WSService and pass the options as an associative array.
>> The associative array would have provition to provide all the info that
>> you would get in a DBS file.
>>
>>     
>>> How should we position it against Java data services etc.?
>>>       
>> The original idea that I had when proposing the data services was
>> because, many people use databases with PHP and the fact that those
>> databases could be exposed as services would expand the way PHP apps
>> would be used. As an example, Drupal uses a database for config, as well
>> as for data.
>> Also, to some part, Java community is distinct form PHP community. So
>> having a PHP equivalent Java DS would propagate the privileges that Java
>> people get fom DS to PHP community.
>>
>>     
>>> How is the comparative performance?
>>>       
>> This is yet to be done. If Java has a benchmark, same could be
>> implemented with PHP.
>>
>>     
>>> Is Sumedha aware of the status etc.?
>>>       
>> I am not sure. Sumedha?
>>     
> Manoj is communicating with me when he encounters problems. So from that
> perspective I am updated.
>
> Last week he showed me a wiki page
> (http://wso2.org/wiki/display/wsfphp/API+for+Data+Services) with a
> proposal for client API for data service. I saw several dis-advantages in
> this approach & told him so.
>
> Disadvantages
> 1. Client becomes data service specific (In java impl, client is not aware
> of the fact he/she is calling a data service. Its just a web service call
> for him)
>   

How is so? The client need not be aware in PHP either, it is just a 
WSClient.


> 2. Configuration details which are part of .dbs file in java impl, are
> being passed from client when calling the service.
>   

Nop, it is only the service that takes those in.

> 3. Java client will not be able to interop with PHP based data service.
>   

Given answers for 1 and 2 above, this does not hold.
> 4. Concept of creating a data service using contents in the configuration
> file (.dbs) seems to be violated.
>   

This is the "Java mindset", and when it comes to PHP, what we have done 
is to map the PHP mindset. If one has a dbs, and want to implement the 
same in PHP, what we can do is to come up with a tool, dbs2php which 
will generate the PHP code to do the stuff done with dbs. Given that we 
have the same mapping in PHP, it should be straightforward to implement 
this.


>
> As per the last conversation I had with him, the code is written in mysql
> specific manner. So explained the generic approach taken by java
> implementation & discussed how PHP impl can take a similar pattern.
>   

Yah, I agree. This needs to be designed. (A typical problem of a 
prototype degenerating into a solution ;) )
> So far I haven't tried a working version from a user perspective. Should
> try that myself.
>   

Well, I think Manoj can try and write a Java client for a PHP service.

Samisa...

> But I feel Manoj is making progress.
>
> /sumedha
>
>
>   
>>> Have you guys started on the REST part too?
>>>       
>> Nop. It is still in SOAP stage.
>> Bit on REST. Axis2/C made REST more RESTful with last release (PUT,
>> DELETE and RESTful URL mappings added). That is yet to be integrated
>> into PHP. Better to look into REST only after doing that REST
>> integration to PHP.
>>
>> Samisa...
>>
>>
>>     
>>> Thanks,
>>>
>>> Sanjiva.
>>>
>>> Manoj wrote:
>>>       
>>>> Hi all,
>>>>
>>>> Currently the PHP Data Service works properly with Mysql Database. We
>>>> need to make it works with other Databases too. Hopes your comments
>>>> on this issue?
>>>>
>>>> regards,
>>>> Manoj _______________________________________________
>>>> Wsf-c-dev mailing list
>>>> Wsf-c-dev at wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/wsf-c-dev
>>>>
>>>>         
>> --
>> Samisa Abeysinghe
>> Software Architect; WSO2 Inc.
>>
>> http://www.wso2.com/ - "Oxygenating the Web Service Platform."
>>
>>
>>     
>
>
>
>   


-- 
Samisa Abeysinghe 
Software Architect; WSO2 Inc.

http://www.wso2.com/ - "Oxygenating the Web Service Platform."




More information about the Wsf-c-dev mailing list