11
I have a solution with 3 projects:
- ConsoleClient (for testing WCF service)
- ServiceLibrary (for WCF)
- Web (asp.net mvc project)
I have done some settings in my ServiceLibrary project in app.config
<system.serviceModel>
<services>
<service name="MrDAStoreJobs.ServiceLibrary.AdvertisementService">
<clear />
<endpoint address="http://localhost:8050/ServiceLibrary/basic" binding="basicHttpBinding" bindingConfiguration="" contract="MrDAStoreJobs.ServiceLibrary.Interface.IAdvertisementService" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8050/Design_Time_Addresses/MrDAStoreJobs/ServiceLibrary/AdvertisementService/" />
</baseAddresses>
</host>
</service>
</services>
<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>
</system.serviceModel>
When I run this project, everythings seems normally using wcf test client.
Now, i have also added a WcfDataServiceTest.svc in my Web project(mvc) to host my wcf service.
So, my questions are:
- what configuration do I need for my web project (web.config) to actually host this wcf service?
- And then I want to run the console app to test i