Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Auto-generated service proxy issue [modified]

Auto-generated service proxy issue [modified]

Scheduled Pinned Locked Moved Web Development
helpwcfcomjsonquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JOAT MON
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups