.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Imran Ghani
Sohaib Khalid

Home >> Code Snippets >> XML >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

authentication mechanism within an Authentication SOAP header.

Posted By:Jegan R       Posted Date: November 03, 2010    Points: 15    Category: XML    URL: http://www.dotnetspark.com  

The following code example is an XML Web service client that passes the necessary credentials for a custom SOAP header authentication mechanism within an Authentication SOAP header

    // Create a new instance of an XML Web service proxy class.
    SecureWebService s = new SecureWebService();
    // Create the Authentication SOAP header and set values.
    Authentication a = new Authentication();
    a.User = user.Value;
    a.Password = password.Value;
    // Assign the Header.
    s.AuthenticationValue = a;
      string result = s.ValidUser();
      span1.InnerHtml = result



Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend