Fix for expected format of response - getting xml but was not expecting it.