What about use the java.util.Calendar or java.util.Date? will that make any difference? I have not tried your testcase, but you can try add a jaxws binding file when you do wsdl2java to map the xsd:dataTime to java.util.Calendar

James

Have discovered how to log with interceptors and this has shown that the string representation of the outgoing dateTime does not appear to be "valid".

From the wsdl a field is mapped as xs:dateTime...
<xs:element msdata:Caption="Ship By" minOccurs="0" name="RequestDate" type="xs:dateTime"/>

When this is received from the service it comes in as...
<RequestDate>2007-08-03T00:00:00.0000000+12:00</RequestDate>

When we send it back however its going out as...
<RequestDate>2007-08-03T00:00:00E-7+12:00</RequestDate>

We have confirmed that .Net cannot parse this format.

My question therefore is how can we change the outgoing format? As this client code was built with wsdl2java I'm assuming JAXB is being used for binding. Can anyone short circuit my search on how to override the default marshalling for xs:dateTime?

thanks in advance

Phil

Reply via email to