rickyduck
rickyduck

Reputation: 4084

Creating a fairly primitive Web Service

We are rolling out one of our services to another service provider in PHP. They have already built the client, it just sends data in a post (no xml/json etc). Our script then processes it and returns an xml string with the response. Also they will need a token authentication system. Because of the fact they are just using cURL to post raw data, I don't think I can use soap/rest/xml-rpc ... can anyone point me to any good tuts etc?

Cheers,

Upvotes: 0

Views: 183

Answers (1)

Eddie
Eddie

Reputation: 10138

Oauth is a secure and easy to implement for security solution for tokens. And they have libraires for java, php, python, and pretty much any language you can think of.

Very strange (and backwards) they built a client without an existing service. but the important thing is to document the interface between your two systems, and adhere to it.

David Walsh explains a simple php web service that returns JSOn or XML. http://davidwalsh.name/web-service-php-mysql-xml-json

Upvotes: 1

Related Questions