1、能被ajax get
2、能post
3、wcf正常調用
實作:
接口:
配置:
endpoint配置兩個一個web使用webHttpBinding,一個給wcf
調用:
wcf正常調用位址:http://xxxxxx:xxxx/JsonTestService.svc
post:http://xxxxxx:xxxx/JsonTestService.svc/PostTest
get:http://xxxxxx:xxxx/JsonTestService.svc/GetTest/2
例如: