Re: [ACFUG Discuss] ISO 8601 date
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 -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 char...@carehart.org 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: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Kevin Hellriegel Sent: Wednesday, January 28, 2009 9:21 PM To: discussion@acfug.org 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 -
Re: [ACFUG Discuss] ISO 8601 date
Not at all. http://www.shipwithcts.com/test/fedex/ShipService_v5.wsdl On Tue, Jan 27, 2009 at 9:54 PM, Ajas Mohammed ajash...@gmail.com wrote: ok, what is url for this webservice? you mind sharing that? Ajas Mohammed / http://ajashadi.blogspot.com We cannot become what we need to be, remaining what we are. No matter what, find a way. Because thats what winners do. You can't improve what you don't measure. Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives. On Tue, Jan 27, 2009 at 6:36 PM, Kevin Hellriegel khell...@gmail.com wrote: I have a theory of what is going on. I believe that it requires a date object and won't take a string (which would explain why passing it a Now() or CreateODBCDateTime works with a warning). This thread kind of confirms it: http://www.justskins.com/forums/webservice-urgent-issue-45305.html As for the warning, I think CF's Apache Axis might not be formatting or serializing (is that the right term?) the date object correctly. Using Web Services Explorer in Eclipse, I'm able to get data back with a warning using 2009-01-27T18:11:21 (notice the GMT offset is missing). And I can get data back without the warning if I use 2009-01-27T23:11:21-05:00. So I know I'm not crazy and that this thing works =P Is there a way to see what CF is sending to the webservice? My brain is mush from trying to figure all this out. I may just switch to using cfhttp and post XML straight to it. We'll see what happens tomorrow. Kevin On Tue, Jan 27, 2009 at 3:58 PM, Kevin Hellriegel khell...@gmail.com wrote: It's funny that you mention Allaire, because I found this post while googling: http://www.stylusstudio.com/xmldev/199810/post90220.html On Tue, Jan 27, 2009 at 3:53 PM, AppDeveloper appdevelo...@gmail.com wrote: If you want to dive down the rabbit hole, this is how it does in the Allaire days of CF with the Java util... http://www.koders.com/java/fid651395B318F465F02DF87C5C57902DE82FCC2613.aspx?s=cdef%3Aparser On Tue, Jan 27, 2009 at 3:05 PM, Kevin Hellriegel khell...@gmail.com wrote: I need to create a dateTime for the Fedex ShipService webservice that looks like this: 2009-01-27T14:45:23-05:00. You've got the date, the letter T, the time and offset from GMT. I've created a string, but the web service blows up with the ever useful Cannot find webservice... If I use Now() instead, the webservice returns the data I need, but with a warning saying the field (ShipTimestamp) is invalid. I've been looking through the axis API and cannot figure out what to use. Any ideas? Thanks, 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 - - 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 -
Re: [ACFUG Discuss] ISO 8601 date
Forgot to mention the operation I am using is processShipment. Kevin On Wed, Jan 28, 2009 at 8:28 AM, Kevin Hellriegel khell...@gmail.com wrote: Not at all. http://www.shipwithcts.com/test/fedex/ShipService_v5.wsdl On Tue, Jan 27, 2009 at 9:54 PM, Ajas Mohammed ajash...@gmail.com wrote: ok, what is url for this webservice? you mind sharing that? Ajas Mohammed / http://ajashadi.blogspot.com We cannot become what we need to be, remaining what we are. No matter what, find a way. Because thats what winners do. You can't improve what you don't measure. Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives. On Tue, Jan 27, 2009 at 6:36 PM, Kevin Hellriegel khell...@gmail.com wrote: I have a theory of what is going on. I believe that it requires a date object and won't take a string (which would explain why passing it a Now() or CreateODBCDateTime works with a warning). This thread kind of confirms it: http://www.justskins.com/forums/webservice-urgent-issue-45305.html As for the warning, I think CF's Apache Axis might not be formatting or serializing (is that the right term?) the date object correctly. Using Web Services Explorer in Eclipse, I'm able to get data back with a warning using 2009-01-27T18:11:21 (notice the GMT offset is missing). And I can get data back without the warning if I use 2009-01-27T23:11:21-05:00. So I know I'm not crazy and that this thing works =P Is there a way to see what CF is sending to the webservice? My brain is mush from trying to figure all this out. I may just switch to using cfhttp and post XML straight to it. We'll see what happens tomorrow. Kevin On Tue, Jan 27, 2009 at 3:58 PM, Kevin Hellriegel khell...@gmail.com wrote: It's funny that you mention Allaire, because I found this post while googling: http://www.stylusstudio.com/xmldev/199810/post90220.html On Tue, Jan 27, 2009 at 3:53 PM, AppDeveloper appdevelo...@gmail.com wrote: If you want to dive down the rabbit hole, this is how it does in the Allaire days of CF with the Java util... http://www.koders.com/java/fid651395B318F465F02DF87C5C57902DE82FCC2613.aspx?s=cdef%3Aparser On Tue, Jan 27, 2009 at 3:05 PM, Kevin Hellriegel khell...@gmail.com wrote: I need to create a dateTime for the Fedex ShipService webservice that looks like this: 2009-01-27T14:45:23-05:00. You've got the date, the letter T, the time and offset from GMT. I've created a string, but the web service blows up with the ever useful Cannot find webservice... If I use Now() instead, the webservice returns the data I need, but with a warning saying the field (ShipTimestamp) is invalid. I've been looking through the axis API and cannot figure out what to use. Any ideas? Thanks, 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 - - 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 -
RE: [ACFUG Discuss] ISO 8601 date
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: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Kevin Hellriegel Sent: Wednesday, January 28, 2009 9:21 PM To: discussion@acfug.org 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 -
Re: [ACFUG Discuss] ISO 8601 date
copy pasta'd your code Teddy and got the Web service operation processShipment with parameters...could not be found :( If I replace it with Now(), it works but with a warning. Is there a java function that will do the formatting? On Tue, Jan 27, 2009 at 3:17 PM, Teddy R. Payne teddyrpa...@gmail.com wrote: cfset strTimeStamp = DateFormat(now(), -MM-DD) T TimeFormat(now(), HH:MM:SS) -05:00 Quick and dirty. Teddy R. Payne, ACCFD Google Talk - teddyrpa...@gmail.com On Tue, Jan 27, 2009 at 3:05 PM, Kevin Hellriegel khell...@gmail.com wrote: I need to create a dateTime for the Fedex ShipService webservice that looks like this: 2009-01-27T14:45:23-05:00. You've got the date, the letter T, the time and offset from GMT. I've created a string, but the web service blows up with the ever useful Cannot find webservice... If I use Now() instead, the webservice returns the data I need, but with a warning saying the field (ShipTimestamp) is invalid. I've been looking through the axis API and cannot figure out what to use. Any ideas? Thanks, 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 -
RE: [ACFUG Discuss] ISO 8601 date
Try the CF Function CreateODBCDateTime() http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentationfile=0357.htm From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Teddy R. Payne Sent: Tuesday, January 27, 2009 3:17 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] ISO 8601 date cfset strTimeStamp = DateFormat(now(), -MM-DD) T TimeFormat(now(), HH:MM:SS) -05:00 Quick and dirty. Teddy R. Payne, ACCFD Google Talk - teddyrpa...@gmail.commailto:teddyrpa...@gmail.com On Tue, Jan 27, 2009 at 3:05 PM, Kevin Hellriegel khell...@gmail.commailto:khell...@gmail.com wrote: I need to create a dateTime for the Fedex ShipService webservice that looks like this: 2009-01-27T14:45:23-05:00. You've got the date, the letter T, the time and offset from GMT. I've created a string, but the web service blows up with the ever useful Cannot find webservice... If I use Now() instead, the webservice returns the data I need, but with a warning saying the field (ShipTimestamp) is invalid. I've been looking through the axis API and cannot figure out what to use. Any ideas? Thanks, 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 -
Re: [ACFUG Discuss] ISO 8601 date
ok, what is url for this webservice? you mind sharing that? Ajas Mohammed / http://ajashadi.blogspot.com We cannot become what we need to be, remaining what we are. No matter what, find a way. Because thats what winners do. You can't improve what you don't measure. Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives. On Tue, Jan 27, 2009 at 6:36 PM, Kevin Hellriegel khell...@gmail.comwrote: I have a theory of what is going on. I believe that it requires a date object and won't take a string (which would explain why passing it a Now() or CreateODBCDateTime works with a warning). This thread kind of confirms it: http://www.justskins.com/forums/webservice-urgent-issue-45305.html As for the warning, I think CF's Apache Axis might not be formatting or serializing (is that the right term?) the date object correctly. Using Web Services Explorer in Eclipse, I'm able to get data back with a warning using 2009-01-27T18:11:21 (notice the GMT offset is missing). And I can get data back without the warning if I use 2009-01-27T23:11:21-05:00. So I know I'm not crazy and that this thing works =P Is there a way to see what CF is sending to the webservice? My brain is mush from trying to figure all this out. I may just switch to using cfhttp and post XML straight to it. We'll see what happens tomorrow. Kevin On Tue, Jan 27, 2009 at 3:58 PM, Kevin Hellriegel khell...@gmail.com wrote: It's funny that you mention Allaire, because I found this post while googling: http://www.stylusstudio.com/xmldev/199810/post90220.html On Tue, Jan 27, 2009 at 3:53 PM, AppDeveloper appdevelo...@gmail.com wrote: If you want to dive down the rabbit hole, this is how it does in the Allaire days of CF with the Java util... http://www.koders.com/java/fid651395B318F465F02DF87C5C57902DE82FCC2613.aspx?s=cdef%3Aparser On Tue, Jan 27, 2009 at 3:05 PM, Kevin Hellriegel khell...@gmail.com wrote: I need to create a dateTime for the Fedex ShipService webservice that looks like this: 2009-01-27T14:45:23-05:00. You've got the date, the letter T, the time and offset from GMT. I've created a string, but the web service blows up with the ever useful Cannot find webservice... If I use Now() instead, the webservice returns the data I need, but with a warning saying the field (ShipTimestamp) is invalid. I've been looking through the axis API and cannot figure out what to use. Any ideas? Thanks, Kevin - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserformhttp://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.edituserformhttp://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.edituserformhttp://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 -