Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
efoxy #1
Member since Jan 2008 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: the openfire can't store my own packet types
for example:
my message is like this:
<message xmlns="jabber:client" to="romeo@montage.net">
   <weather xmlns="agsoftware:weather">
     <humidity>90</humidity>
     <temperature>57</temperature>
   </weather>
</message>

if the server is openfire 3.6.0 or newer,the message can't be stored as an offline message. because my message has NOT a body tag, I have to add a body tag to the message,like this:
<message xmlns="jabber:client" to="romeo@montage.net">
   <body>some text</body>
   <weather xmlns="agsoftware:weather">
     <humidity>90</humidity>
     <temperature>57</temperature>
   </weather>
</message>

the description of openfire is here:
http://www.igniterealtime.org/issues/browse/JM-1435
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
add a dummy body to your extension and it will work.

  1. <message xmlns="jabber:client" to="romeo@montage.net">
  2.    <body>my weather extension</body>
  3.    <weather xmlns="agsoftware:weather">
  4.      <humidity>90</humidity>
  5.      <temperature>57</temperature>
  6.    </weather>
  7. </message>
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 RSS