powered by Jive Software

Sending raw XML

Is there a way to send raw XML to the server?

I saw an archived thread about this, but the answer there was to use the debugger. I’‘d like to provide this functionality from my server-side application and I can’'t launch the debugger.

If there is no such feature, would it be easy and safe for me to implement the SmackDebugger interface and do so from my code? Of course, the definition of “safe” here addresses access to the writer and not the inherent dangers of allowing the user to send whatever he wants to the server

jkohen,

Just create new Packet instances and have the toXML() be the raw XML.

Regards,

Matt

I thought that one, but what would happen if any of the other methods were called? Does the interface guarantee that Smack will only call toXML?