Re: ISO date format on SOAP interface
Re: ISO date format on SOAP interface
- Subject: Re: ISO date format on SOAP interface
- From: deivy petrescu <email@hidden>
- Date: Thu, 12 Oct 2006 19:02:14 -0400
On Oct 12, 2006, at 17:07, Gordon Maynard wrote:
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", datestamp:«data
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
e: email@hidden
AIM: maynardaim
Jabber: email@hidden
hi Gordon,
Use the following:
get datestamp of theRecord as string
Deivy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden