web services - SoapUI basic authentication to c# code -


i have problem web service want connect to. in soapui used basic authentication username , password (domain empty), , changed wss-password type passwordtext , without problem connect web service. when try connect using c# code:

webservice service = new webservice(); service.clientcredentials.username.username = "user"; service.clientcredentials.username.password = "pass"; service.somemethod(); 

it returns "forbidden" error.


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -