Forum Moderators: coopster

Message Too Old, No Replies

Web services advice ?

         

momo1984

5:08 am on Aug 24, 2011 (gmt 0)

10+ Year Member



Hi ,
I am new to web services and I need to write one in PHP. What I understood is thath web services are based on XML , that is the client sends a request to the server which responses as an xml format and that format can be used by the client.

I have seen that there are various ways to implement them either using SOAP, XML_RPC or Restful ...

I need you advice in which way to choose. I was thinking about REST and was also looking for a good PHP framework (may use either Recess and Codeigniter).

My application is like that.
1. There will be an XML file generated by a script and then automatically imported to the Mysql database.
2. On the other side, a user will be able to connect to the database through an HTTP request (from any machine/cellphone) and retieve info.

If anyone can please correct me and set me on the right path by providing more info and experience in this field.

Thank you all

coopster

5:40 pm on Aug 24, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, momo1984.

I prefer RESTful myself. You'll have to decide which will work best for you. A lot of the big guys use REST too, if that is worth anything to you. Have a look at the wikipedia page to see what I mean. Also, you can find frameworks there if you decide you need one. I just write the code out, it's that easy. Using PHP and SimpleXML.

[en.wikipedia.org...]
[php.net...]

momo1984

12:15 am on Aug 25, 2011 (gmt 0)

10+ Year Member



Thanks coopster.
I thought about a framework because it will make my coding easier (as people say ), but I think it will be hard if someone wanted to add/edit to my code in the future he must learn the framework first.