.NET SAP Connection Authentication via WEB Service
Posted
by mehmet6parmak
on Stack Overflow
See other posts from Stack Overflow
or by mehmet6parmak
Published on 2010-04-13T12:16:15Z
Indexed on
2010/04/13
12:23 UTC
Read the original article
Hit count: 642
Hi,
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:
<basicHttpBinding>
<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">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="">
<extendedProtectionPolicy policyEnforcement="Never" />
</transport>
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
Also, What problems will i face with? I do not want to use SAP .NET Connector. Thanks...
© Stack Overflow or respective owner