The response was being received only in case of response type being xml, fixed this.
Merge pull request #7 from gantir/master

Fixed response to support XML and JSON