Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with DATE in XML

843834Feb 5 2007 — edited Feb 6 2007
I have been trying to execute the Java 2 XML code and was testing the code using XML spy and i am encountering an error.Even though i had all the fields containing date as optional i am getting this error.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header />
- <soapenv:Body>
- <soapenv:Fault>
<faultcode>soapenv:Server.generalException</faultcode>
- <faultstring>
- <![CDATA[ java.lang.NumberFormatException: WSWS3435E: Error: Invalid date/time. Received an empty string for a date/time value. To see the message containing the parsing error in the log, either enable web service engine tracing or set MessageContext.setHighFidelity(true).
]]>
</faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

Then i tried giving in the all the fields containing dates and i am getting this error.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.generalException</faultcode>
<faultstring><![CDATA[java.lang.NumberFormatException: WSWS3046E: Error: Invalid date/time: 12-31-07 To see the message containing the parsing error in the log, either enable web service engine tracing or set MessageContext.setHighFidelity(true).]]></faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

If anyone could possibly answer my question,thats greatly appreciated.Thanks..
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 6 2007
Added on Feb 5 2007
6 comments
1,784 views