kimosabe Posted June 26, 2007 Posted June 26, 2007 After searching the forums for XML-RPC client functionality and finding none, I have found a COM component that others might find useful. It seems to work well (both in a simple example below and with my own PHP XML-RPC server).It can be downloaded and is documented here: PocketXMLRPC WebsiteHere is an simple example script:; Script Objective: test XML-RPC COM Interface DLLs provided by Simon Fell ; http://www.pocketsoap.com/pocketXMLRPC/ ; install the latest Binary - I used the one marked for XP ; it will register the dll's for you on your PC ; ; Weblogs XML-RPC API definition ; http://www.weblogs.com/api.html#1 ; I modified Simons sample vbs script posted in the samples page ; $f = ObjCreate("pocketXMLRPC.Factory") ; RPC Endpoint Method Prepend $p = $f.Proxy("http://rpc.weblogs.com/RPC2", "weblogUpdates.") ; execute the published method "weblogUpdates.ping" on ; the web server and return a result $r = $p.ping ("It's Just Code!", "http://www.pocketsoap.com/weblog/") ; display the result as the method "message" MsgBox(4096, "Web Service Response", $r.message, 10) ; displays "Thanks for the ping" if a successful roundtripI hope others will find this useful.
ptrex Posted June 26, 2007 Posted June 26, 2007 @Kimosabe Maybe you did not look well enough Look in my signature for SOAP and Webservices. It does not use the PocketSOAP dll, but the full MS SOAP features. Anyhow no one ever posted something using PocketSOAP COM you are right !! Good contribution of you. regards ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
kimosabe Posted June 26, 2007 Author Posted June 26, 2007 ptrex, Thanks for pointing out your SOAP interface. I am sure I will find a situation where I will need to use it. I was specifically looking for an XML-RPC interface (and not SOAP) for my web service interaction and found none in the forums. I find XML-RPC's simplicity very attractive and only use the SOAP variety when I need to. -kimosabe
ptrex Posted June 27, 2007 Posted June 27, 2007 @kimosabeHave a look at this as well.http://www.xmlrpc.com/regardsptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
kimosabe Posted June 27, 2007 Author Posted June 27, 2007 (edited) ptrex,Thanks for the resource. It is a useful site. As a matter of fact, that is where I got the list of COM implementations (link).I reviewed the list of five and selected Simon's to implement.Regards,KimosabeBTW - XML-RPC is also nice because most web hosting services provide this an included PHP extension (its not trivial to find a hosting service who supports PHP 5 where both XML-RPC / SOAP are built-in) Edited June 27, 2007 by kimosabe
Jazkal Posted October 30, 2008 Posted October 30, 2008 Anyone know how to get this working with current version of Autoit?I get the following error when running the example code in the first post:>Running:(3.2.12.1):C:\Program Files\AutoIt3\autoit3.exe "P:\XMLRPC\XMLRPC.au3" P:\XMLRPC\XMLRPC.au3 (30) : ==> Variable must be of type "Object".:$p = $f.Proxy("http://rpc.weblogs.com/RPC2", "weblogUpdates.")$p = $f^ ERROR->11:15:03 AutoIT3.exe ended.rc:1+>11:15:04 AutoIt3Wrapper Finished>Exit code: 1 Time: 1.937
ptrex Posted October 30, 2008 Posted October 30, 2008 @JazkalThis runs fine on my machine ?!Make sure you have the correct objects installed PocketXMLRPCRegards,ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
Jazkal Posted October 30, 2008 Posted October 30, 2008 (edited) I tried my test after registering the four dll's. I'll try the actual installer package next. I didn't try that one, because the environment I need to run this in, I can't use the installer, just the dll's. thanks EDIT: After installing the actual installer for 'Win32 Version v1.5.4 Packaged Install', I still get the same error. Edited October 30, 2008 by Jazkal
devilyn Posted March 30, 2009 Posted March 30, 2009 Hello all, I'm trying to using the code posted above with "http://www.upcdatabase.com/rpc" but no luck. and help will be highly appreciated. Thanks in advance
TMA2 Posted March 11, 2010 Posted March 11, 2010 thanks for the link! i was just thinking, "i wonder if there's an implementation of xmlrpc autoit can take advantage of." lo and behold.
daluu Posted July 11, 2011 Posted July 11, 2011 Would be nice if there was a standalone XML-RPC server that could be integrated with AutoIt (something that doesn't rely on web server to run, no IIS/ASP/ASP.NET/PHP).
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now