The remote server returned an error: (401) Unauthorized


I’m not able to authenticate request when using wsdl however it works perfectly through rest

using mvc 5

anyone can help please


When using Visual Studio, you must use the command-line wsdl.exe to build the local interface stubs, and then add that generated file to your project. (I don’t believe the integrated wizard within VS to add a web service directly to your project has ever worked for us.)


Thank you, that works very well now :smiley: