向WCF服务添加了额外的“指定"字段 [英] extra 'Specified' field added to WCF service

查看:77
本文介绍了向WCF服务添加了额外的“指定"字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





当我引用WCF服务时,所有这些指定的字段[VariableName]都会添加到函数调用中.这基本上使调用我的服务所需的可变输入量增加了一倍

例如,如果我有功能

dostuff(int a,int b,bool c)

服务产生

dostuff(int a,bool aSpecified,int b,bool bSpecified,bool c,bool cSpecified)

这些原始字段都是必需的,而我非常需要摆脱多余的字段.

Hi,



When I reference my WCF service all these Specified fields[VariableName] are added to the function call. This basically doubled the amount of input variabled needed to make a call to my service

for example, if I have the function

dostuff(int a, int b, bool c)

the service generates

dostuff(int a, bool aSpecified, int b, bool bSpecified, bool c, bool cSpecified)

These original fields are all required and I desperately need to get rid of the extra fields.

推荐答案

请参阅 [ ^ ].


这篇关于向WCF服务添加了额外的“指定"字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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