WCF - 跨平台问题 [英] WCF - Cross platform question
问题描述
我有一个简单的 WCF 服务、自托管和一个 .net 客户端.我正在使用 svcutil 生成代理.当我将代理添加到客户端时,它会要求我添加 System.ServiceModel.dll.嗯,我可以添加它,因为它是一个测试场景,我在 .Net 平台上工作.
I have a simple WCF service, self hosting and a .net client. I am generating a proxy using svcutil. When I add the proxy to the client it asks me to add System.ServiceModel.dll. Well, I can add it since it is a test scenario and I am working in .Net platform.
但是,假设我使用的机器不支持 .Net,那么该平台将如何补偿 System.ServiceModel?
However, suppose I am using a machine that does not support .Net, how that platform would compensate for the System.ServiceModel?
你能帮我介绍一下吗?
我有点想法.如果我正在创建 WCF 客户端,我需要添加 ServiceModel.为了测试它,我添加了一个 ASMX 客户端(添加 Web 参考).我的服务方法不接受任何参数.但是我在客户端出现错误,要求我输入 int Result,输出 bool ResultSpecified.你能解释一下原因吗?
I got somewhat an idea. If I am creating WCF client I need to add ServiceModel. To Test it I added a ASMX client (Add Web Reference). My service mthod does not take any params. But i get an error in client asking me to enter out int Result, out bool ResultSpecified. Could you please exlain why?
请你给我举个例子 - 如何以及如何在DataContractSerializer"上设置为真
Could you please point me to an example - how and what to set true on "DataContractSerializer"
谢谢
利乔
推荐答案
奇怪的问题.如果客户端不是 .NET 应用程序,它显然不需要 System.ServiceModel
.可以使用任何其他 SOAP 库以应用程序使用的任何语言编写客户端.
Odd question. If the client isn't a .NET application, it obviously wouldn't need System.ServiceModel
. Clients can be written using any other SOAP library in whatever language the application is using.
这篇关于WCF - 跨平台问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!