[JDEV] How to send URL

Eric ptto at iilcorp.com
Thu Mar 8 03:37:23 CST 2001


Hi!

I wanna send url to someone on my contact list with the following xml:
  <iq  type="set"  id="sendurl"  to="comm at dev.5390.com" >
    <query xmlns="jabber:iq:oob">
      <url>http://www.jabber.org</url>
      <desc>jabber site</desc>
    </query>
  </iq>

but jabber server responded with
RECV:
  <iq type='error' id='sendurl' to='eric at dev.5390.com/InstantMessage'
from='comm at dev.5390.com'>
    <query xmlns='jabber:iq:oob'>
      <url>http://www.jabber.org</url>
      <desc>jabber site</desc>
    </query>
    <error code='503'>Service Unavailable</error>
  </iq>

Do I need to config the jabber server, say jabber.xml, or install any
module?
Should I use <message> instead of <query> like:
  <message from="comm at dev.5390.com" to="eric at dev.5390.com/InstantMessage">
  <body>URL Attached.</body>
  <x xmlns="jabber:x:oob">
    <url>http://denmark.com/act4/letter-1.html</url>
    <desc>There's a letter for you sir</desc>
  </x>
  </message>

thanks !!!





More information about the JDev mailing list