Results 1 to 4 of 4

Thread: WCF - endpoint specification - for Azure

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148

    WCF - endpoint specification - for Azure

    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 :-
    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>
    The question is - how do I know what endpoint to use to get to that end point once it is hosted?

    i.e. on the client -
    Code:
        <client>
          <endpoint address="http://localhost:4165/QueryHandlerService.svc"
            binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IQueryHandlerService"
            contract="QueryHandlerServiceReference.IQueryHandlerService"
            name="BasicHttpBinding_IQueryHandlerService" />
        </client>
    How do I know what to replace http://localhost:4165/QueryHandlerService.svc with?
    Last edited by Merrion; Apr 7th, 2014 at 04:02 PM. Reason: Fixed tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width