Question : PHP Web Service

Hello,

I'm trying to figure out how I go about writing a PHP Web Service to do the following;

.Net Application sends a Pipe String to the PHP Web Service - The PHP interprets the string &  sends it to the website database table - if data already exists overwrite old data - if data does not exist create new row and insert data - once data has been inserted or overwritten send notification back to the .Net Application that the data insert succeeded or if failed send notification back to the Application stating the data insert failed.

If anyone could enlighten me on how I go about doing this - I've read up on SOAP and REST but can't figure out how to start writing the service. I can do basic PHP - sql querying, sending data to databases, dragging data from databases etc but can't seem to get my head around writing a PHP Web Service.

Thank you in advance for the response(s).

Kind Regards

Answer : PHP Web Service

Here are two excellent resources to start with
http://articles.sitepoint.com/article/own-web-service-php-xml-rpc/
The above url explains the process of creating a webservice from scratch using php/mysql and different libraries
The below one is a really simple one. Its worth looking at the both.
http://davidwalsh.name/web-service-php-mysql-xml-json
Random Solutions  
 
programming4us programming4us