xml-rpc

Strict Typing And XML-RPC

You may or may not be aware web services are very strictly typed (well, XML is, period). That means if you send a web service a string, e.g. '233', when it wants an integer, e.g. 233 (note the very subtle difference) it will break!

Consider this XML-RPC call to the Services module in Drupal:

<?php
$nid
= 144;
$result = xmlrpc('http://www.mydomain.com/services/xmlrpc', 'file.getNodeFiles', $nid);
?>

This will make Drupal's XML-RPC handling functions build the following XML envelope to send to the web service at http://www.mydomain.com/services/xmlrpc:

SOA And Drupal - The Services Module

So, you want to create an SOA-based infrastructure for some or all of your business tools and web sites? Not sure where to start?

I'll admit I have worked a little with Microsoft web services, but I am fairly ignorant of the open source alternatives out there for SOA. What I can tell you is I'm hugely impressed with the new Services module for Drupal. It is still in dev, but it's pretty cool!

Syndicate content