[wsf-c-dev] PHP data service
Manoj
manoj at wso2.com
Wed Mar 5 06:04:48 PST 2008
Samisa Abeysinghe wrote:
> 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...
Can we convert exactly the same dbs to a PHP script?
so then how can we convert this to PHP script and make the connection
with data base?
<config>
<property
name="org.wso2.ws.dataservice.driver">org.apache.derby.jdbc.EmbeddedDriver</property>
<property
name="org.wso2.ws.dataservice.protocol">jdbc:derby:../samples/DataService/database/DATA_SERV_SAMP</property>
<property
name="org.wso2.ws.dataservice.user">wso2wsas</property>
<property
name="org.wso2.ws.dataservice.password">wso2wsas</property>
</config>
>>
>> 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
>>
>>
>
>
More information about the Wsf-c-dev
mailing list