kSOAP IsoDate Millisecond Problem

When I started to use kSOAP with .NET I have realized that .NET DateTime and kSOAP MarshalDate class does not match directly. I have downloaded IsoDate.java code(included in kSOAP2) from Sourceforge. I have modified the following line;


stringToDate Method line 122...
char d = text.charAt(++pos);

with;

pos++;
if(text.length() == pos)
break;
char d = text.charAt(pos);

Otherwise, I was getting StringOutOfBounds exception while the marshalling the dot in milliseconds in date string.

Comments

Popular posts from this blog

3 Must Haves of a Status Report

AWS encryption chart (SSE-S3 vs SSE-KMS vs SSE-C)

Curl "No status code specified in the response"