July 2006 Archives
July 19, 2006 12:21 PM
sjm - Send Jabber Message
After having consumed Programming Jabber, I decided to introduce myself to the Net::Jabber::Client module from CPAN. Below is a script that allows you to send a message to a JID from the shell.
It is worth noting that Jabber and the XMPP is not limited to mere instant messaging. Jabber is simply an XML router. XML streams being the underlying data format for the XMPP. These XML-based payloads carried in synchronous and asynchronous modes allow Jabber to act as a transport glue in other application domains outside of its messaging world.
Quoting from the aforementioned book, "The XML Remote Procedure Call (XML-RPC) specification and the Simple Object Access Protocol (SOAP) both formalize method calls and responses in XML. XML-RPC was designed to use HTTP to carry those encoded calls and responses between endpoints, and SOAP can use HTTP too. What if we carry XML-RPC or SOAP payloads in Jabber? We immediately see the step-change increase in contextual richness; XML-RPC interactivity becomes part of a wider, all-encompassing conversation between applications and humans. Traditional IM-based clients, applications using client stub libraries, and components can all make use of the power of what these technologies have to offer, without having to leave the comfort of their Jabber environment, which can serve as a messaging plasma between all sorts of entities and services."
Exploring the 'Application to Client' and 'Application to Application' vectors further, I should have some interesting programs available for you to check out in the near future.
"Programming is not a zero-sum game. Teaching something to a
fellow programmer doesn't take it away from you. I'm happy to share
what I can, because I'm in it for the love of
programming."
--John Carmack