在使用xfire时,使用soapUI遇到date 格式的数据
传入的格式应该为:2004-01-14T03:12:07-03:00
代码为:
import org.codehaus.xfire.util.date.XsDateTimeFormat;
private static XsDateTimeFormat format = new XsDateTimeFormat();
Calendar c = (Calendar) format.parseObject(source);