Windows App + Webservice

Posted on 2004-11-12
Last Modified: 2010-04-15
Hi Experts,

I build a windows application which is linked to a webservice.
My app is distributed over the net to anyone.
I wanted to know if it's possible to be sure that the app I developped is using my webservice and not another (hacked one for instance) ?

Thanks in advance for your answers.

(I've read lots of docs about webservices: autentication,... but I can't find an answer to my question)
Question by:noulouk
    LVL 7

    Expert Comment

    Hmmm.... If you use the security token that DotNET provides that gaurantees (as best as it can) that the token is from where it sais it is... Basically the token is an encrypted hash that has information about the machine it came from so that when it is decrypted if it was intercepted and altered the decrypted will throw an exception (as I understand).  You can also add information to this enrypted security token from your web service and your applications and have each check for that information...  Here are a couple of sites you can check out for more inofrmation...

    LVL 9

    Author Comment

    Well thanks HTH, I know those features and I'm not really satisfy.
    I think it's less easy to hack, but possible.
    In fact, the best way is when I update my windows app, I stop my old webservice (old versions of my app can't work) and create a new webservice for my last version.
    Do you think this is realistic or could you give me your opinion or another idea ?
    LVL 7

    Accepted Solution

    HTH = Hope This Helps ;-)

    To start I do not believe that you can make an application/web site/computer impossible to hack as long as it is connected to the web.  With that said by adding the information to the security token you could log this information... for instance...

    App -> Web Service ( App logs web service request and Web Service Logs hit with information from the header and security token )
    Web Service -> App ( App logs received information from security token )

    Then from the logs you would be able to see if the application is hitting the correct web service.  I must admit though that your reply left me a little bit confused and it is possible that we are talking about two different things...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    In one of my recent projects, I was working with IP cameras, I need to take some pictures from the camera and do some processing on it. The first step, was to retrieve the image from camera into Image object. So that it can be displayed or …
    Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now