Java webservice and .net client Date datatype interpolability issue -
Java webservice and .net client Date datatype interpolability issue -
there .net client calls java web services api - addschedule(date startdate, date enddate). enddate optional - i.e client can pass enddate= null , fine. issue is- .net client cannot assign null date variable type.
one more thing checked, if java web service response passes null date value .net client, received date.min_value .net. thought if .net passes enddate=date.min_value,so java enddate=null. java getting date.min_value valid date.
so stuck. please suggest workaround.
try using nullable datetime (nullable<datetime> or datetime?), since can hold null value. normal value type (like datetime) can't hold null, , have default value (in case of datetime datetime.minvalue, int 0)
java .net web-services date types
Comments
Post a Comment