wsdl文件中的元素minOccurs = 0 [英] element minOccurs=0 in wsdl file

查看:151
本文介绍了wsdl文件中的元素minOccurs = 0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在定义时在所有字段中都使用了[XmlElement(isnullable = true)]属性.
但是当我生成wsdl文件时,正在生成元素minOccurs = 0.

我希望值是minOccurs = 1.

I have used [XmlElement(isnullable=true)] attribute to all my fields while defining.
But when i generate a wsdl file the element minOccurs=0 is being generated.

I want the value to be minOccurs=1.

what should i do?

推荐答案

如果IsNullable = true,则minOccurs = 0. IsNullable表示它可以存在或不存在. minOccurs表示它可以存在或不存在.如果希望生成的WSDL具有minOccurs = 1,请在代码中设置IsNullable = false.
If IsNullable=true, then minOccurs=0. IsNullable means it can either exist or not. minOccurs means it can either exist or not. If you want the generated WSDL to have minOccurs=1, set IsNullable=false in your code.


这篇关于wsdl文件中的元素minOccurs = 0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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