2010-04-13 9 views
2

SAP에서 서비스하는 웹 서비스에 연결하려고하는데 인증 문제가 있습니다..NET SAP 연결 웹 서비스를 통한 인증

은 단순히 (OK 자격 증명을 요청 클릭 한 후 나는 그들을 제공). 서비스에 대한 WSDL URL을 제공하고 확인을 클릭, 서비스 참조 추가를 선택, 마우스 오른쪽 버튼을 클릭 프로젝트에서 서비스를 추가 내가하려고 할 때 다음

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> 

난 아래의 오류 메시지를받은 serviceclien 객체에서 메소드를 호출

또한 어떤 문제가 발생합니까? SAP .NET Connector를 사용하고 싶지 않습니다. 감사 ...

답변

0

SAP의 웹 서비스 탐색기로 이동하십시오. WSDL을 다운로드하면 세 부분으로 나옵니다. 이를 서로 연결하고 새 WSDL에 대한 .NET 프록시를 작성하십시오. 이 서비스는 기본 인증을 요구합니다. SAP에서 서비스를 호출하고 백엔드를 호출 할 권한이있는 사용자가 필요합니다. 기본 인증 HTTP 헤더를 서비스에 추가하십시오.