1. 配置 IIS 绑定 IP地址
2. 在 SL 中引用 WebService
3. 在需要调用 WebService 的地方写下列代码:
WCF :

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

传统 WebService:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

这样就可以动态的调用 webservice 了. 完全不需要 ServiceReferences.ClientConfig 文件了.