Not logged in. · Lost password · Register
Forum: agsXMPP SDK Support RSS
Can connect to Jabber server, but not IM gateways
Avatar
kltye #1
Member since Aug 2006 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: Connecting to legacy IM gateways
Hi,

I've installed OpenFire and I have the IM gateway plugin installed and working just fine. Tests with the MiniClient show that I can communicate with AIM, MSN and GTalk networks.

Now, I'm trying to write a web service to connect to my OpenFire server. Just for debug purposes I write presence information out to a text file. Unfortunately, according to the presence debug file and the status info on my server, the web service fails at connecting to the IM gateway. Here's the XML debug that I have: (attached as the next post)

At first I was getting some sort of error 501 feature not implemented error, but I made some changes to my code and that has disappeared. Let me know if you need the debug output from the MiniClient...

Thanks!
This post was edited on 2007-08-19, 20:15 by kltye.
Avatar
kltye #2
Member since Aug 2006 · 6 posts
Group memberships: Members
Show profile · Link to this post
  1. SEND: <stream:stream to='mydomain.net' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
  2. RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" from="mydomain.net" version="1.0" xml:lang="en" id="22d0229" >
  3. RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams"><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" /><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><auth xmlns="http://jabber.org/features/iq-auth" /></stream:features>
  4. SEND: <compress xmlns="http://jabber.org/protocol/compress"><method>zlib</method></compress>
  5. RECV: <compressed xmlns="http://jabber.org/protocol/compress" />
  6. SEND: <stream:stream to='mydomain.net' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
  7. RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" from="mydomain.net" version="1.0" xml:lang="en" id="22d0229" >
  8. RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams"><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><auth xmlns="http://jabber.org/features/iq-auth" /></stream:features>
  9. SEND: <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="PLAIN">XXX</auth>
  10. RECV: <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl" />
  11. SEND: <stream:stream to='mydomain.net' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
  12. RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" from="mydomain.net" version="1.0" xml:lang="en" id="22d0229" >
  13. RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind" /><session xmlns="urn:ietf:params:xml:ns:xmpp-session" /></stream:features>
  14. SEND: <iq xmlns="jabber:client" id="agsXMPP_1" type="set" to="mydomain.net"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><resource>MiniClient</resource></bind></iq>
  15. RECV: <iq xmlns="jabber:client" from="mydomain.net" to="mydomain.net/22d0229" type="result" id="agsXMPP_1"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>administrator@mydomain.net/MiniClient</jid></bind></iq>
  16. SEND: <iq xmlns="jabber:client" id="agsXMPP_2" type="set" to="mydomain.net"><session xmlns="urn:ietf:params:xml:ns:xmpp-session" /></iq>
  17. RECV: <iq xmlns="jabber:client" from="mydomain.net" to="administrator@mydomain.net/MiniClient" type="result" id="agsXMPP_2"><session xmlns="urn:ietf:params:xml:ns:xmpp-session" /></iq>
  18. SEND: <iq xmlns="jabber:client" id="agsXMPP_3" type="get" to="mydomain.net"><query xmlns="http://jabber.org/protocol/disco#items" /></iq>
  19. SEND: <iq xmlns="jabber:client" id="agsXMPP_4" type="get" to="mydomain.net"><query xmlns="jabber:iq:agents" /></iq>
  20. SEND: <iq xmlns="jabber:client" id="agsXMPP_5" type="get"><query xmlns="jabber:iq:roster" /></iq>
  21. RECV: <iq xmlns="jabber:client" from="mydomain.net" to="administrator@mydomain.net/MiniClient" type="result" id="agsXMPP_3"><query xmlns="http://jabber.org/protocol/disco#items"><item name="Public Chatrooms" jid="conference.mydomain.net" /><item name="Publish-Subscribe service" jid="pubsub.mydomain.net" /><item name="Socks 5 Bytestreams Proxy" jid="proxy.mydomain.net" /><item name="User Search" jid="search.mydomain.net" /><item name="AIM Transport" jid="aim.mydomain.net" /><item name="MSN Transport" jid="msn.mydomain.net" /><item name="Yahoo! Transport" jid="yahoo.mydomain.net" /><item name="Google Talk Transport" jid="gtalk.mydomain.net" /><item name="Media Proxy Service" jid="rtpbridge.mydomain.net" /></query></iq>
  22. SEND: <iq xmlns="jabber:client" id="agsXMPP_6" type="get" to="conference.mydomain.net"><query xmlns="http://jabber.org/protocol/disco#info" /></iq>
  23. SEND: <iq xmlns="jabber:client" id="agsXMPP_7" type="get" to="pubsub.mydomain.net"><query xmlns="http://jabber.org/protocol/disco#info" /></iq>
  24. SEND: <iq xmlns="jabber:client" id="agsXMPP_8" type="get" to="proxy.mydomain.net"><query xmlns="http://jabber.org/protocol/disco#info" /></iq>
  25. SEND: <iq xmlns="jabber:client" id="agsXMPP_9" type="get" to="search.mydomain.net"><query xmlns="http://jabber.org/protocol/disco#info" /></iq>
  26. SEND: <iq xmlns="jabber:client" id="agsXMPP_10" type="get" to="aim.mydomain.net"><query xmlns="http://jabber.org/protocol/disco#info" /></iq>
  27. SEND: <iq xmlns="jabber:client" id="agsXMPP_11" type="get" to="msn.mydomain.net"><query xmlns="http://jabber.org/protocol/disco#info" /></iq>
  28. SEND: <iq xmlns="jabber:client" id="agsXMPP_12" type="get" to="yahoo.mydomain.net"><query xmlns="http://jabber.org/protocol/disco#info" /></iq>
  29. SEND: <iq xmlns="jabber:client" id="agsXMPP_13" type="get" to="gtalk.mydomain.net"><query xmlns="http://jabber.org/protocol/disco#info" /></iq>
  30. SEND: <iq xmlns="jabber:client" id="agsXMPP_14" type="get" to="rtpbridge.mydomain.net"><query xmlns="http://jabber.org/protocol/disco#info" /></iq>
  31. RECV: <iq xmlns="jabber:client" to="administrator@mydomain.net/MiniClient" type="result" id="agsXMPP_5"><query xmlns="jabber:iq:roster"><item name="AIM Transport" jid="aim.mydomain.net" subscription="both"><group>Transports</group></item></query></iq>
  32. RECV: <iq xmlns="jabber:client" from="conference.mydomain.net" to="administrator@mydomain.net/MiniClient" type="result" id="agsXMPP_6"><query xmlns="http://jabber.org/protocol/disco#info"><identity name="Public Chatrooms" category="conference" type="text" /><feature var="http://jabber.org/protocol/muc" /><feature var="http://jabber.org/protocol/disco#info" /><feature var="http://jabber.org/protocol/disco#items" /></query></iq>
  33. RECV: <iq xmlns="jabber:client" from="pubsub.mydomain.net" to="administrator@mydomain.net/MiniClient" type="result" id="agsXMPP_7"><query xmlns="http://jabber.org/protocol/disco#info"><identity name="Publish-Subscribe service" category="pubsub" type="service" /><feature var="http://jabber.org/protocol/pubsub" /><feature var="http://jabber.org/protocol/pubsub#collections" /><feature var="http://jabber.org/protocol/pubsub#config-node" /><feature var="http://jabber.org/protocol/pubsub#create-and-configure" /><feature var="http://jabber.org/protocol/pubsub#create-nodes" /><feature var="http://jabber.org/protocol/pubsub#delete-nodes" /><feature var="http://jabber.org/protocol/pubsub#get-pending" /><feature var="http://jabber.org/protocol/pubsub#instant-nodes" /><feature var="http://jabber.org/protocol/pubsub#item-ids" /><feature var="http://jabber.org/protocol/pubsub#meta-data" /><feature var="http://jabber.org/protocol/pubsub#modify-affiliations" /><feature var="http://jabber.org/protocol/pubsub#manage-subscriptions" /><feature var="http://jabber.org/protocol/pubsub#multi-subscribe" /><feature var="http://jabber.org/protocol/pubsub#outcast-affiliation" /><feature var="http://jabber.org/protocol/pubsub#persistent-items" /><feature var="http://jabber.org/protocol/pubsub#presence-notifications" /><feature var="http://jabber.org/protocol/pubsub#publish" /><feature var="http://jabber.org/protocol/pubsub#publisher-affiliation" /><feature var="http://jabber.org/protocol/pubsub#purge-nodes" /><feature var="http://jabber.org/protocol/pubsub#retract-items" /><feature var="http://jabber.org/protocol/pubsub#retrieve-affiliations" /><feature var="http://jabber.org/protocol/pubsub#retrieve-default" /><feature var="http://jabber.org/protocol/pubsub#retrieve-items" /><feature var="http://jabber.org/protocol/pubsub#retrieve-subscriptions" /><feature var="http://jabber.org/protocol/pubsub#subscribe" /><feature var="http://jabber.org/protocol/pubsub#subscription-options" /><feature var="http://jabber.org/protocol/pubsub#default_access_model_open" /></query></iq>
  34. RECV: <iq xmlns="jabber:client" from="proxy.mydomain.net" to="administrator@mydomain.net/MiniClient" type="result" id="agsXMPP_8"><query xmlns="http://jabber.org/protocol/disco#info"><identity name="SOCKS5 Bytestreams Service" category="proxy" type="bytestreams" /><feature var="http://jabber.org/protocol/bytestreams" /><feature var="http://jabber.org/protocol/disco#info" /></query></iq>
  35. RECV: <iq xmlns="jabber:client" from="search.mydomain.net" to="administrator@mydomain.net/MiniClient" type="result" id="agsXMPP_9"><query xmlns="http://jabber.org/protocol/disco#info"><identity name="User Search" category="directory" type="user" /><feature var="jabber:iq:search" /></query></iq>
  36. RECV: <iq xmlns="jabber:client" from="aim.mydomain.net" to="administrator@mydomain.net/MiniClient" type="result" id="agsXMPP_10"><query xmlns="http://jabber.org/protocol/disco#info"><identity name="AIM Transport" category="gateway" type="aim" /><feature var="http://jabber.org/protocol/disco#info" /><feature var="http://jabber.org/protocol/disco#items" /><feature var="jabber:iq:gateway" /><feature var="jabber:iq:register" /><feature var="jabber:iq:version" /><feature var="jabber:iq:registered" /></query></iq>
  37. RECV: <iq xmlns="jabber:client" from="msn.mydomain.net" to="administrator@mydomain.net/MiniClient" type="result" id="agsXMPP_11"><query xmlns="http://jabber.org/protocol/disco#info"><identity name="MSN Transport" category="gateway" type="msn" /><feature var="http://jabber.org/protocol/disco#info" /><feature var="http://jabber.org/protocol/disco#items" /><feature var="jabber:iq:gateway" /><feature var="jabber:iq:register" /><feature var="jabber:iq:version" /></query></iq>
  38. RECV: <iq xmlns="jabber:client" from="yahoo.mydomain.net" to="administrator@mydomain.net/MiniClient" type="result" id="agsXMPP_12">
This post was edited 2 times, last on 2013-03-20, 15:28 by Alex.
Avatar
Alex #3
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
You never send your own presence to the server according to your xml log.
Or is this log incomplete?

Alex
Alexander Gnauck
AG-Software
Avatar
kltye #4
Member since Aug 2006 · 6 posts
Group memberships: Members
Show profile · Link to this post
Thanks! That was it - I missed that little part from the MiniClient :P
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP SDK Support RSS