<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; FONT-WEIGHT:Normal;">Hey julien,<br>
<br>
I know this has nothing to do with your question (i will read the spec tomorrow if somebody doesn't beat me to it), take more care about exposing your email on public mailing lists :), spambait.<br>
<br>
Sent from my Windows Mobile® phone.<br>
<br>
<hr>
<span style="font-size:10pt;font-family:Tahoma; font-weight:bold">From: </span><span style="font-size:10pt;font-family:Tahoma; font-weight:normal;">Julien Genestoux <julien.genestoux@gmail.com></span><br>
<span style="font-size:10pt;font-family:Tahoma; font-weight:bold">Sent: </span><span style="font-size:10pt;font-family:Tahoma; font-weight:normal;">09 October 2008 07:28 PM</span><br>
<span style="font-size:10pt;font-family:Tahoma; font-weight:bold">To: </span><span style="font-size:10pt;font-family:Tahoma; font-weight:normal;">jdev@jabber.org <jdev@jabber.org></span><br>
<span style="font-size:10pt;font-family:Tahoma; font-weight:bold">Subject: </span>
<span style="font-size:10pt;font-family:Tahoma; font-weight:normal;">[jdev] PubSub subscription stanzas</span><br>
<br>
</span>
<div>
<div dir="ltr">Hi everyone,
<div><br>
</div>
<div>I am currently working on a project that involves a XMPP PubSub mechanism.</div>
<div>I am trying to implement a component that will manage this since we don't want to use a "full" PubSub server.</div>
<div><br>
</div>
<div>Our users will be able to subscribe to a source using both a XMPP client and our web application.</div>
<div>When a user subscribes to a node using the XMPP client, it is easy, I just have to follow what's given here : <a href="http://xmpp.org/extensions/xep-0060.html#subscriber-subscribe">http://xmpp.org/extensions/xep-0060.html#subscriber-subscribe</a></div>
<div><br>
</div>
<div>However, when he subscribes from our web application, what kind of stanza should I send, since the request is not coming from the xmpp client itself? My idea was to send something like :</div>
<div><span class="Apple-style-span" style="font-family: Verdana; line-height: 16px; ">
<pre style="font-family: Courier, monospace; ">
<iq type='result'
from='pubsub.shakespeare.lit'
to='francisco@denmark.lit/barracks'
id='sub1'>
<pubsub xmlns='<a href="http://jabber.org/protocol/pubsub">http://jabber.org/protocol/pubsub</a>'>
<subscription
node='princely_musings'
jid='francisco@denmark.lit'
subid='ba49252aaa4f5d320c24d3766f0bdcade78c78d3'
subscription='subscribed'/>
</pubsub>
</iq></pre>
</span></div>
<div>But the 'result' in iq type feels weird, since my understdanding was that resul corresponds to an action that was led by the client? Am I wrong? If so, can I send something like type='set' ? </div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br clear="all">
--<br>
Julien Genestoux<br>
<a href="mailto:julien.genestoux@gmail.com">julien.genestoux@gmail.com</a><br>
<a href="http://www.ouvre-boite.com">http://www.ouvre-boite.com</a><br>
<br>
Notifixious : <a href="http://tinyurl.com/notifixious">http://tinyurl.com/notifixious</a><br>
<br>
+1 (415) 254 7340<br>
+33 (0)8 70 44 76 29<br>
</div>
</div>
</div>
</body>
</html>