且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

客户端合同中的接口

更新时间:2022-06-18 04:57:13

不会通过添加服务引用来传输接口.这些接口仅存在于 .NET 中,但您的服务应该是可互操作的.

Interfaces will not be transfered by adding a service reference. These interfaces only exist in .NET, but your service is suppossed to be interoperable.

就您的 WSDL 而言,可能无法区分 Person 和 IPerson.

As far as your WSDL is concerned there is likely to be no way to tell Person and IPerson apart.

如果您真的想使用该界面,则需要手动移动它.这意味着手动编辑生成的客户端代码.

If you really want to use that interface you will need to move it across manually. This means editing the generated client code by hand.