I figured it out by making the Example Response header to have the Content-Type as Application/Soap+xml.