开发者

AXIS 1.5.3 Date Formatting Issue

Merged with axis2 xsd:date format issue.

In WSDL I have the following format:

When I generate the STUB (using Axis2 1.5.3), the generated stub (ADB Data Binding) has the following source code :

public void setUSER_ACT_STRDT_TypeDe开发者_C百科f(Date param) {

if (ConverterUtil.convertToString(param).matches("\d{4}-\d{2}-\d{2}")) {

this.localUSER_ACT_STRDT_TypeDef=param; } else { throw new java.lang.RuntimeException();

} }

This method always throws RuntimeException because the ConverterUtil.convertToString() method returns a String in a different format than "yyyy-mm-dd". It returns the date by appending +5.30 as 2011-03-21+05:30.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜