xml - Date Field Validation failed for type xsd:gYear type in SOAP ui -


i having trouble identify validation logic soapui implements.

there 1 date field type xsd:gyear defined in local xsd used in wsdl. when validating value "20161411" failed in soapui, same field passing in java framework, have same xsd , same wsdl .

field :

 <date>20171210</date> 

it's type xsd:gyear defined in xsd below :-

 <xsd:simpletype name="date_noid">      <xsd:union membertypes="xsd:gyear"/>  </xsd:simpletype> 

when providing value 20171210 8 digit, it's throwing me error in soapui , doing right click --> validate .

the error message

"union value '20171210' not match members of 'date in namespace http://www.acord.org/standards/pc_surety/acord1/xml/'".

if give value "201615" 6 digit it's passes validation in soapui .

so want understand how soapui, setting maxlength feild i.e of type xsd:gyear

the same field passing in java, having same xsd reference using schema validator.

the problem defined date field xsd:year only. allows signed value of 4 or more agreed upon digits represent year (the allows represent years far in future or past).

not sure why 6 digits passing since did not set 2 digit extension, should use xsd:date instead should parse date have represented.

similar question: xsd validates wrong format of xs:date , xs:datetime


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -