Archived Forum Post

Index of archived forum posts

Question:

Password Type

Jan 18 '17 at 18:50

I have a simple SOAP request but the server is expecting the Password Type to be PasswordText. The request with SOAP-UI (if WSS-Password Type=PasswordText in the property panel) works. I'm stumped on setting the Password Type in HTTP Chilkat component. Thanks for any Help


Answer

The WSS-Password is just part of the SOAP message (XML) that is the body of the HTTP request..

See https://docs.oracle.com/cd/E21455_01/common/tutorials/authn_ws_user.html


Answer

The problem is that it seems I have to add WS-Security UserNamePassword Token to the outgoing request. To be honest I have no idea how to do that.


Answer

I created an example for you, but it requires Chilkat v9.5.0.66 (I'm also going to post another example that doesn't require computing a hash, and simply adds the password directly..)

Android: SOAP WS-Security UsernameToken

Classic ASP: SOAP WS-Security UsernameToken

C: SOAP WS-Security UsernameToken

C++: SOAP WS-Security UsernameToken

C#: SOAP WS-Security UsernameToken

C# UWP/WinRT: SOAP WS-Security UsernameToken

DataFlex: SOAP WS-Security UsernameToken

Delphi ActiveX: SOAP WS-Security UsernameToken

Delphi DLL: SOAP WS-Security UsernameToken

.NET Core C#: SOAP WS-Security UsernameToken

Excel: SOAP WS-Security UsernameToken

Visual FoxPro: SOAP WS-Security UsernameToken

Java: SOAP WS-Security UsernameToken

Lianja: SOAP WS-Security UsernameToken

MFC: SOAP WS-Security UsernameToken

Mono C#: SOAP WS-Security UsernameToken

Node.js: SOAP WS-Security UsernameToken

Objective-C: SOAP WS-Security UsernameToken

Perl: SOAP WS-Security UsernameToken

PHP ActiveX: SOAP WS-Security UsernameToken

PHP Extension: SOAP WS-Security UsernameToken

PowerBuilder: SOAP WS-Security UsernameToken

PowerShell: SOAP WS-Security UsernameToken

PureBasic: SOAP WS-Security UsernameToken

Python: SOAP WS-Security UsernameToken

Ruby: SOAP WS-Security UsernameToken

SQL Server: SOAP WS-Security UsernameToken

Swift: SOAP WS-Security UsernameToken

Tcl: SOAP WS-Security UsernameToken

Unicode C: SOAP WS-Security UsernameToken

Unicode C++: SOAP WS-Security UsernameToken

Visual Basic 6.0: SOAP WS-Security UsernameToken

VB.NET: SOAP WS-Security UsernameToken

VB.NET UWP/WinRT: SOAP WS-Security UsernameToken

VBScript: SOAP WS-Security UsernameToken

Xojo Plugin: SOAP WS-Security UsernameToken


Answer

Here's the other example that uses the password directly rather than a password digest:

Android: SOAP WS-Security Username Authentication

Classic ASP: SOAP WS-Security Username Authentication

C: SOAP WS-Security Username Authentication

C++: SOAP WS-Security Username Authentication

C#: SOAP WS-Security Username Authentication

C# UWP/WinRT: SOAP WS-Security Username Authentication

DataFlex: SOAP WS-Security Username Authentication

Delphi ActiveX: SOAP WS-Security Username Authentication

Delphi DLL: SOAP WS-Security Username Authentication

.NET Core C#: SOAP WS-Security Username Authentication

Excel: SOAP WS-Security Username Authentication

Visual FoxPro: SOAP WS-Security Username Authentication

Java: SOAP WS-Security Username Authentication

Lianja: SOAP WS-Security Username Authentication

MFC: SOAP WS-Security Username Authentication

Mono C#: SOAP WS-Security Username Authentication

Node.js: SOAP WS-Security Username Authentication

Objective-C: SOAP WS-Security Username Authentication

Perl: SOAP WS-Security Username Authentication

PHP ActiveX: SOAP WS-Security Username Authentication

PHP Extension: SOAP WS-Security Username Authentication

PowerBuilder: SOAP WS-Security Username Authentication

PowerShell: SOAP WS-Security Username Authentication

PureBasic: SOAP WS-Security Username Authentication

Python: SOAP WS-Security Username Authentication

Ruby: SOAP WS-Security Username Authentication

SQL Server: SOAP WS-Security Username Authentication

Swift: SOAP WS-Security Username Authentication

Tcl: SOAP WS-Security Username Authentication

Unicode C: SOAP WS-Security Username Authentication

Unicode C++: SOAP WS-Security Username Authentication

Visual Basic 6.0: SOAP WS-Security Username Authentication

VB.NET: SOAP WS-Security Username Authentication

VB.NET UWP/WinRT: SOAP WS-Security Username Authentication

VBScript: SOAP WS-Security Username Authentication

Xojo Plugin: SOAP WS-Security Username Authentication