Webservice date conversion problemhttps://www.eclipse.org/forums/index.php/mv/msg/369809/902946/#msg_902946
I am converting an Java Swing application to a Scout application. I created a Webservice Consumer. When I call this webservice I get the following order:

javax.xml.ws.soap.SOAPFaultException: Server was unable to read request. ---> There is an error in XML document (1, 311). ---> String was not recognized as a valid DateTime.]]

I can still call the webService with my old Java application from the same computer. So I assume that the Scout webservice implementation or JAX have an other way to convert dates that do not match with the server side.

How can I configure or fix this?

Regards Bertin
]]>Bertin Kiekebosch2012-08-21T11:28:40-00:00Re: Webservice date conversion problemhttps://www.eclipse.org/forums/index.php/mv/msg/369809/902948/#msg_902948
Your assumption seems very plausible. Can you post the relevant part of the soap message (interceptable with SoapUI, tcpMon, wireshark or similar)?

Regards

Arthur
]]>Arthur vD2012-08-21T11:33:42-00:00Re: Webservice date conversion problemhttps://www.eclipse.org/forums/index.php/mv/msg/369809/902974/#msg_902974
I used the logHandler to get the soap message. I hope thats good enough.

regards Bertin ]]>Bertin Kiekebosch2012-08-21T13:29:17-00:00Re: Webservice date conversion problemhttps://www.eclipse.org/forums/index.php/mv/msg/369809/902979/#msg_902979
"There is an error in XML document (1, 311)" would point exactly between the two dates in the SOAP message, so I'm not sure whether it refers to the first or the second DateTime.

Is that the SOAP message you send with Scout to some other server and the server answers with a SOAP message with the error indicated in your first post? I would try playing a bit with the message you send (using SoapUi or TcpMon) to see what difference it makes, or compare it with what your old Java application sends.

Good luck.]]>Arthur vD2012-08-21T13:55:43-00:00Re: Webservice date conversion problemhttps://www.eclipse.org/forums/index.php/mv/msg/369809/903024/#msg_903024
the fields are both defined as type="xsd:date".

What i think is also strange is that I both entered them like a date without time, but they are both converted with a date with a different time

]]>Bertin Kiekebosch2012-08-21T16:37:02-00:00Re: Webservice date conversion problemhttps://www.eclipse.org/forums/index.php/mv/msg/369809/903026/#msg_903026
Arthur vD2012-08-21T17:02:59-00:00Re: Webservice date conversion problemhttps://www.eclipse.org/forums/index.php/mv/msg/369809/903128/#msg_903128
The server side expects the date in the format jjjj-MM-dd. So no time and timezone info. I noticed that in the Scout Object Properties view of my webservice there is a binding file that binds the xml dataType to a adapter class.

All bindings are made to the UtcDateAdapter class.

I created a custom adapter and changed the binding for xmlType="xsd:date" to my own class.