Add Service Reference in Presentation Layer

Jun 6, 2012 at 1:44 PM

Hi, I am in a product which is based on this Layered Archicture. i have implemented list of methods in upto service layer here afer that i host my services in IIS.I have three services are namely EmailService,ApplicationService and GeneralSetupService and i have added three service reference in UI.Process in presentation Layer perfectly. While adding service reference client proxy code generate in App.config in UI.Process for only EmailService and ApplicationService but not generated client proxy code to GeneralSetupService.These are all i can't call GeneralSetup service methods to UI.Process.

Client proxy code needed to past to Web.config in UI.Web in presentation Layer. My Project. Hosts.Web Web.Config code is below

    <serviceHostingEnvironment multipleSiteBindingsEnabled="true"> 
      <service behaviorConfiguration="ServiceBehavior"   name="EBMS.Services.EmailService"> 
        <endpoint address="" binding="wsHttpBinding" contract="EBMS.Services.Contracts.IEmailService"  name="Email"  /> 
      <service behaviorConfiguration="ServiceBehavior"  name="EBMS.Services.ApplicationService"> 
        <endpoint address="" binding="wsHttpBinding" contract="EBMS.Services.Contracts.IApplicationService"  name="Application"  /> 
      <service behaviorConfiguration="ServiceBehavior"  name="EBMS.Services.GeneralSetupService"> 
        <endpoint address="" binding="wsHttpBinding" contract="EBMS.Services.Contracts.IGeneralSetupService"  name="GeneralSetup"  /> 
        <behavior name="ServiceBehavior"> 
          <!-- 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="true" /> 

But i can able to browse call GeneralSetupService.svc and Where and what i have missed in this scenario?


Aug 1, 2012 at 12:41 AM


Are you able to browse to the WSDL of the GeneralSetupService.svc?

Also, are you adding to the right URL?

Just some thoughts only because this does appear to be very strange incident.