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

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -