Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我发送请求时,我在其中设置了一些值,并且在响应时它应该包含该值我们如何在 WCF 中实现这一点?有人可以举例解释吗?另一种情况是,如果我的客户发送请求以服务该服务可能会调用另一个服务等等在响应时如何复制响应中的请求信息?
如果您在请求和响应中使用 DataContract 类,则只需从请求中读取值并将其添加到响应中。