we are developing REST web services,as part of this we are validating each XSD field.
We have Date field in the XSD and Date format is "yyyy-mm-dd hh:mm:ss" and using DateAdapter and XMLFormatDateTimeAdapter to convert the XSD to domain object(i.e DTO obkects).
But the problem here is when we are passing the date format other than above mentioned the dateadapet is consider it as null.finally null value is storing in date field.
but the expected scenario is if we pass other format of date the adapter class needs to throgh the error.
please suggest me what would be solution to resolve this issue.
rajashekar thatipamula opened SWS-1011 and commented
we are developing REST web services,as part of this we are validating each XSD field.
We have Date field in the XSD and Date format is "yyyy-mm-dd hh:mm:ss" and using DateAdapter and XMLFormatDateTimeAdapter to convert the XSD to domain object(i.e DTO obkects).
But the problem here is when we are passing the date format other than above mentioned the dateadapet is consider it as null.finally null value is storing in date field.
but the expected scenario is if we pass other format of date the adapter class needs to throgh the error.
please suggest me what would be solution to resolve this issue.
No further details from SWS-1011
The text was updated successfully, but these errors were encountered: