title: .NET SAP Connection Authentication via WEB Service
body: <p>I am trying to connect to a web service served by SAP and i have authentication problem.</p>
  
  <p>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)</p>
  
  <p>Then when i tried to call a method from the serviceclien object i got the error message below:</p>
  
  <pre><code>The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The
  authentication header received from the server was 'Basic realm="SAP Web Application 
  Server &lt;hostname&gt;"'.
  </code></pre>
  
  <p>Web Config Related Part:</p>
  
  <pre><code>&lt;basicHttpBinding&gt;
  &lt;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"
   useDefaultWebProxy="true"&gt;
   &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
    maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;      
   &lt;security mode="None"&gt;       
    &lt;transport clientCredentialType="None" proxyCredentialType="None"
     realm=""&gt;
     &lt;extendedProtectionPolicy policyEnforcement="Never" /&gt;
    &lt;/transport&gt;       
    &lt;message clientCredentialType="UserName" algorithmSuite="Default" /&gt;
   &lt;/security&gt;
  &lt;/binding&gt;
  </code></pre>
  
  <p>
      </p>
  
  <p>Also, What problems will i face with? I do not want to use SAP .NET Connector.
  Thanks...</p>