WCF Web Service error: “Service endpoint binding not using HTTP protocol”?

后端 未结 8 930
无人及你
无人及你 2021-01-04 12:58

I\'ve got a simple WCF service that has worked fine while I\'ve been testing on my dev machine.

Now I\'ve moved the web service to a web server, and I\'m running the

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-04 13:24

    WCF also needs to have concrete classes to pass data around (since it all needs to be XML-serializable and must be capable of being expressed in XML schema - interfaces aren't well suited).

    I believe it won't be able to pass back an IEnumerable - try using a List (or an T[] array) or a concrete type instead.

    Any luck?

提交回复
热议问题