so can something similar to this be done when sending messages. for instance, can i somehow send data with each messages that only my client will understand? seems like the "x" child element of the message element is what this is for? can someone give a simple example of how i would do this?
thanks, zak. On Tuesday 15 January 2002 09:54 am, you wrote: > You can create a new <iq> query type.. The problem you're having can be > solved by sending the message to a specific JID, not just the "standard > JID" of the client. This means that you need to include the resource along > with it. Otherwise, when you don't, the server intercepts it and actuallyg > vies you back what may be a public XML data. THe request will not get > received by the client side. > > So try changing your: > > to="mycomponent.server" > > to: > > to="[EMAIL PROTECTED]/Server" > > or whatever your call your resource. > > Currently, your TO is actually a request to the server. You need to add > the client's username to it and then the resource at the end. > > Thanks, > Chris > > At 03:03 AM 1/15/2002, you wrote: > >Hello! > > > >I want to create my own protocol, but there is no documentation on how to > >do this. > > > >Client sends: > ><iq type="get" from="client@server" to="mycomponent.server"> > > <query xmlns="jabber:mycomponent:party"/> > ></iq> > > > >Server returns: > ><iq type="result" from="mycomponent.server" to="client@server"> > > <query xmlns="jabber:mycomponents:party"> > > <party type="hacker party"> > > <participant> > > <name>John Carmack</name> > > </participant> > > <participant> > > <name>Alan Cox</name> > > </participant> > > </party> > > </query> > ></iq> > > > >But no matter what data I send back to the client, Jabber strips any > >elements (subnodes to query) that are not included in an already existing > >XML name space. > > > >How do I define my own name space and tell Jabber what data is valid in > >that name space. > > > >When I test this Jabber returns my query with TWO instances of > >the attribute xmlns="jabber:mycomponents:party" in the query element and > >none of the subnodes in the query element. > > > >I can return vcards, time, last and other data in already defined name > >spaces, how do I create my own? > > > >/P > > > > > >_______________________________________________ > >jdev mailing list > >[EMAIL PROTECTED] > >http://mailman.jabber.org/listinfo/jdev > > PGP at ldap://certserver.pgp.com/ > > _______________________________________________ > jdev mailing list > [EMAIL PROTECTED] > http://mailman.jabber.org/listinfo/jdev _______________________________________________ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
