0

我有这个 WSDL 内容:

<s:element minOccurs="0" maxOccurs="1" name="SystemName" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="SystemPassword" type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="MS_ZIHUY" type="s:int"/>
<s:element minOccurs="1" maxOccurs="1" name="KOD_CHEVRA" type="s:int"/>
<s:element minOccurs="0" maxOccurs="1" name="FAMILY_NAME" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="FIRST_NAME" type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="KOD_MIN" nillable="true" type="s:int"/>
<s:element minOccurs="1" maxOccurs="1" name="BIRTH_DATE" nillable="true" type="s:dateTime"/>
<s:element minOccurs="0" maxOccurs="1" name="SMOKING" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="CURRENT_OCCUPATION" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="INTERNET_INDICATOR" type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="MS_SOCHEN_MEVUTACH_VIP" type="s:int"/>
<s:element minOccurs="0" maxOccurs="1" name="SEMEL_YESHUV" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="SHEM_YESHUV" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="SEMEL_RECHOV" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="SHEM_RECHOV" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="MS_BAIT" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="MS_DIRA" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="MS_KNISA" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="OT_BAIT" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="MIKUD" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="TA_DOAR" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="MARITAL_STATUS" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="MS_KIDOMET_TELEFON" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="MS_TELEFON" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="MS_KIDOMET_NAYAD" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="MS_NAYAD" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="MS_KIDOMET_FAX" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="MS_FAX" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="EMAIL" type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="KOD_DIVUR_SHIVUKI" nillable="true" type="s:int"/>
 <s:element minOccurs="1" maxOccurs="1" name="KOD_DIVUR_SHIVUKI_ELC" nillable="true" type="s:int"/>

但是当我想在这个字段中发送 null 时,我需要像这样发送 0 :

<tem:FAMILY_NAME>0</tem:FAMILY_NAME>
<tem:FIRST_NAME>0</tem:FIRST_NAME>

这没有帮助:

<tem:FAMILY_NAME/>
<tem:FIRST_NAME/>

如果我想发送 null 我该怎么办

4

2 回答 2

0
<item:FAMILY_NAME  i:nil="true" />

我在http://www.w3.org/TR/2001/REC-xmlschema-0-20010502/中以 2.9 Nil Values阅读此内容

于 2013-03-19T05:53:51.720 回答
0

我认为您不必指定它们。甚至不写

<tem:FAMILY_NAME/>

只需忽略这些参数,它们将作为默认值执行(如果是对象,则为 null)

于 2013-03-18T20:57:35.273 回答