Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

AdHocCommand with custom XML content

$
0
0

Hi all,

 

I'm developing an application which calls a remote AdHocCommand and sends some custom content, for instance:

 

<iq id="cIq5L-4" to="user1@nb11/ONE" type="set">  <command xmlns="http://jabber.org/protocol/commands" node="inbound" action="execute">    <app:inbound xmlns:app="http://..." />  </command></iq>

 

But I can't access the content on the receiver side.

 

I read about PacketExtension and PacketProvider and I thought my problem might be solved with them, but so far I couldn't do it. So currently the receiver sees just the command and nothing from the content.

 

I started to browse the source code as well and I noticed that the AdHocCommandDataProvider - which parses the command IQs - just checks the default tags but doesn't look for the registered PacketExtensions, e.g.:

 

if (parser.getName().equals("actions")) {
...elseif (parser.getName().equals("next")) {
...elseif (parser.getName().equals("complete")) {
...elseif (parser.getName().equals("prev")) {
...elseif (elementName.equals("x") && namespace.equals("jabber:x:data")) {

 

Maybe the AdHocCommand extension cannot be extended?

 

Do you guys have any idea how I can send and receive such custom content in a command?

 

Thanks in advance!


Viewing all articles
Browse latest Browse all 10742

Trending Articles