I have to comunicate with a HTTPS server that is waiting the messages with Content-Type=application/x-www-form-urlencoded; charset=UTF-8.
Now is sending the messages with Content-Type=text/plain.
I'm using a Http Direct Basic routing definition to send the requests by calling ep.call How I can change the Content-Type that is used to send the messages?
You need to do a little more than change the Content-Type, because it does need to actually change the content to a string of bytes that is URLEncoded....
But assuming you do that, then the default behavior for HTTP Direct is to pass the JMS Headers as HTTP Headers. Setting a property (and I believe Content-Type is one this will work for) in the JMS message should pass this through to the HTTP message.