That's where the problem lies. If I pass an already formatted date (like Teddy's suggestion), CF returns the error "Webservice...cannot be found". I've created a SimpleDateFormat object from Java and used it to format the date, and still get the same result. If I pass Now() or CreateODBCDateTime() CF consumes the webservice, but the date is passed in the format YYYY-MM-DDTHH:MM:SSZ. Fedex sends back a warning with the data that I need.
Here are two links. Link 1 uses Now() and Link 2 uses a formatted date. Both links dump what I am sending to Fedex and what I get back. Sorry if runs a little slow. The field in question is ShipTimestamp. Link 1 http://www.shipwithcts.com/test/fedex/shipment.cfm Link 2 http://www.shipwithcts.com/test/fedex/shipment2.cfm On Wed, Jan 28, 2009 at 10:51 PM, Charlie Arehart <[email protected]> wrote: > Well Kevin, sure it can, if the date is indeed something that your code is > generating. (Can't tell if you may be referring to a date created by some > other automated process.) > > But as you know you can get CF to format a date in pretty much any pattern > using DateFormat. But you may be wondering about the -05:00 portion. That > appears to be the UTC offset (or the offset from GMT time). You can either > hard code that, of course, or get it programmatically using getTimeZoneInfo. > Is that helpful? > > /charlie > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf Of Kevin Hellriegel > Sent: Wednesday, January 28, 2009 9:21 PM > To: [email protected] > Subject: Re: [ACFUG Discuss] ISO 8601 date > > I ended up calling Fedex. They were able to view the requests I had > made. CF8 is sending the date as 2009-01-27T22:00:00Z. Fedex requires > it to be formatted as 2009-01-28T03:00:00-05:00. I don't know if there > is a way to change the formatting. Since this is a pretty hot project, > I'm going to generate the xml so I know everything will be in the > right format. > > Kevin > > > > > ------------------------------------------------------------- > To unsubscribe from this list, manage your profile @ > http://www.acfug.org?fa=login.edituserform > > For more info, see http://www.acfug.org/mailinglists > Archive @ http://www.mail-archive.com/discussion%40acfug.org/ > List hosted by http://www.fusionlink.com > ------------------------------------------------------------- > > > > ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -------------------------------------------------------------
