Problem using PubSub

Hello,

I am running my own ejabberd server (0.98) and i am trying to create a new node using the following IQ message (obtained from JEP-0060)

<..iq type="set"
from="myusername@myserver.org"
to="pubsub.myserver.org"
id="create1">
<..pubsub xmlns="http://jabber.org/protocol/pubsub">
<..create node="home/myserver.org/myusername/newNode"/>
<..configure/>

However, I get a response with :

<..error type="modify" code="400" >
<..bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>

I am not sure what I am doing wrong, as I am following the original JEP-0060 located at http://www.jabber.org/jeps/jep-0060.html#entity-create

On the other hand, I can create "instant nodes", using the following IQ:

<..iq type="set"
from="pgm@jabber.org"
to="pubsub.jabber.org"
id="create2">
<..pubsub xmlns="http://jabber.org/protocol/pubsub">
<..create/>

Its kind of wierd.. I cannot name the new nodes I create? but thats very important for me. Any help would be appreciated

thanks

btw: i have included the two dots infront of every xml entity such that the post can be viewable.

regards,
Salem

Don't configure

ejabberd's mod_pubsub doesn't yet support node configuration. Remove <configure/>, and the node should be created.

Syndicate content