The proxy server created by WCF does not contain * The specified property flags for WSDL string fields with minoccurs = "0"

I noticed that the WCF proxy generator does not generate the “specified” property flags for string fields

EG When I have two fields in complexType specified in WSDL:

<xs:element name="testStringField" type="xs:string" minOccurs="0" /> 
<xs:element name="testDecimalField" type="xs:decimal" minOccurs="0" /> 

the proxy generator will create these properties for the class for complexType:

testStringField
testDecimalField
testDecimalFieldSpecified

Why not * Property specified for strings? How can I get svcutil to create this?

+3
source share
1 answer

, . - , , , , testStringField null, testDecimalField , , testDecimalFieldSpecified.

+3

Source: https://habr.com/ru/post/1764010/


All Articles