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. WPF
  4. Web service reference in app.config file issue

Web service reference in app.config file issue

Scheduled Pinned Locked Moved WPF
wpfhelpcsharpvisual-studiowcf
6 Posts 3 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.
  • T Offline
    T Offline
    Thats Aragon
    wrote on last edited by
    #1

    Hi, I have added a web service reference in my WPF application. VS automatically adds some binding tags and endpoint address like http://mydomain.com/services/sample.asmx in the app.config file.Now when I deploy this application with setup project and install it, application folder contains myapplication.exe.config file which displays this endpoint address and other binding details. I need to hide this details from the user. As user may change this details. 1. Should I hide binding details anyhow? so that it will not be visible to the application user. 2. Can I move this reference to any other file or may be in the project dll itself? Your help would be appreciated.

    Regards

    M 1 Reply Last reply
    0
    • T Thats Aragon

      Hi, I have added a web service reference in my WPF application. VS automatically adds some binding tags and endpoint address like http://mydomain.com/services/sample.asmx in the app.config file.Now when I deploy this application with setup project and install it, application folder contains myapplication.exe.config file which displays this endpoint address and other binding details. I need to hide this details from the user. As user may change this details. 1. Should I hide binding details anyhow? so that it will not be visible to the application user. 2. Can I move this reference to any other file or may be in the project dll itself? Your help would be appreciated.

      Regards

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      You can feed the endpoint in from your code - there are a couple of articles on dynamic endpoint set up. However I would not bother if a user fiddles with a config file you need to shoot the user. It is easy (for you) to recover from the problem and it will identify an idiot in your organisation.

      Never underestimate the power of human stupidity RAH

      T 1 Reply Last reply
      0
      • M Mycroft Holmes

        You can feed the endpoint in from your code - there are a couple of articles on dynamic endpoint set up. However I would not bother if a user fiddles with a config file you need to shoot the user. It is easy (for you) to recover from the problem and it will identify an idiot in your organisation.

        Never underestimate the power of human stupidity RAH

        T Offline
        T Offline
        Thats Aragon
        wrote on last edited by
        #3

        Thanks for the suggestion Mycroft.

        Mycroft Holmes wrote:

        However I would not bother if a user fiddles with a config file you need to shoot the user. It is easy (for you) to recover from the problem and it will identify an idiot in your organisation.

        That is good point. :cool: Actually I am implementing user activity tracking application, so if user is idle for X min it will call a web service and add idle entry in the database for that user. This details will be used in the reporting. Now we are technical team, anyone can change this endpoint and stop the web service call. so I must have to take some security steps. ;) I will try to follow dynamic binding from the code side. Thanks for the help.

        Regards

        M 1 Reply Last reply
        0
        • T Thats Aragon

          Thanks for the suggestion Mycroft.

          Mycroft Holmes wrote:

          However I would not bother if a user fiddles with a config file you need to shoot the user. It is easy (for you) to recover from the problem and it will identify an idiot in your organisation.

          That is good point. :cool: Actually I am implementing user activity tracking application, so if user is idle for X min it will call a web service and add idle entry in the database for that user. This details will be used in the reporting. Now we are technical team, anyone can change this endpoint and stop the web service call. so I must have to take some security steps. ;) I will try to follow dynamic binding from the code side. Thanks for the help.

          Regards

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          Why not reverse the reporting process - n# Activities in x minutes then if they break the connection they get ragged on for not working. Or change the way you present it, if they pass a reasonable minimum threshold then they are rewarded instead of hassled. Morale must be really crappy in your organisation if such a negative outlook is predominant.

          Never underestimate the power of human stupidity RAH

          T 1 Reply Last reply
          0
          • M Mycroft Holmes

            Why not reverse the reporting process - n# Activities in x minutes then if they break the connection they get ragged on for not working. Or change the way you present it, if they pass a reasonable minimum threshold then they are rewarded instead of hassled. Morale must be really crappy in your organisation if such a negative outlook is predominant.

            Never underestimate the power of human stupidity RAH

            T Offline
            T Offline
            Thats Aragon
            wrote on last edited by
            #5

            Mycroft Holmes wrote:

            Morale must be really crappy in your organisation if such a negative outlook is predominant.

            Yes, you are absolutely right. :thumbsup: This small application is only for monitoring employees idle status on his/her PC and not the working status. :( Like someone talk on phone or may take small coffee break more than define criteria(i.e. X min), then system will add a entry in the database and notify use about it. So to minimize small break(which is too usual :cool:) , organization is approaching this application and it is too annoying for me. :sigh:

            Regards

            P 1 Reply Last reply
            0
            • T Thats Aragon

              Mycroft Holmes wrote:

              Morale must be really crappy in your organisation if such a negative outlook is predominant.

              Yes, you are absolutely right. :thumbsup: This small application is only for monitoring employees idle status on his/her PC and not the working status. :( Like someone talk on phone or may take small coffee break more than define criteria(i.e. X min), then system will add a entry in the database and notify use about it. So to minimize small break(which is too usual :cool:) , organization is approaching this application and it is too annoying for me. :sigh:

              Regards

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              If I were you, and I was working in such a controlling environment, I would look for another job. No good can come from such an application.

              Forgive your enemies - it messes with their heads

              "Mind bleach! Send me mind bleach!" - Nagy Vilmos

              My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

              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