Whoops, a copy that didn't - the correct URL should be http://jibx.sourceforge.net/tutorial/binding-extend.html#serdeser

 - Dennis

Dennis Sosnoski wrote:

You can write a simple <format> for java.util.Calendar that handles the conversion - see the tutorial http://jobsearch.monster.com/getjob.asp?JobID=24632487 for details.

As for Axis/JAX-RPC using Calendar, this is an error that's likely to be corrected in the future. XML dateTimes are equivalent to Java Dates, not Calendars, because XML dateTimes do not have a time zone (even if you use an offset in the time representation, the actual time is always UTC or unknown zone). Calendar requires a specific time zone, leading to all kinds of problems with daylight time changes and such.

 - Dennis

Tim Sawyer wrote:

Hi,

I'm using JiBX to do some binding on a class that I'm using as a parameter to a SOAP call (using jibx-soap).

According to the Axis documentation page, I should be using java.util.Calendar for datetime types, and it translates into xsd:DateTime.
(http://ws.apache.org/axis/java/user-guide.html)


Unfortunatly JiBX can't convert classes with java.util.Calendar type attributes to XML, and I could only get the binding to work if I used java.util.Date instead. The code I have makes extensive use of Calendar (it was developed with Axis in mind), do I have to change it all to Date instead?

If I use Date will it interoperate with Axis and .NET clients or am I going to have "issues"?

Cheers,

Tim.



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to