{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/strong-remoting/issues/224","labels_url":"https://api.github.com/repos/strongloop/strong-remoting/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/strong-remoting/issues/224/comments","events_url":"https://api.github.com/repos/strongloop/strong-remoting/issues/224/events","html_url":"https://github.com/strongloop/strong-remoting/issues/224","id":93816225,"number":224,"title":"Unable to accept XML data through a remote method","user":{"login":"mrfelton","id":200251,"avatar_url":"https://avatars.githubusercontent.com/u/200251?v=3","gravatar_id":"","url":"https://api.github.com/users/mrfelton","html_url":"https://github.com/mrfelton","followers_url":"https://api.github.com/users/mrfelton/followers","following_url":"https://api.github.com/users/mrfelton/following{/other_user}","gists_url":"https://api.github.com/users/mrfelton/gists{/gist_id}","starred_url":"https://api.github.com/users/mrfelton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrfelton/subscriptions","organizations_url":"https://api.github.com/users/mrfelton/orgs","repos_url":"https://api.github.com/users/mrfelton/repos","events_url":"https://api.github.com/users/mrfelton/events{/privacy}","received_events_url":"https://api.github.com/users/mrfelton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-08T15:17:12Z","updated_at":"2016-01-11T18:40:26Z","closed_at":null,"body":"I'm trying to create a remote method that accepts XML data in the POST body. However, after defining the arg I don't seem to be getting the data through to my method.\r\n\r\nThe arg is defined like:\r\n\r\n```json\r\n {\r\n        \"arg\": \"payload\",\r\n        \"type\": \"String\",\r\n        \"required\": true,\r\n        \"description\": \"Webhook payload.\",\r\n        \"http\": {\r\n          \"source\": \"body\"\r\n        }\r\n  }\r\n```\r\n\r\nHowever, what I seem to be getting through to the remote method is a string with the content \"[object Object]\"\r\n\r\nI am setting the content type header as `Content-Type: application/xml; charset=utf-8` but it does not appear to be honouring that.\r\n\r\nI think this may be related to https://github.com/strongloop/strong-remoting/blob/e76c1a7ce56d86beceb8ed3d8d54fa30ac83bafa/lib/http-context.js#L154 where it looks like you try and coerce the data to json."},"comment":{"url":"https://api.github.com/repos/strongloop/strong-remoting/issues/comments/170647974","html_url":"https://github.com/strongloop/strong-remoting/issues/224#issuecomment-170647974","issue_url":"https://api.github.com/repos/strongloop/strong-remoting/issues/224","id":170647974,"user":{"login":"glesage","id":711580,"avatar_url":"https://avatars.githubusercontent.com/u/711580?v=3","gravatar_id":"","url":"https://api.github.com/users/glesage","html_url":"https://github.com/glesage","followers_url":"https://api.github.com/users/glesage/followers","following_url":"https://api.github.com/users/glesage/following{/other_user}","gists_url":"https://api.github.com/users/glesage/gists{/gist_id}","starred_url":"https://api.github.com/users/glesage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glesage/subscriptions","organizations_url":"https://api.github.com/users/glesage/orgs","repos_url":"https://api.github.com/users/glesage/repos","events_url":"https://api.github.com/users/glesage/events{/privacy}","received_events_url":"https://api.github.com/users/glesage/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T18:40:26Z","updated_at":"2016-01-11T18:40:26Z","body":"Hey all, have you been able to get this to work by any chance?"}}