So - I have my web service set up that is going to listen on the query side of my CQRS architecture. The idea is that the call uses REST and the parameter passed in (in the URI) can be turned into the query definition instance.
My web.config has as follows :-
The question is - how do I know what endpoint to use to get to that end point once it is hosted?Code:<system.serviceModel> <behaviors> <serviceBehaviors> <behavior> <!-- To avoid disclosing metadata information, set the value below to false 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> </behaviors> <services > <service name="QueryHandlerWCFServiceWebRole.QueryHandlerService" > <endpoint kind="webHttpEndpoint" contract="QueryHandlerWCFServiceWebRole.IQueryHandlerService" /> </service> </services> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> <routing /> </system.serviceModel>
i.e. on the client -
How do I know what to replace http://localhost:4165/QueryHandlerService.svc with?Code:<client> <endpoint address="http://localhost:4165/QueryHandlerService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IQueryHandlerService" contract="QueryHandlerServiceReference.IQueryHandlerService" name="BasicHttpBinding_IQueryHandlerService" /> </client>




Reply With Quote