web services - Multiple EndPoint in WCF: Json and Soap -
i trying configure wcf service support multiple endpoint(json , soap) json end not working. here web.config. if can me fix config or show me downloadable working sample, appreciated.
<system.servicemodel> <behaviors> <endpointbehaviors> <behavior name="jsonbehavior"> <webhttp/> </behavior> </endpointbehaviors> <servicebehaviors> <behavior> <servicemetadata httpgetenabled="true" httpsgetenabled="true"/> <servicedebug includeexceptiondetailinfaults="false"/> </behavior> </servicebehaviors> </behaviors> <bindings> <basichttpbinding> <binding name="config_basichttpbinding" maxbuffersize="1000000" maxreceivedmessagesize="1000000"> <readerquotas maxbytesperread="1000000" maxarraylength="1000000" maxdepth="1024" maxstringcontentlength="1000000"/> </binding> </basichttpbinding> <webhttpbinding> <binding name="config_webhttpbinding" maxbuffersize="1000000" maxreceivedmessagesize="1000000"> <readerquotas maxbytesperread="1000000" maxarraylength="1000000" maxdepth="1024" maxstringcontentlength="1000000"/> </binding> </webhttpbinding> </bindings> <protocolmapping> <add binding="basichttpsbinding" scheme="https" /> </protocolmapping> <services> <service name="la.api.laservice"> <endpoint address="json" behaviorconfiguration="jsonbehavior" binding="webhttpbinding" bindingconfiguration="config_webhttpbinding" contract="la.api.ilaservice" /> <endpoint address="soap" binding="basichttpbinding" bindingconfiguration="config_basichttpbinding" contract="la.api.ilaservice" /> </service> </services> <servicehostingenvironment aspnetcompatibilityenabled="true" multiplesitebindingsenabled="true" />
Comments
Post a Comment