Example how to send IQ commands to external XMPP server using XEP-0244: IO Data
April 19 - 2009As was originally asked on WS-XMPP@xmpp.org mailing list on thread "[WS-XMPP] Example webservices created using XMPP", I created a simple example how to create a WebService that is sending IQ stanzas containing IO-Data commands and display the results when received.
In the example we can calculate a mass of atoms. The actual calculation is done by service at ws1.bmc.uu.se. To know more about the "Mass Calculation" -service, I recommend you to contact the author of the original mail Egon Willighagen. The "calculator" seems very interesting, but sadly I have no knowledge about it.
SO FINALLY to the business! Check the example here. To have a proper output, you can test for example using atoms CCC (three carbon atoms) as input. At the bottom of the example web page, should be also visible all the of communication that is send and received between your Web Browser and the XMPP -server.
If you are interested how the web browser of the user is communicating with ws1.bmc.uu.se, read more here.
Note! I have tested the example only using FireFox 3.1b3. One of my friends told me that at least for some versions of IE it does not work as expected.
List of all post on LobsterMonster.org
- 2010-02-20: XMPP, XFS, buddyloud, FOSDEM
- 2009-10-20: Devox 2009
- 2009-10-20: Strophe + F5
- 2009-10-07: RSS feeds to PubSub nodes
- 2009-08-28: Breaking News -service
- 2009-08-02: Geode-Xmpp-GoogleMap example
- 2009-07-19: Lobstermonster's Buddycloud tweeds
- 2009-07-15: Buddycloud Weather Service
- 2009-06-15: Read and comment BBC Breaking news real time in Lobstermonster Lounge
- 2009-05-17: Geolocation using Firefox's Geode
- 2009-05-17: Geolocation using buddycloud
- 2009-05-08: Simple Weather Forecast Bot
- 2009-05-03: Possibility to ping anonymous web users using my IM client
- 2009-05-01: Online status notified in both ways between Tuomas and the Guest
- 2009-04-30: Contact pages updated
- 2009-04-29: Receive BBC World news as XMPP Message (using the great PubSub feature)!
- 2009-04-19: Example how to send IQ commands to external XMPP server using XEP-0244: IO Data
- 2009-04-19: So how is most of the stuff done on Lobstermonster.org
- 2009-04-18: My mood now on my contact pages.
- 2009-04-15: The incredible XMPP - BOSH - Strophe - Multi-User Chat! :-D
- 2009-04-15: Contact pages ready - and implemented of course with XMPP
- 2009-04-14: Baby got more memory
- 2009-04-13: What have I done and why?