--
You received this message because you are subscribed to the Google Groups "stomp-spec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stomp-spec+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Python example here:�https://github.com/jasonrbriggs/stomp.py/blob/master/stomp/test/misc_test.py
Serialises to dict, but I think that�s the scenario you�re talking about.
On 6 Dec 2013, at 14:44, Shawn Dempsay <sdem...@gmail.com> wrote:
Sorry we built our own C# version from the spec, so while I know you can do it, I don't know how you would do it using another library.
-- shawn
On 12/6/2013 12:05 AM, Steven Turner wrote:
Can you point me to some example code on how to do it in perl and python? Or if you can provide some sample code here like a method call.�
Really appreciate your quick response.
Thanks,
Steven
On Thursday, December 5, 2013 11:03:58 PM UTC+5:30, sdempsay wrote:
As long as you are not overwriting a well known header like "content-length", there is no reason why you can't add your own. In our products we do just that.
-- Shawn Dempsay
On 12/5/2013 10:52 AM, Steven Turner wrote:
Hi,I �have a use case where some clients are sending text messages which serialized as XML and some clients send messages serialized as JSON. I want to deserialize both types of messages in my application. Is there a way to add custom headers to the message which may indicate what kind of serialization is done?
For eg. clients can add a header 'MessageType' and specify its value as XML or JSON depending on the serialization technique.
I would really appreciate a quick response on this.
Thanks,Steven
--
You received this message because you are subscribed to the Google Groups "stomp-spec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stomp-spec+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "stomp-spec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stomp-spec+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "stomp-spec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stomp-spec+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "stomp-spec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stomp-spec+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
CONFIG = StompConfig('tcp://host:port') QUEUE = '/queue/test'
client = Stomp(CONFIG) client.connect() client.send(destination=QUEUE, body=u'{"a": "b"}', headers={'mime-type': 'application/json
'})
client.disconnect()