Xaisoft
Xaisoft

Reputation: 46651

I can't assign a username and password when I generate a wcf proxy using svcutil?

If I create a new project and add a wcf service reference to it,I can use the client it generates to assign the username and password to ClientCredentials, but if I create the proxy using svcutil.exe and the wsdl, the proxy code it generates doesn't allow me to set the username and password.

Upvotes: 1

Views: 471

Answers (1)

carlosfigueira
carlosfigueira

Reputation: 87308

It should just work; generated proxies inherit from ClientBase<T>, which has a ClientCredentials property. If this happens to you again, please post the generated class signature, and we can look at it.

Upvotes: 1

Related Questions