【问题标题】:.NET SAP Connection Authentication via WEB Service通过 WEB 服务进行 .NET SAP 连接身份验证
【发布时间】:2010-04-13 12:16:15
【问题描述】:

我正在尝试连接到 SAP 提供的 Web 服务,但我遇到了身份验证问题。

我只是通过右键单击项目添加服务,选择添加服务引用,为服务提供 WSDL url 并单击确定。(单击确定后询问凭据,我提供了它们)

然后,当我尝试从 serviceclien 对象调用方法时,我收到以下错误消息:

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>"'.

网页配置相关部分:

<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>

另外,我会遇到什么问题?我不想使用 SAP .NET 连接器。 谢谢...

【问题讨论】:

    标签: .net authentication service sap


    【解决方案1】:

    转到 SAP 上的 Web 服务导航器。下载 WSDL,它将分为三个部分。将它们拼接在一起并针对新的 WSDL 构建一个 .NET 代理。该服务似乎要求您进行基本身份验证。您需要 SAP 上的用户,该用户有权调用该服务并调用它的后端。向您的服务添加基本身份验证 HTTP 标头。

    【讨论】:

      猜你喜欢
      • 2012-02-10
      • 1970-01-01
      • 1970-01-01
      • 2011-07-05
      • 2013-02-23
      • 1970-01-01
      • 1970-01-01
      • 2014-06-08
      • 1970-01-01
      相关资源
      最近更新 更多