C#  2015 web service oasis usernametoken

Jose Collazo
Jose Collazo used Ask the Experts™

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?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Systems Engineer
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



Thanks Dan,

I will review the links in your answer and let you know.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial