fixing https://wso2.org/jira/browse/WSAS-1544
add the ability to set the body MIME type.
Merge pull request #9 from manuranga/master

fixing https://wso2.org/jira/browse/WSAS-1544