Admin command xep0133 and ejabberd 2.0.3 "xml no wellformed"

Hello ejabberd fan boys,

We are trying to send an admin command to return the list of connected users.
Following the doc there http://xmpp.org/extensions/xep-0133.html#get-registered-users-num

We send:

<body rid='8336031' sid='16e660d0b74616bc76053f899728107d'  xmlns='http://jabber.org/protocol/httpbind'>
     <iq from='thomas@debian/boshclient' to='debian' type='set' id='get-registred-users-num-1' xml:lang='en'>
          <command action='execute' node='http://jabber.org/protocol/admin#get-registered-users-num' xmlns='http://jabber.org/protocol/commands' />
     </iq>
</body>

And receive from our server the following:

<body xmlns='http://jabber.org/protocol/httpbind' type='terminate' condition='remote-stream-error'>
     <xn0:error xmlns:xn0='http://etherx.jabber.org/streams'>
          <xml-not-well-formed xmlns='urn:ietf:params:xml:ns:xmpp-streams'/>
     </xn0:error>
</body>

Unless i am getting blind i can't spot where is the malformed xml ?

Thanks heaps,

Greg

http://friendpaste.com/5aibhdVMMl8BFia3rS3oAw

Don't put that Body

Don't put that Body element.

I tried and works:

Client sends:

<iq to='localhost' type='set' id='get-registred-users-num-1' xml:lang='en'>
 <command action='execute' 
   node='http://jabber.org/protocol/admin#get-registered-users-num' 
   xmlns='http://jabber.org/protocol/commands' />
</iq>

Client receives from server:

<iq from='localhost'
	to='badlop@localhost/Tka'
	id='get-registred-users-num-1'
	type='result'>
  <command sessionid='2009-08-24T11:06:26.948359Z'
	node='http://jabber.org/protocol/admin#get-registered-users-num'
	status='completed'
	xmlns='http://jabber.org/protocol/commands'>
    <x xmlns='jabber:x:data'>
      <field type='hidden'
	var='FORM_TYPE'>
        <value>http://jabber.org/protocol/admin</value>
      </field>
      <field type='text-single'
	label='Number of registered users'
	var='registeredusersnum'>
        <value>3</value>
      </field>
    </x>
  </command>
</iq>
Syndicate content