windows通信基础(服务器配置文件)

Continue  1 xml version="1.0" encoding="utf-8"  ?>  2 configuration >
Continue

 1 xml version="1.0" encoding="utf-8"  ?>
 2 < configuration >
 3    < system.serviceModel >
 4
 5      < services >
 6       
 7        < service  name ="Zhgf.Services.UserInfo"  behaviorConfiguration ="MyServiceTypeBehaviors"   >
 8         
 9         
10          < endpoint  contract ="Zhgf.IServices.IUserInfo"  binding ="wsHttpBinding"  address =""   />
11         
12          < host >
13            < baseAddresses >
14              < add  baseAddress ="http://localhost:8080/WCFDemo/Services" />
15            baseAddresses >
16          host >
17        service >
18      services >
19
20      < behaviors >
21        < serviceBehaviors >
22          < behavior  name ="MyServiceTypeBehaviors"   >
23           
24            < serviceMetadata  httpGetEnabled ="true"   />
25          behavior >
26        serviceBehaviors >
27      behaviors >
28
29    system.serviceModel >
30 configuration >
31

转载于:https://www.cnblogs.com/cntangwen/archive/2009/08/23/1552298.html