Subject: Newbie question about namespace in Iq
Hello,
I've just started to use Matrix and I have a wondering about the namespace in the Iq stanca. Is it always "jabber:client" ?
If i look at the XML generated by my custom iq it looks like this:
As you can see I've set the namespace on the payload for the Iq (SendMessage) by calling the baseconstructor when creating my
SendMessageIq, but the namespace for the actual iq doesn't appear to be settable.
My question is simply this: Should I be able to set the namespace for the iq or should it always be "jabber:client"?
/Robert
I've just started to use Matrix and I have a wondering about the namespace in the Iq stanca. Is it always "jabber:client" ?
If i look at the XML generated by my custom iq it looks like this:
- <iq id="MX_2" type="set" xmlns="jabber:client">
- <SendMessage xmlns="Mercury.MercuryClient">
- <Users>
- <User>
- <UserName>MyUser1</UserName>
- </User>
- <User>
- <UserName>MyUser2</UserName>
- </User>
- </Users>
- <Priority>1</Priority>
- <Subject>Test</Subject>
- <Body>This is a test</Body>
- <ExpirationDate>2012-01-02 00:00:00</ExpirationDate>
- </SendMessage>
- </iq>
As you can see I've set the namespace on the payload for the Iq (SendMessage) by calling the baseconstructor when creating my
SendMessageIq, but the namespace for the actual iq doesn't appear to be settable.
- /// <summary> Constructor, set namespace and XML tag. </summary>
- public SendMessagePayload()
- : base(Settings.Default.AssemblyNamespace, "SendMessage")
- {
- }
My question is simply this: Should I be able to set the namespace for the iq or should it always be "jabber:client"?
/Robert
Oneleg
Show profile
Link to this post