A
Andy
I have windows app calling WS via proxy object. There is UsernameToken
element in SOAP header of SOAP message returned by WS. When I'm calling WS,
System.Configuration.ConfigurationException is thrown. Exception's message
is
'No <passwordProvider> entry was found in the configuration file. User name
tokens cannot be authenticated'. Is any way how to sort out this problem?
Here is code fragment:
public class WSProxyClass : Microsoft.Web.Services.WebServicesClientProtocol
{ ....}
WSProxyClass WSProxy = new WSProxyClass();
UsernameToken userToken = new
UsernameToken("usr","psw",PasswordOption.SendHashed);
WSProxy.RequestSoapContext.Security.Tokens.Add(userToken);
WSProxy.RequestSoapContext.Security.Elements.Add(new Signature(userToken));
XmlNode Node = WSProxy.Method();
TIA
element in SOAP header of SOAP message returned by WS. When I'm calling WS,
System.Configuration.ConfigurationException is thrown. Exception's message
is
'No <passwordProvider> entry was found in the configuration file. User name
tokens cannot be authenticated'. Is any way how to sort out this problem?
Here is code fragment:
public class WSProxyClass : Microsoft.Web.Services.WebServicesClientProtocol
{ ....}
WSProxyClass WSProxy = new WSProxyClass();
UsernameToken userToken = new
UsernameToken("usr","psw",PasswordOption.SendHashed);
WSProxy.RequestSoapContext.Security.Tokens.Add(userToken);
WSProxy.RequestSoapContext.Security.Elements.Add(new Signature(userToken));
XmlNode Node = WSProxy.Method();
TIA