在WCF服务和客户端使用者之间传输数据 [英] Transfere Data Between WCF service and Client Consumer

查看:74
本文介绍了在WCF服务和客户端使用者之间传输数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在另一个WCF Web服务中使用了现成的WCF Web服务,并且在控制台应用程序中使用了最后一个.

一切都很好,当我使用断点调试代码时,最后一个服务从第一个服务中获取数据,但是当它返回数据对象时,调试会话终止,并且不会再次返回到客户端控制台应用程序.

注意:第一个服务不是我的,我只是在另一个服务中使用它.

注2:返回的数据不是太大,无法返回到客户端控制台应用程序.

有帮助吗?

感谢&最好的问候,

阿卜杜勒法塔赫

解决方案

您的结构是否遵循以下方案?

有ServiceA,ServiceB和Console应用程序. ServiceB调用ServiceA,控制台应用程序调用ServiceB.控制台应用程序从ServiceB获得了预期的解决方案,但处理程序未返回到控制台应用程序.

您能否在控制台应用程序和服务联系界面以及ServiceB中的类上与我们共享相关代码?

要检查它是否与ServiceA相关,我建议您尝试注释掉与ServiceA相关的代码,从ServiceB返回生成的值,这个问题仍然存在吗?


Hi,

I have consumed a readymade  WCF web service inside another WCF web service, and I have consumed the last one inside Console Application.

Everything is good and when I debug the code using breakpoints the last service brings the data from the first serivce, but when it returns the data object, the debug session terminated and it does not come back to the client Console Application again.

Note: The first service is not mine, I just consume it in another service.

Note 2: The returned data are not too big to be returned to the client Console application.

Any help?

Thanks & Best regards,

Abdelfattah

解决方案

Did your structure follow below scenario?

There are ServiceA, ServiceB and Console application. ServiceB calls ServiceA, console application calls ServiceB. Console Application get the expected resolve from ServiceB, but the handler did not return to console application.

Could you share us related code in console application and service contact interface and class in ServiceB?

To check whether it is related with ServiceA, I would suggest you try to comment out the ServiceA related code, return a generated value from ServiceB, will this issue still exist?


这篇关于在WCF服务和客户端使用者之间传输数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆