Web service accessing client database
Posted
by chupinette
on Stack Overflow
See other posts from Stack Overflow
or by chupinette
Published on 2010-06-02T17:14:02Z
Indexed on
2010/06/02
17:23 UTC
Read the original article
Hit count: 215
web-services
Hello all!
I am new to web services and i have a question: Should a web service be able to access the client database? Sorry if i am not using the proper terms.
Lets say i have a web service method called : GetCarDetails(string name)
which will actually return details from car table.
in this method i have an sql statement like SELECT * FROM car WHERE name = ?.
In the client application, i have a textbox where i can input a name and a button on which when i click, fill a gridview.
So im kinda confused, should the web service normally know that the client has a table called car?Please correct me if ive used the wrong terms.
Thanks
© Stack Overflow or respective owner