[webapi] Fix the xml issue of rawsockets