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

  • Home
  • SEARCH
  • 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 8469289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:11:08+00:00 2026-06-10T16:11:08+00:00

I have a client-server program that uses sockets to transfer information in a stateful

  • 0

I have a client-server program that uses sockets to transfer information in a stateful fashion. What I mean is, the connection is persistent, and authenticated using a public and private key baked into the software itself. It works well and is very efficient, but the overall framework I’ve set up makes adding anything new a long process, so I’d like to move to Web Services. At some point I’ll get a certificate and use SSL, but right now I’m just worrying about making sure users are authenticated to do what they’re trying to do.

The original schema had users entering their username and password at the start and the server simply remembered who they were for the life of their connection. Now that I’m moving to stateless web services, I’ll probably have to hand this information over with every request. I’m fairly new to web services, did some searching around the net, and found two suggestions for how to do this. One was just to send an authentication object with each function call, and the other was to stick username and password info in the SOAP header. I’m a little confused as to which would work better since either way you’re still just doing a string compare on the server side (well, in the case of a password, a hash and then a compare).

Also, while the client side of this is a WPF application, in the future I’d like to make a browser enabled version. Would my decision of how this is done affect future web efforts? Thoughts!

Edit: I should mention that there are a few levels of access. The lower levels can only access certain functions, where as the highest level can access them all. I assumed this is something I would have to verify in the functions themselves, but if there’s a built in way to handle this easier I’m all ears.

  • 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. Editorial Team
    Editorial Team
    2026-06-10T16:11:10+00:00Added an answer on June 10, 2026 at 4:11 pm

    You should opt for standard implementation, something from WS-Security, which means passing authentication data outside of message body. That’s reasonable because security and message contents represent two separate concerns that should not be mixed; you should be able to simply swap out one security option for another without changing message structure.

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

Sidebar

Related Questions

I have a Client program by tcp connection that send data to a server.
I have a client/server program that attempts to send and receive an object. There
In sockets I have written the client server program. First I tried to send
I have a java client program that uses mdns with service discovery to find
Ok, so I've got an Open Source Java client/server program that uses packets to
I have a client/server program and I want to make sure that its components
I have wrote a server program that can handle multiple client by using fork().
i have a question about sockets/clients.... I just finished writing a client server program
So I have a client and a server Java program. The client uses Java
I have a client/server program in TCP written in C, and I would like

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.