Take a look at this
HTTP Requests Supported by the Java HTTP Adapter - Advanced Adapter Engine - SAP Library
Ask them to see which fits their need (on the supported formats)..
To your other question take a look at the thread Java mapping to Edit Payload - Sender HTTP .... Just check the example given by Chet..
Thank you,
Justin.