<%@ WebService Language="C#" Class="Types" %> using System; using System.Web.Services; public enum E { A, B, C }; public class Types : WebService { [WebMethod] public E Echo1(E o) { return o; } [WebMethod] public DateTime Echo2(DateTime o) { return o; } }