Auto-generated service proxy issue [modified]
-
I have objects being passed through web services that contain System.DateTimeOffset variables in them (I just changed from System.DateTime). When updating a web service reference in my client project, the auto-generated proxy code includes a definition for DateTimeOffset as a generic object under the service's namespace (instead of using the System.DateTimeOffset structure. Can anyone help me understand why this happens with this struct and not with the System.DateTime struct? Update ~ Just ran across this as I was debugging a service; seems the DateTimeOffset is a non-standard primitive as far as DataContractSerializer is concerned: "Unlike other primitive types, the DateTimeOffset structure is not a known type by default, so it must be manually added to the list of known types (see Data Contract Known Types)."[]
Jack of all trades ~ Master of none.
modified on Tuesday, June 29, 2010 3:58 PM