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. ASP.NET
  4. Exposing Enums from a Web Service

Exposing Enums from a Web Service

Scheduled Pinned Locked Moved ASP.NET
csharpquestion
2 Posts 2 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.
  • D Offline
    D Offline
    Dominic Pettifer
    wrote on last edited by
    #1

    I'm writing a web service in .NET that will expose Enumerations to the caller. I know this is possible, I just want to know if it's a good idea. I want to make it inter-operable with other systems, so would exposing an enum work ok? Specifically it will expose a custom object that has an enum inside it as a public property. Many thanks! PS. to see the web service in action visit http://www.dominicpettifer.co.uk/coolApps/whereAmI.aspx[^]. IP Location mapping, not very accurate though.

    Dominic Pettifer Blog: www.dominicpettifer.co.uk

    K 1 Reply Last reply
    0
    • D Dominic Pettifer

      I'm writing a web service in .NET that will expose Enumerations to the caller. I know this is possible, I just want to know if it's a good idea. I want to make it inter-operable with other systems, so would exposing an enum work ok? Specifically it will expose a custom object that has an enum inside it as a public property. Many thanks! PS. to see the web service in action visit http://www.dominicpettifer.co.uk/coolApps/whereAmI.aspx[^]. IP Location mapping, not very accurate though.

      Dominic Pettifer Blog: www.dominicpettifer.co.uk

      K Offline
      K Offline
      Kschuler
      wrote on last edited by
      #2

      I have created a public custom class which I exposed through a web service before and have not experienced any problems with it. As long as you make sure that you are not exposing sensitive data, you should be okay. About making it inter-operable with other systems, I am not sure. I've never tested that, but in theory I believe it should work. Hope this helps you.

      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