{"id":123,"date":"2014-09-27T05:23:17","date_gmt":"2014-09-27T05:23:17","guid":{"rendered":"http:\/\/devzing.com\/blog\/?p=123"},"modified":"2015-09-30T02:30:17","modified_gmt":"2015-09-30T02:30:17","slug":"xml-rpc-client","status":"publish","type":"post","link":"https:\/\/devzing.com\/blog\/index.php\/xml-rpc-client\/","title":{"rendered":"XML-RPC Client"},"content":{"rendered":"<p>From time to time we&#8217;ve had people wonder if the XML-RPC API is turned on for their Bugzilla installation. The answer is yes in all cases. Nevertheless it is difficult to verify as Bugzilla will not give you a meaningful response if you go to https:\/\/&lt;mybugzilla&gt;\/xmlrpc.cgi in your browser.<\/p>\n<p>Other clients want to verify some off error message they are getting from a tool that integrates with Bugzilla through the XML-RPC API.<\/p>\n<p>To solve these questions we have deployed our <a href=\"https:\/\/xmlrpc.devzing.com\/\" target=\"_blank\">online XML-RPC client<\/a>.<\/p>\n<p><a href=\"http:\/\/devzing.com\/blog\/wp-content\/uploads\/2014\/09\/2014-09-30_2132.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-132 size-medium\" src=\"\/\/devzing.com\/blog\/wp-content\/uploads\/2014\/09\/2014-09-30_2132-300x194.png\" alt=\"xml-rpc client\" width=\"300\" height=\"194\" srcset=\"https:\/\/devzing.com\/blog\/wp-content\/uploads\/2014\/09\/2014-09-30_2132-300x194.png 300w, https:\/\/devzing.com\/blog\/wp-content\/uploads\/2014\/09\/2014-09-30_2132-1024x664.png 1024w, https:\/\/devzing.com\/blog\/wp-content\/uploads\/2014\/09\/2014-09-30_2132.png 1152w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>By default it has the URL and credentials for our Bugzilla demo, but you can point it to any Bugzilla with XML-RPC enabled (even\u00a0<a href=\"https:\/\/bugzilla.mozilla.org\/\" target=\"_blank\">https:\/\/bugzilla.mozilla.org\/<\/a>).<\/p>\n<p>The tricky bit is the <strong>parameter XML<\/strong>.<\/p>\n<p>Bugzilla XML-RPC expects a single &lt;struct&gt; element.\u00a0The names of the parameters listed in the API docs for each function are the &lt;name&gt; element for the struct &lt;member&gt;s. See\u00a0<a href=\"http:\/\/www.bugzilla.org\/docs\/4.4\/en\/html\/api\/Bugzilla\/WebService\/Server\/XMLRPC.html\" target=\"_blank\">Bugzilla::WebService::Server::XMLRPC<\/a> and\u00a0<a href=\"http:\/\/www.bugzilla.org\/docs\/4.4\/en\/html\/api\/Bugzilla\/WebService.html\" target=\"_blank\">Bugzilla::WebService<\/a> for more information.<\/p>\n<p>For example<\/p>\n<pre class=\"lang:xhtml decode:true\">&lt;param&gt;\r\n &lt;struct&gt;\r\n &lt;member&gt;\r\n &lt;name&gt;Bugzilla_login&lt;\/name&gt;\r\n &lt;value&gt;demo@devzing.com&lt;\/value&gt;\r\n &lt;\/member&gt;\r\n &lt;member&gt;\r\n &lt;name&gt;Bugzilla_password&lt;\/name&gt;\r\n &lt;value&gt;password&lt;\/value&gt;\r\n &lt;\/member&gt; \r\n &lt;\/struct&gt;\r\n&lt;\/param&gt;<\/pre>\n<p>This is the minimum set of parameters for Bugzilla 4.4.x as almost all methods require authentication.<\/p>\n<p>To retrieve a bug you need to set the <strong>method<\/strong> to Bug.get and <strong>parameter XML <\/strong>to<strong>\u00a0<\/strong>something like the following:<\/p>\n<pre class=\"lang:xhtml decode:true \">&lt;param&gt;\r\n &lt;struct&gt;\r\n &lt;member&gt;\r\n &lt;name&gt;Bugzilla_login&lt;\/name&gt;\r\n &lt;value&gt;demo@devzing.com&lt;\/value&gt;\r\n &lt;\/member&gt;\r\n &lt;member&gt;\r\n &lt;name&gt;Bugzilla_password&lt;\/name&gt;\r\n &lt;value&gt;password&lt;\/value&gt;\r\n &lt;\/member&gt;\r\n &lt;member&gt;\r\n &lt;name&gt;ids&lt;\/name&gt;\r\n &lt;value&gt;\r\n   &lt;array&gt;\r\n     &lt;data&gt;\r\n       &lt;value&gt;&lt;i4&gt;12&lt;\/i4&gt;&lt;\/value&gt;\r\n     &lt;\/data&gt;\r\n   &lt;\/array&gt;\r\n&lt;\/value&gt;\r\n &lt;\/member&gt;\r\n&lt;\/struct&gt; \r\n&lt;\/param&gt;<\/pre>\n<p>For more information on how to represent various data types see the <a href=\"http:\/\/xmlrpc.scripting.com\/spec\" target=\"_blank\">XML-RPC specification<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From time to time we&#8217;ve had people wonder if the XML-RPC API is turned on for their Bugzilla installation. The answer is yes in all cases. Nevertheless it is difficult to verify as Bugzilla will not give you a meaningful response if you go to https:\/\/&lt;mybugzilla&gt;\/xmlrpc.cgi in your browser. Other clients want to verify some &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/devzing.com\/blog\/index.php\/xml-rpc-client\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;XML-RPC Client&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[],"class_list":["post-123","post","type-post","status-publish","format-standard","hentry","category-bugzilla","category-news","entry"],"_links":{"self":[{"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=123"}],"version-history":[{"count":6,"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":165,"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/123\/revisions\/165"}],"wp:attachment":[{"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}