0

我有可以通过使用ikvmin访问的 java 对象.net.object成功填充和操作 in WCF layer。但是在从 WCF 检索对象到客户端后,会填充客户端错误。

"An error occurred while receiving the HTTP response to http://localhost:8732/Design_Time_Addresses/wcf/Service1/. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details".

我正在使用wsHttpbinding. 请帮助解决我的问题。

4

1 回答 1

0

由于缺少需要与 wcf 客户端通信的 [DataMember]、][DataContract] 属性的指示而发生错误。

在 WCF 中使用 .net 中的 ikvm 对象是不可能的。您可以填写它,但不能将其发送给客户端。因为 ikvm 对象没有 [datacontract],[Datamember] 属性。所以我的意见是,如果你使用 .net WCF,就不要使用 ikvm ......

于 2011-11-03T06:28:22.153 回答