{"id":972,"date":"2009-10-19T15:05:25","date_gmt":"2009-10-19T13:05:25","guid":{"rendered":"http:\/\/www.juust.org\/?p=972"},"modified":"2024-10-13T17:05:11","modified_gmt":"2024-10-13T15:05:11","slug":"wordpress-xmlrpc-and-microsoft-access-vba","status":"publish","type":"post","link":"https:\/\/www.juust.org\/index.php\/wordpress-xmlrpc-and-microsoft-access-vba\/2009\/10\/","title":{"rendered":"wordpress xmlrpc and microsoft access vba"},"content":{"rendered":"<p>I was building a database in WordPress but their table interface lacks completely and I dont want to spend 200 hours developing a backend for a once-off project. <\/p>\n<p>I always used MsAccess for RAD blueprinting and I reckon you can build a better more flexible interface in 20 hours. With XHR MsAccess has some better internet capabilities these days, a nice simple XMLHttp library. <\/p>\n<p>You can use it for any http rest api in the cloud. <\/p>\n<p>Ajax for Access :) here&#8217;s the most basic wordpress xml-rpc call, sayHello.<\/p>\n<pre lang=\"vb\">\r\nSub PutXML()\r\n\r\ntxtURL = \"http:\/\/www.blog.com\/xmlrpc.php\"\r\ntxtUserName = \"user\"\r\ntxtPassword = \"pwd\"\r\n  \r\n  Dim objSvrHTTP As ServerXMLHTTP\r\n  Dim strT As String\r\n  Set objSvrHTTP = New ServerXMLHTTP\r\n  \r\n  objSvrHTTP.Open \"POST\", txtURL, False, CStr(txtUserName), _\r\n   CStr(txtPassword)\r\n  \r\n  objSvrHTTP.setRequestHeader \"Accept\", \"application\/xml\"\r\n  objSvrHTTP.setRequestHeader \"Content-Type\", \"application\/xml\"\r\n  \r\n  strT = \"\"\r\n  strT = strT & \"<methodcall>\"\r\n  strT = strT & \"<methodname>demo.sayHello<\/methodname>\"\r\n  strT = strT & \"<\/methodcall>\"\r\n  \r\n  objSvrHTTP.send strT\r\n  \r\n  MsgBox objSvrHTTP.responseText\r\n\r\nEnd Sub\r\n\r\n<\/pre>\n<p>For pre-Vista you need the MSXML 6.0 library from microsoft, in Vista I already had it installed so you can add a reference to the library and off you go.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was building a database in WordPress but their table interface lacks completely and I dont want to spend 200 hours developing a backend for a once-off project. I always used MsAccess for RAD blueprinting and I reckon you can build a better more flexible interface in 20 hours. With XHR MsAccess has some better [&hellip;]<\/p>\n","protected":false},"author":5796,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4,500,22],"tags":[42,41],"class_list":["post-972","post","type-post","status-publish","format-standard","hentry","category-juust","category-vba","category-xml-rpc","tag-vba","tag-xhr"],"_links":{"self":[{"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/posts\/972","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/users\/5796"}],"replies":[{"embeddable":true,"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/comments?post=972"}],"version-history":[{"count":1,"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/posts\/972\/revisions"}],"predecessor-version":[{"id":12755,"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/posts\/972\/revisions\/12755"}],"wp:attachment":[{"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/media?parent=972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/categories?post=972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/tags?post=972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}