WCF接口用法
我的接口里面是怎样写的:
[OperationContract]
[WebGet(UriTemplate = "GetImageInfo/{name}", ResponseFormat = WebMessageFormat.Json)]
CompositeType GetImageInfo(string name);
为什么我访问http://localhost:4041/Service1.svc就可以
但是这样访问就显示无法找到页面http://localhost:4041/Service1.svc/GetImageInfo/aaa
[OperationContract]
[WebGet(UriTemplate = "GetImageInfo/{name}", ResponseFormat = WebMessageFormat.Json)]
CompositeType GetImageInfo(string name);
为什么我访问http://localhost:4041/Service1.svc就可以
但是这样访问就显示无法找到页面http://localhost:4041/Service1.svc/GetImageInfo/aaa
...全文


