0 Replies Latest reply on Jan 6, 2015 2:03 AM by astuckey

    SwitchYard + Rest Binding + JSON

    astuckey

      Hi All,

       

      I have a situation where I would like to use the Rest binding.  The client side sends JSON messages. I can easily bind for one message type, but since the URI of the POST is the same (which I guess breaks REST?), I can't find a way to leverage the RESTeasy auto transformation between the JSON object and the POJO.

       

      Trying to get some thoughts, would it be best to have the client side modified (device firmware) to use a different URI for the different types of JSON messages?

      I think if I use a MessageComposer, I will then lose the benefit of the RESTeasy transformation and have to then start doing it manually - scan the JSON text to see what POJO it will likely map to etc..

       

      Cheers,

      Adam