Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ISO date format on SOAP interface



I'm using Applescript to extract data from a Web Service developed using WebObjects. The format of the response is as follows: 

{gid:{primarykeys:{1}, entityname:"folderList"}, websafefoldername:"folderName", datestampdata isot323030362D30382D31315432333A30303A30305A», foldername:"Folder Name", folderid:1}

if I add the line:

get datestamp of theRecord as date

I get the correct result:

date "Friday, August 11, 2006 23:00:00"

However, I can't find the means to convert an Applescript date into the ISO format which the Web Service appears to need to write records back. 
I have tried sending the "datestamp" variable straight back and I get an error:

"http://localhost:55555/cgi-bin/WebObjects/picturesWebService.woa/ws/managePictures got an error: java.lang.IllegalArgumentException: com.webobjects.foundation.NSValidation$ValidationException: Error encountered converting value of class java.util.GregorianCalendar to type specified in attribute 'dateStamp' of entity 'folderList'. Conversion exception is : null"

While this may be a problem in the WebObjects application, which I wouldn't expect this list to answer, for now the question is how to handle the date format in Applescript so I can be confident about the data I am sending.
Does anyone have experience of handling dates in this format?

Thanks in advance,
Gordon.

Gordon Maynard
m: 07 970 638 415
AIM: maynardaim
Jabber: email@hidden



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.