How can I communicate with WCF from Delphi using Named Pipes Binding

人走茶凉 提交于 2020-01-01 12:12:11

问题


Can I use Delphi 2007 to communicate with a WCF service using the netnamedpipebinding ?

If so, then how?


回答1:


I suggest that you create a COM-visible proxy for your service using .NET (and WCF!), then consume it from Delphi as you would any COM object.

There are several reasons why implementing a native client for a WCF service listening on a NetNamedPipesBinding endpoint is extremely complex. See http://blogs.charteris.com/blogs/chrisdi for more details.




回答2:


Yes, you should be able to do this, as long as you can get Delphi 2007 to communicate with the Windows named pipes.

Here's an article at Delphi 3000 about how to use Delphi to communicate with named pipes, including some code samples.

Since named pipes are a basic core feature of Windows NT/XP/Vista, Delphi should be able to communicate with those no problem (reading + writing).

Does that help at all? Marc



来源:https://stackoverflow.com/questions/808287/how-can-i-communicate-with-wcf-from-delphi-using-named-pipes-binding

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!