Sign in to follow this  
Followers 0
kimosabe

New XML-RPC Client Functionality

11 posts in this topic

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 Website

Here 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 roundtrip

I hope others will find this useful.

Share this post


Link to post
Share on other sites



@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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (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,

Kimosabe

BTW - 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 by kimosabe

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#8 ·  Posted (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 by Jazkal

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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).

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0