asmx 서비스에 연결하도록 구성된 클라이언트가 있습니다. 고객에게 구성을 업데이트하도록 요청하고 싶지는 않지만 WCF를 사용하도록 서비스를 업그레이드하고 싶습니다. WCF가 이것을 지원하는지 아는 사람 있습니까? 그렇다면 구성 파일은 어떻게 생겼을까요?클라이언트 호출 .asmx, Server에서 WCF 끝점을 노출합니다.
우리의 ASMX 서비스는 다음과 같습니다
<bindings>
<binding name="ATransactionSoap" 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="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://.../atransaction.asmx" binding="basicHttpBinding" bindingConfiguration="ATransactionSoap" contract="ATransactionSoap" name="ATransactionSoap" />
포맷하려면 코드를 선택하고 Control-K를 누르십시오. –