Siracusa, David
2004-07-09 15:29:54 UTC
I have a Exodus plugin which subscribes to a word list using pubsub.
The exodus plugin does receive pubsub#events however I don't see the
acknowledgement (response) from my pubsub.pl.
I registered /packet within the plugin with: _packet :=
_exodus.RegisterCallback('/packet', Self);
I also don't get any messages in Process when I try to get the list with
pubsub get items.
I echoed the response to the console in pubsub.pl, appears to be okay.
What do I need to do to see the server response?
Thanks,
Dave Siracusa
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
procedure TWordsPlugin.subscribe();
var
iq, ps, s: TXMLTag;
begin
iq := TXMLTag.Create('iq');
iq.setAttribute('to', 'pubsub.' + _exodus.Server );
iq.setAttribute('from', _exodus.Username + '@' + _exodus.Server );
iq.setAttribute('type', 'set');
ps := iq.AddTag('pubsub');
ps.setAttribute('xmlns', 'http://jabber.org/protocol/pubsub');
s := ps.AddTag('subscribe');
s.setAttribute('node', 'generic/words');
s.setAttribute('jid', _exodus.Username + '@' + _exodus.Server);
_exodus.Send(iq.xml);
iq.Free();
end;
end;
IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jabberstudio.org/pipermail/exodus-dev/attachments/20040706/0cd13311/attachment.html
The exodus plugin does receive pubsub#events however I don't see the
acknowledgement (response) from my pubsub.pl.
I registered /packet within the plugin with: _packet :=
_exodus.RegisterCallback('/packet', Self);
I also don't get any messages in Process when I try to get the list with
pubsub get items.
I echoed the response to the console in pubsub.pl, appears to be okay.
What do I need to do to see the server response?
Thanks,
Dave Siracusa
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
procedure TWordsPlugin.subscribe();
var
iq, ps, s: TXMLTag;
begin
iq := TXMLTag.Create('iq');
iq.setAttribute('to', 'pubsub.' + _exodus.Server );
iq.setAttribute('from', _exodus.Username + '@' + _exodus.Server );
iq.setAttribute('type', 'set');
ps := iq.AddTag('pubsub');
ps.setAttribute('xmlns', 'http://jabber.org/protocol/pubsub');
s := ps.AddTag('subscribe');
s.setAttribute('node', 'generic/words');
s.setAttribute('jid', _exodus.Username + '@' + _exodus.Server);
_exodus.Send(iq.xml);
iq.Free();
end;
end;
IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jabberstudio.org/pipermail/exodus-dev/attachments/20040706/0cd13311/attachment.html