XML-RPC Primer Tutorial

XML-RPC Primer Tutorial

XML-RPC Primer Tutorial

We’ve talked about the XML-RPC protocol in the past when we posted Flickr and WordPress Integration Primer Tutorial, but let’s reiterate …

The XML-RPC protocol was created in 1998 by Dave Winer of UserLand Software and Microsoft, with Microsoft seeing the protocol as an essential part of scaling up its efforts in business-to-business e-commerce. As new functionality was introduced, the standard evolved into what is now SOAP.

We want to try it in conjunction with a serverside language, and around here, we like PHP for that. Some first R&D got us to this great link, thanks, as the basis for our first draft proof of concept PHP application working with three “meant” modes of use, plus one “un-meant” one …

  • its default https://www.rjmprogramming.com.au/client_rpc.php URL call … results in …

    8 times 2 is 16
  • supply GET argument inimagename with an existent image URL … for example if inimagename=crop_this.jpg return is …
  • supply GET argument inint … for example if inint=675 return is …

    675 times 2 is 1350
  • errors with GET argument(s) … for example, inimagename=crop_this.jpeg

    Fault Code: 2 Fault Reason: Invalid return payload: enable debugging to examine incoming payload

… making it a bit more than a single purpose web service idea in our how we got there client_rpc.php PHP XML-RPC protocol client application using a how we got there PHP XML-RPC protocol server.

If this was interesting you may be interested in this too.

This entry was posted in eLearning, Software, Tutorials and tagged , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *