• Status: Solved
  • Priority: High
  • Security: Public
  • Views: 136
  • Last Modified:

C# 2015 web service oasis usernametoken


I have to implement in a web service header the oasis usernametoken security.

I have seen some documentation that implement it using Microsoft.Web.Services3, but in VB 2005.

What is the Equivalent of Microsoft.Web.Services3 in VB 2015?, are there any example on how to implemented this type of security in VB 2015?
Jose Collazo
Jose Collazo
1 Solution
Dan McFaddenSystems EngineerCommented:
The functionality of Microsoft.Web.Services3 was integrated into Web Services Enhancements for Microsoft .NET (WSE) v3.0.

VS Forum Link:  https://social.msdn.microsoft.com/Forums/vstudio/en-US/bcc0a847-2ff0-42d6-8c8d-64cd7f30cff5/whats-the-replacment-for-microsoftwebservices3dll-in-net-4x?forum=netfxsetup

WSE3 has been replaced by Windows Communication Foundation... aka:  WCF

Reference link:  https://blogs.msdn.microsoft.com/distributedservices/2012/10/25/web-service-enhancements-wse-supported-environments/

So any development in .NET v3.0+ should be done in WCF.  Below are several links to Authentication in WCF:

- Authentication and Authorization in WCF Services #1 = https://msdn.microsoft.com/en-us/library/ff405740.aspx
- Authentication and Authorization in WCF Services #2 = https://msdn.microsoft.com/en-us/library/ff406125.aspx
- WCF Transport Security = https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/transport-security-with-basic-authentication

The last link has a link table on the left to all the various implementations of security in WCF Services.

Here is an article which explains what the issue with the WS-Security header is and what WCF doesn't directly support but can be implemented.

Link:  https://weblog.west-wind.com/posts/2012/Nov/24/WCF-WSSecurity-and-WSE-Nonce-Authentication

As well as a forum thread on MSDN:  https://social.msdn.microsoft.com/Forums/azure/en-US/e2d78087-9b60-4a78-81eb-2b1ac4ea7194/how-to-create-a-custom-wsse-header-usernametokennonce-for-webservice-using-nonwcf-code?forum=wcf

Jose CollazoAuthor Commented:
Thanks Dan,

I will review the links in your answer and let you know.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now