Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Authentication problem with Web Services while connecting from .Net Applica


I am trying to connect to a web service served by SAP and i have authentication problem.

I simply added the service by right clicking project, selecting add service reference, giving WSDL url for the service and clicking OK.(After clicking ok asked for credentials and i provided them)

Then when i tried to call a method from the serviceclien object i got the error message below:

The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The

authentication header received from the server was 'Basic realm="SAP Web Application

Server <hostname>"'.

Web Config Related Part:

<binding name="binding" closeTimeout="00:01:00"
 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
 allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
 maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
 messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
 <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
  maxBytesPerRead="4096" maxNameTableCharCount="16384" />      
 <security mode="None">       
  <transport clientCredentialType="None" proxyCredentialType="None"
   <extendedProtectionPolicy policyEnforcement="Never" />
  <message clientCredentialType="UserName" algorithmSuite="Default" />

Also, What problems will i face with? I do not want to use SAP .NET Connector. Thanks...

Former Member
Not what you were looking for? View more on this topic or Ask a question