Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 154209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:56:18+00:00 2026-05-11T09:56:18+00:00

I need to build a simple webservice to get data in and out of

  • 0

I need to build a simple webservice to get data in and out of a HR System over the Internet (it’s a hosted solution). I am using IIS and ASP.Net with .Net 2.0.

Having looked into it, there are several ways of making the webservice secure – I am after some advice on which method to choose, with some views on pros and cons.

These are the methods I am aware of:

SoapHeaders over SSL

Post the UID/PWD in a Soap header and implement a SOAP extension (link).
Pretty straightforward to implement and should be quite secure over SSL. This is by far my preferred option due to the relative simplicity. Also, for historical reasons, I will need to consume the webservice from VBScript of all things, so the ability to just deal with simple SOAP is a bonus. However, are there any caveats? Am I going to have clients complaining this is a security risk?

Using WCF with TransportWithMessageCredential

I found a lot of old articles referring to WS and if I am not misstaken, this is what is now provided in WCF? This Microsoft link has a primer.
If I understand it correctly, this uses certificate-based security between client and server for authentication. Is this correct or have I got it completely wrong?
I suspect this will be a much bigger job, at least implementation wise. Also, I won’t be able to access the Webservice directly from VBScript, so will have to write a dll it call call and then deploy that locally – correct?
Is this even available in .Net 2.0?

Other methods

  • I could disallow anonymous access to the asmx file and use rely on IIS to do authentication through challenge/response. This is actually practical in my scenario but feels very inelegant (and no idea how to make that work from VBScript either).
  • Passing in a UID to the method call is a poor cousin of the SoapHeader so I won’t use that.

I would be very grateful for any advice on the best approach to this problem. If anyone has a good argument why Soap Headers are secure then I would love to hear it, as that seems like the simplest to use, as long as it is ‘secure enough’.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:56:19+00:00Added an answer on May 11, 2026 at 9:56 am

    You should strongly consider using IIS and Windows to provide the authentication. IIS can map incoming requests to an AD user (NTLM, Certificates, Kerberos, etc.). From there, you’ll have a WindowsPrincipal you can use to demand that the user is in a group. If you don’t mind compiling the group name into the code, you can even use the PrincipalPermissionAttribute on your service methods so it’d be completely declarative.

    By using Windows, you get the platform to deal with all the security issues. Passwords won’t be transmitted in plain text, nor will you need to create and specify your own challenge/response type system (yuck). Different clients could authenticate in different ways (require certificates for some, allow NTLM for others).

    Finally, you’ll end up with less code since you can use Windows to manage the users and the .NET Framework to enforce security checks.

    Edit:

    Maybe you think securing the ASMX is hacky because that’s the only step you’re looking at? I’d agree! A webservice that only depends that you’ve denied anonymous sounds very weak indeed. The webservice code itself should demand group membership after the authentication is done. That way if you misconfigure the server, you’ve made it inaccessible, not insecure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im using regular asp.net c# (webforms) i need to build a simple form that
I am using Jersey and JAXB to build a simple RESTful webservice I have
I need to build a simple administrative webapp using python that will connect to
I need to build an extremely simple, single user authentication system. It's for an
I need to build a push system in django, basicly its function is to
I am trying to build a webservice that manipulates http requests POST and GET.
I need to build a simple app that takes (click only) input from 4
I need to get the current mercurial changeset to return in a very simple
I need to build a simple app in a browser: The interface will be
I need to build a simple desktop app, my experience is with vb6 but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.