I'm trying to understand why I have standard endpoints defined in the config file because I'm under the impression that the endpoints I have defined under services should be used. If I comment standard endpoint, then when I run service, I get message "No Endpoint found"
So do I need both? If I do, how standardendpoints are used? Thanks,
<standardEndpoints>
<webHttpEndpoint>
<standardEndpoint name="" helpEnabled ="true"
automaticFormatSelectionEnabled ="true"></standardEndpoint>
</webHttpEndpoint>
</standardEndpoints>
<services>
<service name ="SimRestService" behaviorConfiguration ="MyServiceBehavior">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="defaultBasicHttpBinding"
contract="SimRestServices.ISimRestService" />
</service>
Can you also post the service and servicecontract code? I suspect your service is written as a REST service (having [WebGet] and/or [WebInvoke] attributes on your service methods).
REST methods require an endpoint with a webHttpBinding. The endpoint you provide has a basicHttpBinding, so that doesn't apply.