The response was being received only in case of response type being xml,...

... fixed this.