Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
hardmanii #1
Member since Apr 2011 · 20 posts · Location: seoul
Group memberships: Members
Show profile · Link to this post
Subject: how to make .. xml send data
hi.


i want to make . this xml data.

<message from="demo3_v8b@conference.domain" to="deni@test.com">
    <x xmlns="http://jabber.org/protocol/muc#user">
        <invite from="demo@test.com">
            <reason>come in room.</reason>
        </invite>
    </x>
    <x xmlns="jabber:x:conference" jid="demo3_v8b@conference.domain">
    </x>
</message>




how to code make? this is my code..

var msg = new Message { Type = (MessageType)nMessageType, To = _Jid, Body = msgBody };
msg.SetTag("http://jabber.org/protocol/muc#user", "x", "");
XmppClient.Send(msg);


help me plz.
This post was edited on 2011-09-05, 11:52 by hardmanii.
Avatar
Alex #2
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
All classes you need are already there. See the comments in th Xml snippet.

  1. <message from="demo3_v8b@conference.domain" to="deni@test.com">
  2.     <!-- Matrix.Xmpp.Muc.User.X -->
  3.     <x xmlns="http://jabber.org/protocol/muc#user">
  4.         <!-- Matrix.Xmpp.Muc.User.Invite -->
  5.         <invite from="demo@test.com">
  6.             <reason>come in room.</reason>
  7.         </invite>
  8.     </x>   
  9. </message>

The MucManager class has also an Invite member for sending invites.

Alex
Avatar
hardmanii #3
Member since Apr 2011 · 20 posts · Location: seoul
Group memberships: Members
Show profile · Link to this post
Subject: always.. thank you. alex
this is my source code

_MucManager.Invite(_roomJid, dropJid, "come in room.");

xml data)

SEND:<message to="demo4@domain.com" xmlns="jabber:client">
  <x xmlns="http://jabber.org/protocol/muc#user">
    <invite to="room@conference.domain">
      <reason>come in room.</reason>
    </invite>
  </x>
</message>


i want to this xml.

<message from="room@conference.domain" to="test@domain">
    <x xmlns="http://jabber.org/protocol/muc#user">
        <invite from="demo@domain">
            <reason>come in</reason>
        </invite>
    </x>
    <x xmlns="jabber:x:conference" jid="room@conference.domain"/> </message>


how to source code ?


always thank you alex.
help me plz.
Avatar
Alex #4
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
where have you found the XML you posted?

MatriX should send the invites correct like they are described here:
http://xmpp.org/extensions/xep-0045.html#registrar-queryty…

There is another extension XEP-0249: Direct MUC Invitations which are currently not supported in MatriX. But you can add support for this custom packet on your own.

Your posted Xml is using a combination of both which looks wrong to me.

Alex
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: MatriX RSS