yonan2236
yonan2236

Reputation: 13649

How to make a web service?

I'm creating a window app using C# (looks like this)

alt text

I'm using MySQL database.
But my database is hosted by some free hosting site.

I posted a question here post1, post2 regarding on how to connect to a remote database and they say that I have to use a webservice to connect my window app to a remote database, since the hosting site doesn't allow remote connection.

My problem is I don't know how to start from the scratch, please recommend a site where i can use as a guide in making webservice and how to use it. I found some, but it's too advance for me and for my simple requirements. (A simple insert sql statement will work right?)

My Server Information: VistaPanel version:2.4.1 RC3 Operating systemLinux Apache version:2.2.15 (Unix) PHP version:5.2.13 MySQL version:5.1.45

Upvotes: 1

Views: 165

Answers (1)

Sven Koschnicke
Sven Koschnicke

Reputation: 6711

You can use a PHP REST interface to the database (which is a webservice). Everything is described here: http://phprestsql.sourceforge.net/

Put the PHP Code on the free host and query it from your C# app like they do from JS in the tutorial.

Upvotes: 1

Related Questions