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 3392466
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:55:26+00:00 2026-05-18T03:55:26+00:00

An app I’m working on interfaces with an existing application running on a remote

  • 0

An app I’m working on interfaces with an existing application running on a remote box. Communicaitons with the remote app are via its public web services. I’ve been asked to build an enhancement which will involve a client making use of the web service to handle sensitive data which will need to be transmitted securely.

Could anyone give me some pointers on how best to proceed?

  • 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-05-18T03:55:27+00:00Added an answer on May 18, 2026 at 3:55 am

    To start, you should be using SSL and reject any requests that are not using it. This will encrypt data as it’s being transmitted over the Internet.

    If you are using SOAP, you could define a custom header in your service that takes a username / password. Then, for the first line in each public method, validate the username and password against a database. If successful, set the HttpContext.Current.User appropriately, and your service will tie in nicely with the built in Asp.NET infrastructure.

    ADDED: Below is a sample SoapHeader that includes a username / password for authentication.

    // define the header
    public class AuthenticationHeader : SoapHeader
    {
        public String UserName { get; set; }
        public String Password { get; set; }
    }
    
    // your service
    public class PublicWebService : WebService
    {
        // defines an instance of the header as part of the service
        public AuthenticationHeader Authentication;
    
        private void Authenticate()
        {
            // validate the username / password against a database
            // set the HttpContext.Current.User if successful.
            // Maybe throw a SoapException() if authentication fails
        }
    
        // Notice the SoapHeader("Authentication") attribute...
        // This tells ASP.Net to look for the incoming header for this method...
        [WebMethod]
        [SoapHeader("Authentication")]
        public void PublicMethod1()
        {
            Authenticate();
    
            // your code goes here
        }
    
        // Expose another method with the same authentication mechanism
        [WebMethod]
        [SoapHeader("Authentication")]
        public void PublicMethod2()
        {
            Authenticate();
    
            // your code goes here
        }
    }
    

    Now, if you run the wsdl tool, the generated proxy class will include the defined authentication header:

    PublicWebService s = new PublicWebService();
    s.Authentication = new AuthenticationHeader();
    s.Authentication.UserName = "xxxxxxxx";
    s.Authentication.Password = "yyyyyyyy";
    s.PublicMethod1();
    s.PublicMethod2();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

App A has this BroadcastReceiver in its manifest (within <application>): And this receiver: public
My app has many controls on its surface, and more are added dynamically at
In order to apply a triggered animation to all ToolTip s in my app,
App:MFC backed by oracle Unit testing framework:googletest I am going to unit testing the
App Description: I have a UIWebview and a Toolbar beneath it. A button on
App.config: <add key=SaveDraftPath value=C:\Drafts\/> C#: var saveDraftPath = ConfigurationManager.AppSettings[SaveDraftPath]; var sfDialog = new SaveFileDialog();
App Engine only allows you to use these formats for XMPP addresses: app-id@appspot.com anything@app-id.appspotchat.com
An app I'm writing always crashes on a clients computer, but I don't get
I want use html5's new tag to play a wav file (currently only supported
App_1 has a view and a template for this view. It would like to

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.