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. General Programming
  3. Visual Basic
  4. How to Serializable OracleConnection

How to Serializable OracleConnection

Scheduled Pinned Locked Moved Visual Basic
tutorialcsharpsecurityhelp
5 Posts 4 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.
  • L Offline
    L Offline
    lucdt
    wrote on last edited by
    #1

    Hi all, I have a WebServices. I want to pass Instance of OracleConnection to Client because i don't want initialize a OracleConnection at Client for Security. But I known OracleConnection Object build-in .Net without implement IxmlSerializable, in others words OracleConnection don't have ability Serializable. Pls, help me. Give me introduction or some guide to pass Instance of OracleConnection to Client from Webservices. Thank alot Best Regard Luc

    D W 2 Replies Last reply
    0
    • L lucdt

      Hi all, I have a WebServices. I want to pass Instance of OracleConnection to Client because i don't want initialize a OracleConnection at Client for Security. But I known OracleConnection Object build-in .Net without implement IxmlSerializable, in others words OracleConnection don't have ability Serializable. Pls, help me. Give me introduction or some guide to pass Instance of OracleConnection to Client from Webservices. Thank alot Best Regard Luc

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      lucdt wrote:

      I have a WebServices. I want to pass Instance of OracleConnection to Client because i don't want initialize a OracleConnection at Client for Security

      You can't do that. The Oracle connection object is not serializable. All database operations should be handled by the WebService, not the client. The client and webservice should pass the data back and forth, not database objects like connections, dataadapters, commandbuilders, ...

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      L 1 Reply Last reply
      0
      • L lucdt

        Hi all, I have a WebServices. I want to pass Instance of OracleConnection to Client because i don't want initialize a OracleConnection at Client for Security. But I known OracleConnection Object build-in .Net without implement IxmlSerializable, in others words OracleConnection don't have ability Serializable. Pls, help me. Give me introduction or some guide to pass Instance of OracleConnection to Client from Webservices. Thank alot Best Regard Luc

        W Offline
        W Offline
        Wendelius
        wrote on last edited by
        #3

        You cannot do this and even if you could there's no point. Separate your application logic to at least 4 different layers: - database - data access layer (the only layer that has to use OracleConnection) - business logic layer - UI layer The layers communicate only with the layer above or underneath so the UI layer does not communicate with DAL and certainly not with the database. There are several good walkthroughs and articles about this in the internet.

        The need to optimize rises from a bad design. My articles[^]

        A 1 Reply Last reply
        0
        • W Wendelius

          You cannot do this and even if you could there's no point. Separate your application logic to at least 4 different layers: - database - data access layer (the only layer that has to use OracleConnection) - business logic layer - UI layer The layers communicate only with the layer above or underneath so the UI layer does not communicate with DAL and certainly not with the database. There are several good walkthroughs and articles about this in the internet.

          The need to optimize rises from a bad design. My articles[^]

          A Offline
          A Offline
          Anh trang
          wrote on last edited by
          #4

          Thank for quick reply ! I will chance my design. Bests regards

          1 Reply Last reply
          0
          • D Dave Kreskowiak

            lucdt wrote:

            I have a WebServices. I want to pass Instance of OracleConnection to Client because i don't want initialize a OracleConnection at Client for Security

            You can't do that. The Oracle connection object is not serializable. All database operations should be handled by the WebService, not the client. The client and webservice should pass the data back and forth, not database objects like connections, dataadapters, commandbuilders, ...

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008

            L Offline
            L Offline
            lucdt
            wrote on last edited by
            #5

            Thank for quick reply ! I will chance my design. Bests regards

            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