From: jeljer te Wies Date: 2010-02-12T19:22:28+09:00 Subject: how to detect used protocol (SOAP, JSON, XML etc.) Hi guys!. I am building an ESB (Enterprise Service Bus) for a Content Management System. The esb (as you probably know) should be able to handle multiple protocols (JSON, XML, SOAP). So it has a tcp socket and it gets a "request". The problem is that I can't figure out how to check what protocol is used. (the only thing i can figure out is to just try to transform it with every known "protocol" until it doesn't return an error anymore. This is however not the most elegant solution. Does anyone have any idea !! (I am really stuck on this problem) Thanxs! greets Heldopslippers -- Posted via http://www.ruby-forum.com/.