{"id":57612,"date":"2022-11-25T03:01:12","date_gmt":"2022-11-24T17:01:12","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=57612"},"modified":"2022-11-24T13:41:20","modified_gmt":"2022-11-24T03:41:20","slug":"xml-rpc-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/xml-rpc-primer-tutorial\/","title":{"rendered":"XML-RPC Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/client_rpc.php?inimagename=scene_one.jpg\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"XML-RPC Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/xmlrpcidea.jpg\" title=\"XML-RPC Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">XML-RPC Primer Tutorial<\/p><\/div>\n<p>We&#8217;ve talked about the <a target=_blank href='https:\/\/en.wikipedia.org\/wiki\/XML-RPC' title='XML-RPC information from Wikipedia ... thanks'>XML-RPC<\/a> protocol in the past when we posted <a target=_blank href='https:\/\/www.rjmprogramming.com.au\/ITblog\/flickr-and-wordpress-integration-primer-tutorial\/' title='Flickr and WordPress Integration Primer Tutorial'>Flickr and WordPress Integration Primer Tutorial<\/a>, but let&#8217;s reiterate &#8230;<\/p>\n<blockquote cite='https:\/\/en.wikipedia.org\/wiki\/XML-RPC'><p>\nThe 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.\n<\/p><\/blockquote>\n<p>We want to try it in conjunction with a serverside language, and around here, we like PHP for that.  Some first R&#038;D got us to <a target=_blank title='Great link, thanks' href='https:\/\/pear.php.net\/manual\/en\/package.webservices.xml-rpc.examples.php'>this great link<\/a>, thanks, as the basis for our first draft <i>proof of concept<\/i> PHP application working with three &#8220;meant&#8221; modes of use, plus one &#8220;<font size=1>un-<\/font>meant&#8221; one &#8230;<\/p>\n<ul>\n<li>its default <a target=_blank href='https:\/\/www.rjmprogramming.com.au\/client_rpc.php' title='https:\/\/www.rjmprogramming.com.au\/client_rpc.php'>https:\/\/www.rjmprogramming.com.au\/client_rpc.php<\/a> URL call &#8230; results in &#8230;<br \/>\n<code><br \/>\n8 times 2 is 16<br \/>\n<\/code><\/li>\n<li>supply GET argument <i>inimagename<\/i> with an existent image URL &#8230; for example if inimagename=crop_this.jpg return is &#8230;<br \/>\n<iframe src=http:\/\/www.rjmprogramming.com.au\/client_rpc.php?inimagename=crop_this.jpg style=width:100%;height:600px;><\/iframe>\n<\/li>\n<li>supply GET argument <i>inint<\/i> &#8230; for example if <a target=_blank title='675' href='http:\/\/www.rjmprogramming.com.au\/client_rpc.php?inint=675'>inint=<\/a><span style='border:1px dotted purple;' contenteditable=true onblur=\"window.open('http:\/\/www.rjmprogramming.com.au\/client_rpc.php?inint=' + this.innerHTML,'_blank','top=50,left=50,width=500,height=500');\">675<\/span> return is &#8230;<br \/>\n<code><br \/>\n675 times 2 is 1350<br \/>\n<\/code><\/li>\n<li><a target=_blank title='675' href='http:\/\/www.rjmprogramming.com.au\/client_rpc.php?inimagename=crop_this.jpeg'>errors with<\/a> GET argument(s) &#8230; for example, inimagename=<span style='border:1px dotted purple;' contenteditable=true onblur=\"window.open('http:\/\/www.rjmprogramming.com.au\/client_rpc.php?inimagename=' + this.innerHTML,'_blank','top=50,left=50,width=500,height=500');\">crop_this.jpeg<\/span> &#8230;<br \/>\n<code><br \/>\nFault Code: 2 Fault Reason: Invalid return payload: enable debugging to examine incoming payload<br \/>\n<\/code><\/li>\n<\/ul>\n<p> &#8230; making it a bit more than a <i>single purpose<\/i> web service idea in our <a target=_blank href='https:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=https:\/\/www.rjmprogramming.com.au\/client_rpc.php-GETME' title='client_rpc.php'>how we got there<\/a> <a target=_blank href='https:\/\/www.rjmprogramming.com.au\/client_rpc.php-GETME' title='client_rpc.php'>client_rpc.php<\/a> <a target=_blank href='https:\/\/www.rjmprogramming.com.au\/client_rpc.php' title='Click picture'>PHP XML-RPC protocol client application<\/a> using a <a target=_blank href='https:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=https:\/\/www.rjmprogramming.com.au\/xmlrpc.php-GETME' title='xmlrpc.php'>how we got there<\/a> <a target=_blank href='https:\/\/www.rjmprogramming.com.au\/xmlrpc.php-GETME' title='Click picture'>PHP XML-RPC protocol server<\/a>.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d57612' onclick='var dv=document.getElementById(\"d57612\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/xml\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d57612' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve talked about the XML-RPC protocol in the past when we posted Flickr and WordPress Integration Primer Tutorial, but let&#8217;s reiterate &#8230; The XML-RPC protocol was created in 1998 by Dave Winer of UserLand Software and Microsoft, with Microsoft seeing &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/xml-rpc-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,33,37],"tags":[932,997,1002,4161,2031,1319,1412,1480,3054],"class_list":["post-57612","post","type-post","status-publish","format-standard","hentry","category-elearning","category-software","category-tutorials","tag-php","tag-programming","tag-protocol","tag-rpc","tag-service","tag-tutorial","tag-web-service","tag-xml","tag-xml-rpc"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/57612"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=57612"}],"version-history":[{"count":12,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/57612\/revisions"}],"predecessor-version":[{"id":57624,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/57612\/revisions\/57624"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=57612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=57612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=57612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}