[wsf-c-dev] PHP data service

Samisa Abeysinghe samisa at wso2.com
Wed Mar 5 05:48:33 PST 2008


Nandika Jayawardana wrote:
> In PHP data service implementation,  client is  not aware of whether 
> it is calling a web service based on Data Service or not. It is the 
> data service written in php that differ. Java guys have the data 
> service implemented as a .dbs file which is an xml  format defining 
> the data service. Instead in PHP data services implementation, we 
> provide that information within the PHP service script itself.

And also, if we wish, we can use another script to convert a given dbs 
to a PHP script.

Samisa...

>
> Thanks,
> Nandika
>
> Samisa Abeysinghe wrote:
>> Manoj wrote:
>>> Samisa Abeysinghe wrote:
>>>> Manoj wrote:
>>>>> Hi samisa,
>>>>>
>>>>> In java Data Service when a user wants to create a Data Service, 
>>>>> he/she creates a Data Service configuration file. This fill 
>>>>> conforms to grammar defined in 
>>>>> "http://wso2.org/wiki/display/wsf/Data+Services+and+Resources".  
>>>>> Data Service engine reads this xml file & using the connection, 
>>>>> query,operation details mentioned creates an Axis Service. The 
>>>>> client side is not aware if its calling a web service based on 
>>>>> Data Service or not. Its just a web service call.
>>>>>
>>>>> As per our PHP Data Service design we let client to pass details 
>>>>> related to data service when calling a service. This means client 
>>>>> becomes aware that he is calling a data service.My argument is why 
>>>>> we can't let to create xml data service configuration file as in 
>>>>> java Data Service.
>>>>
>>>> It is simply because the PHP mindset is different. Java world uses 
>>>> XML for config, but in PHP world people use associative arrays.
>>>>
>>>> Samisa...
>>>>
>>> hi samisa,
>>>
>>> Can you explain little bit further  how  can  I  do  the  same  
>>> thing without using an XML file?
>>
>> Nandika must have done this in his initial implementation. Has he 
>> written a client?
>>
>> Samisa...
>>
>>
>> _______________________________________________
>> 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
>
>


-- 
Samisa Abeysinghe 
Software Architect; WSO2 Inc.

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




More information about the Wsf-c-dev mailing list