Pierre Greborio.NET

Talking about .NET world

gYearMonth and ASP.NET web services

Probably I'm making something wrong, but I don't undesrtand why the XSD type gYearMonth (it's not the only one) is mapper on System.String CLR type. If I have a simple web method as following:

[WebMethod()]
public string GetYearMonth([XmlElement(DataType="gYearMonth")] string d)
{
 return d;
}

I can send 2003-12 as well as abc ! Sounds strange.

Posted: Mar 11 2004, 12:06 PM by PierreG | with no comments
Filed under:

Comments

No Comments