Have a look at end of the ConverterUtil.java[1].
static {
isCustomClassPresent =
(System.getProperty(SYSTEM_PROPERTY_ADB_CONVERTERUTIL) != null);
if (isCustomClassPresent){
String className =
System.getProperty(SYSTEM_PROPERTY_ADB_CONVERTERUTIL);
try {
customClass = Class.forName(className);
} catch (ClassNotFoundException e) {
log.error("Can not load the converter util class "
+ className + " using default
org.apache.axis2.databinding.utils.ConverterUtil class");
isCustomClassPresent = false;
}
}
}
you can write a custom class to override the default methods given in
this class.
thanks,
Amila.
[1]
https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
On Mon, Aug 31, 2009 at 8:28 PM, Maier Otto <[email protected]> wrote:
> Hi,
>
> I am using a web service which is expecting a xs:dateTime as value.
> WSDL2Java is creating the corresponding function, and I am passing a
> GregorianCalendar as value.
>
> The created dateTime in the soap message looks like:
> 2009-07-21T12:00:00.000+00:00
> or
> 2009-07-21T12:00:00.000
> or
> 2009-07-21T12:00:00.000+02:00
> depending on the timezone.
>
> But what the server is requesting is the following format:
> 2009-07-21T12:00:00.000Z
> (zulu timezone). Setting the timezone to Zulu doesn't help.
>
> Is there a way to tell the client to create a dateTime in this format?
> (I have no control over the server.)
>
> TIA for any help,
> Otto
>
> --
> Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 -
> sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
>
--
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/