Re: [JDEV] sending/receiving arbitrary XML content with Net::Jabber
On Wed, Jan 02, 2002 at 11:00:08AM +, Mark Cheverton wrote: Just a heads up on this one, I would also be interested in the agreed best way to do this. I notice things like XML-RPC just define a new namespace, is this the best way or maybe just dump it in a message? I'd like to use jabber as a transport for arbitary XML messages. Well, technically you could do either, although I'd go for the former as it's how Jabber was intended to be used. You can define an arbitrary namespace and carry your XML in that. (Ref below - must've missed/forgotten this one: Jan Peter - I haven't used Net::Jabber for a while, so can't remember off the top of my head; but how about using a 'wrapper' type X extension to hold whatever RDF you want (i.e. two layers)? Cheers dj -Mark On Fri, 2001-12-28 at 14:14, Jan Peter Hecking wrote: Hi, does someone know whether it is possible to send/receive arbitrary XML content with Net::Jabber? I am using Jabber to send RDF (Resource Description Format) content between clients and would like to use Net::Jabber for that purpose. I can get the received RDF content using the GetXML method but unfortunately there is no equivalent SetXML method. And I can't use the Net::Jabber::X extension mechanisms via DefineNamespace since I don't know a priori what Namespaces the RDF content might contain. Anyone have an idea how to solve this problem? ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
Re: [JDEV] sending/receiving arbitrary XML content with Net::Jabber
On Wed, Jan 02, 2002 at 12:00:31PM +, DJ Adams wrote: (Ref below - must've missed/forgotten this one: Jan Peter - I haven't used Net::Jabber for a while, so can't remember off the top of my head; but how about using a 'wrapper' type X extension to hold whatever RDF you want (i.e. two layers)? The problem with Net::Jabber is not that I don't know how to include my XML content in a Jabber query/message or whatever. The problem is that I can't put it inside the query/ container element. What I would have needed is somthing like my $iq = new Net::Jabber:IQ(); my $query = $iq-NewQuery( 'my:name:space' ); $query-SetXML( 'myXmlContentHere/' ); I don't know how difficult it would be to add a SetXML method to Net::Jabber. I guess Net::Jabber is just not designed to do this since it handles XML not as strings but as a tree of Perl objects. Anyway I've found another solution to my problem: I'm using Jabber::Connection instead. ;-) bye, Jan -- Jan Peter Hecking [EMAIL PROTECTED] University of RostockDepartment of Computer Science Web: http://jhecking.netgaroo.com, http://news.netgaroo.com ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
Re: [JDEV] sending/receiving arbitrary XML content with Net::Jabber
On Wed, Jan 02, 2002 at 02:44:06PM +0100, Jan Peter Hecking wrote: Anyway I've found another solution to my problem: I'm using Jabber::Connection instead. ;-) /me grins Ok, that's cool. I wanted to suggest that, but didn't want to appear biased :-) dj ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
[JDEV] sending/receiving arbitrary XML content with Net::Jabber
Hi, does someone know whether it is possible to send/receive arbitrary XML content with Net::Jabber? I am using Jabber to send RDF (Resource Description Format) content between clients and would like to use Net::Jabber for that purpose. I can get the received RDF content using the GetXML method but unfortunately there is no equivalent SetXML method. And I can't use the Net::Jabber::X extension mechanisms via DefineNamespace since I don't know a priori what Namespaces the RDF content might contain. Anyone have an idea how to solve this problem? bye, Jan -- Jan Peter Hecking [EMAIL PROTECTED] University of RostockDepartment of Computer Science Web: http://jhecking.netgaroo.com, http://news.netgaroo.com ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev