Serialize ASP.NET Web Service HTTP POST request results

Posted by nigative on Stack Overflow See other posts from Stack Overflow or by nigative
Published on 2010-06-17T22:56:02Z Indexed on 2010/06/17 23:03 UTC
Read the original article Hit count: 207

Filed under:
|
|
|

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)

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET