On Sat, Jun 5, 2010 at 11:13 PM, Bernd Fondermann <[email protected]> wrote: > We have a (unreleased!) sample PubSub client available in svn at > http://svn.apache.org/repos/asf/mina/vysper/trunk/demo/pubsub/client/ > which also uses smackx-pubsub. > It works for me after applying the patch given below from revision > 938927 to the server code.
I could not reproduce any problem with the pubsub demo with the current trunk. I would be grateful if you could provide further details on what problems you were seeing? That being said, there are multiple issue with the current pubsub code, but the demo seems to be work fine with them: * message element created in the pubsub namespace * item element published in the pubsub (not pubsub#event) namespace (note that the proposed patch does not help with any of these) * create node handler only allows exactly one inner element. However, the example used by Ken will send two elements since it uses a data form in addition to the create element * The IQHandler namespace check is to lax in that it matches any element with equal declared namespace (even if not applied to the element at hand). This did in this case not cause any major problem since the element local name did not match. /niklas
