I really managed to achieve this using WSE. The funny thing is that the provider’s web services will not work with WSE 3.0, but they did it with WSE 2.0. Here are the steps
- Get WSE 2.0
- Add web link to the project
- In the implementation of the Web Reference proxy server:
Replace
public partial class UserWS : System.Web.Services.Protocols.SoapHttpClientProtocol
public partial class UserWS : Microsoft.Web.Services2.WebServicesClientProtocol
- Before calling the web service:
Set authentication information
UsernameToken token = new UsernameToken("user", "pwd", PasswordOption.SendPlainText); yourProxy.RequestSoapContext.Security.Tokens.Add(token);
And this! FYI, the provider is a Blackboard instance.
source share