| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I'm using Applescript to extract data from a Web Service developed using WebObjects. The format of the response is as follows: 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 e: email@hidden AIM: maynardaim |
_______________________________________________ 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
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.