다른 바인딩을 가진 3 개의 끝점을 제공하려는 웹 서비스를 만들었습니다. 1은 BasicHttpBinding, 2있는 wsHttpBinding, 내가 서비스 참조를 만들 때WebHttpBinding이 클라이언트에 도달하지 않습니다.
는, 내가 만든 유일한하여은 BasicHttpBinding와 엔드 포인트와있는 wsHttpBinding 바인딩을 얻을 3으로 WebHttpBinding. 나는 webHttpBinding을 얻지 못했다. 무엇이 잘못된 것일 수 있습니다.
다음은 web.config의 serviceModel 노드 구조입니다.
<system.serviceModel>
<diagnostics>
<messageLogging logEntireMessage="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true"/>
</diagnostics>
<services>
<service behaviorConfiguration="VersionTolerance.Service1Behavior" name="BookShop.BookShopService">
<endpoint address="sadha" binding="basicHttpBinding" contract="BookShop.IBookShopService" />
<endpoint address="ws" binding="wsHttpBinding" contract="BookShop.IBookShopService" >
</endpoint>
<endpoint address="web" binding="webHttpBinding" behaviorConfiguration="webHttpBehavior"
contract="BookShop.IBookShopService" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:49654/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="VersionTolerance.Service1Behavior">
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="webHttpBehavior">
<webHttp/>
</behavior>
</endpointBehaviors>
</behaviors>
감사합니다. @marc_s, 귀하의 답변에 동의하고 싶습니다. 하지만 그것에 클라이언트를 생성하여 webHttpBinding을 경험하고 싶습니다. 평신도 용어로,이 서비스에 대한 프록시를 만들고 Visual Studio에서이 서비스를 사용하려면 어떻게해야합니까? – SaravananArumugam
@SaravananArumugam : "정상적인"webHttpBinding을 사용하면 ** 클라이언트 측 프록시를 얻을 수 없습니다 ** - 그런 것은 없습니다. REST 기반 서비스에 대한 클라이언트 측 프록시를 원할 경우 ** WCF 데이터 서비스 ** (여기를 참조하십시오 : http://www.lhotka.net/weblog/CSLA4Version41Release.aspx)를 만들어야합니다. –