views:

49

answers:

0

I am trying to serialize my webmethod output (rename XML element with results), So far

[return: System.Xml.Serialization.SoapElementAttribute("results")]

before method declaration works fine with soap requests, but I am looking for something that would work the same way with HTTP POST/GET requests as well (right now I get return class name as element name)