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. Connected Complex Objects In Web Services

Connected Complex Objects In Web Services

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netwcfjsonhelp
3 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.
  • B Offline
    B Offline
    BarV
    wrote on last edited by
    #1

    Hello, I tried, unsuccesfully to make a webservice that returns objects with webmethods of their own, using a asp.net webservice. I need to log every action made by the client and still maintain a nested interface.;) for example: a flat regular web service interface: wsclass.getFlower returns a flower object - only with fields(not functionality). I want to return the Flower and record what the user has accessed in the object. I tried returning a webservice complient in interface to the object's instead of the object as a returning type of the getFlower. But when i ran it it raised an error about a serialization failure.:( THANX; bv

    C 1 Reply Last reply
    0
    • B BarV

      Hello, I tried, unsuccesfully to make a webservice that returns objects with webmethods of their own, using a asp.net webservice. I need to log every action made by the client and still maintain a nested interface.;) for example: a flat regular web service interface: wsclass.getFlower returns a flower object - only with fields(not functionality). I want to return the Flower and record what the user has accessed in the object. I tried returning a webservice complient in interface to the object's instead of the object as a returning type of the getFlower. But when i ran it it raised an error about a serialization failure.:( THANX; bv

      C Offline
      C Offline
      coolestCoder
      wrote on last edited by
      #2

      Hi, Is the type (Flower) declared Serializable ?


      "A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder


      coolestCoder

      B 1 Reply Last reply
      0
      • C coolestCoder

        Hi, Is the type (Flower) declared Serializable ?


        "A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder


        coolestCoder

        B Offline
        B Offline
        BarV
        wrote on last edited by
        #3

        Yes, but it doen't matter. If I want to return an object only with data, it's possible using serialization. I want to maintain the logging functionality which requires a connection to the server. It is not a problem if I expose an assembly but the trick is doing it with a web service that has a nested interface. I need the web service for interoperability and keeping the deployment simple. I don't want to rely on the client to have a .net framework installed (or Mono for linux) to avoid the deployment of a .Net assembly. thanks

        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