title: ASMX Returning a pure string
body: <p>I have an ASP.NET web service (.asmx). My service is defined like the following:</p>
  
  <pre><code>[System.Web.Services.WebService(Namespace = "http://tempuri.org/")]
  [System.Web.Services.WebServiceBinding(ConformsTo = System.Web.Services.WsiProfiles.BasicProfile1_1)]
  public class MyService : System.Web.Services.WebService
  {
    [System.Web.Services.WebMethod]
    public string GetResult()
    {
      string result = "";
  
      int day = System.DateTime.UtcNow.Day;
      if ((day % 1) == 1)
        result = "odd";
      else
        result = "even";
      return result;
    }
  }
  </code></pre>
  
  <p>Currently, if I call this service method, I get the following result:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;string xmlns="http://tempuri.org/"&gt;even&lt;/string&gt;
  </code></pre>
  
  <p>My issue is, I need to return just the string part. I do NOT want to return the wrapping XML. How do I do this with an .asmx?</p>
  
  <p>Thanks!</p>