[JDEV] [JDEV]XML- RPC
Nicholas Perez
nick at jabberstudio.org
Fri Mar 29 17:52:15 CST 2002
You know that you can't do straight XMLRPC through jabber right? There is a namespace for it
and everything. If you pick up DJ Adams' Programming Jabber, there is a section on doing
JabberRPC, in java, python, and perl. Also, JabminRPC is a server component that does
administration and it uses purely iq:rpc. I ended up using mister DJ's perl Jabber::Connection
and Jabber::RPC libs (really the Jabber::RPC libs are just wrappers around an XMLRPC parser
so its not hard to write or substitute your own XMLRPC parser). With all of that said, I dont quite
think you understand the Jabber Protocol well enough. You can easily setup two clients and send
whatever you want inside of the confines of the Jabber protocol. A more simplistic approach to
RPC would be passing simple messages within the <message/>, more complex would be
embedding XMLRPC inside of a <message/>, and the proper way to do it is to wrap the
XMLRPC in an <iq xmlns='jabber:iq:rpc'/>. I think overall, you need to think simple :)
Feel free to IM me if you wanna talk more about JabberRPC.
Nick
Nick at lug.du.edu
On Fri, 29 Mar 2002 11:10:15 -0800, "Jonathan Augenstine" <jaugenstine at jambotech.com> wrote:
I am developing a Jabber application and I would like to use XML-RPC.
Documentation is somewhat sparse and I was wondering if I could have
someone point me towards more info or answer some questions. I am using
O'Reilly's "XML-RPC" book for the XML-RPC packet format and am primarily
looking for more info on Jabber configuration help.
Basically, I want to develop two node applications with one acting as
the RPC-client and the other as the RPC-server. I have sent an RPC
packet from the client to the server but it is rejected by Jabber with
an error code 503 - Service Unavailable. The server node never sees the
request.
My questions are (I am running Jabber v1.4.2):
1. How do I tell the Jabber server that I am registering a node as an
RPC server?
2. Is this possible or does the RPC-server have to exist as a module?
Jonathan Augenstine
Sr. Software Engineer
JamboTech, Inc.
jaugenstine at jambotech.com
818.676.3443
_______________________________________________
jdev mailing list
jdev at jabber.org
http://mailman.jabber.org/listinfo/jdev
More information about the JDev
mailing list