Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Avatar
Geetha #1
Member since Oct 2012 · 9 posts
Group memberships: Members
Show profile · Link to this post
Subject: Out of band data
Hi Alex,

I have to use XEP-0066 Out of band data  "jabber:x:oob" namespace..

I found  " jabber:iq:oob" implementation in Matrix.xmpp.Oob namespace..  I have to send packet in the below format.

  1. <message from='stpeter@jabber.org/work'
  2.         to='MaineBoy@jabber.org/home'>
  3.  <body>Yeah, but do you have a license to Jabber?</body>
  4.  <x xmlns='jabber:x:oob'>
  5.     <url>http://www.jabber.org/images/psa-license.jpg</url>
  6.  </x>
  7. </message>

I have tried in the below approach

  1. XmppXElement element = new XmppXElement("message", new XmppXElement("x",new XAttribute("xmlns","jabber:x:oob"),new  XAttribute("url",url)), ...;
  2. xmppClient.send(element);

Then i got XmlException. In which namespace i can found "jabber:x:oob" implementation ?

Thank you in advance..
This post was edited 2 times, last on 2012-11-17, 17:47 by Alex.
Edit reason: fixed code formatting
Avatar
Alex #2
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Oob with the x Tag wasn't included in MatriX yet. I have added it and uploaded latest binaries.

You can do now the following:

set the Url:
  1. msg.add(new XOob{Url = "http://www.ag-software.net"});

get the Uri or Url:
  1. var uri = msg.Element<XOob>().Uri;
Avatar
Geetha #3
Member since Oct 2012 · 9 posts
Group memberships: Members
Show profile · Link to this post
 Thank you Alex..

 We will approach you in a short time for purchasing matrix sdk..
This post was edited on 2012-11-19, 06:31 by Geetha.
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: