Compare Page Revisions
« Older Revision - Back to Page History - Newer Revision »
using System.ServiceModel
ServiceContract
OperationContract
app.config
<configuration> <system.serviceModel> <!--For debugging purposes set the includeExceptionDetailInFaults attribute to true--> <behaviors> <serviceBehaviors> <behavior name="behavior0"> <serviceMetadata httpGetEnabled="True"/> <serviceDebug includeExceptionDetailInFaults="False" /> </behavior> </serviceBehaviors> </behaviors> <services> <service name="Microsoft.Samples.GettingStarted.CalculatorService" behaviorConfiguration="behavior0" > <endpoint address="http://localhost/ServiceModelSamples/CalculatorService" binding="basicHttpBinding" contract="Microsoft.Samples.GettingStarted.ICalculator" /> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> <host> <baseAddresses> <add baseAddress="http://localhost/ServiceModelSamples/CalculatorService" /> </baseAddresses> </host> </service> </services> </system.serviceModel> </configuration>
ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.