Tried Allen's and was able to get data back, but the webservice
returned a warning saying "ShipTimestamp is invalid". Here is the
snippet from the Dev Guide:
This element must be formatted
YYYY-MM-DDTHH:MM:SS-HH:MM such as
2008-01-21T14:15:37-05:00 or
2008-01-21T14:15:37+03:00 where:
• YYYY-MM-DD is the year, month, and date.
• T separates the date from the time.
• HH:MM:SS is the time in military format.
And from the WSDL:
<xs:element name="ShipTimestamp" type="xs:dateTime">
<xs:annotation>
<xs:documentation>Identifies the date and time the package is
tendered to FedEx. Both the date and time portions of the string are
expected to be used. The date should not be a past date or a date more
than 10 days in the future. The time is the local time of the shipment
based on the shipper's time zone. The date component must be in the
format: YYYY-MM-DD (e.g. 2006-06-26). The time component must be in
the format: HH:MM:SS using a 24 hour clock (e.g. 11:00 a.m. is
11:00:00, whereas 5:00 p.m. is 17:00:00). The date and time parts are
separated by the letter T (e.g. 2006-06-26T17:00:00). There is also a
UTC offset component indicating the number of hours/mainutes from UTC
(e.g 2006-06-26T17:00:00-0400 is defined form June 26, 2006 5:00 pm
Eastern Time).</xs:documentation>
</xs:annotation>
</xs:element>
It was also not liking some integer values I was passing to it. One
was a nonNegativeInteger type in the WSDL so I had to do a work
around:
<cfscript>
NonNegativeInteger =
CreateObject('java','org.apache.axis.types.NonNegativeInteger');
PackageCount = NonNegativeInteger.init(1)
</cfscript>
I'm thinking I need to do something similar.
On Tue, Jan 27, 2009 at 3:41 PM, Teddy R. Payne <[email protected]> wrote:
> Kevin,
> Try what Allen has suggested to you with ODBC Date and Time. The error kind
> of reads like a data type issue. If you are asking about a way to Java cast
> a data type, CF8 offers a few casting data types more so than CF7:
>
> CF8 -
> http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_in-k_45.html
>
> How is the web service consumed? Perhaps you can more explicity datatype
> the parameter being passed.
>
>
>
> Teddy R. Payne, ACCFD
> Google Talk - [email protected]
>
>
>
> On Tue, Jan 27, 2009 at 3:25 PM, Kevin Hellriegel <[email protected]>
> wrote:
>>
>> 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 <[email protected]>
>> wrote:
>> > <cfset strTimeStamp = DateFormat(now(), "YYYY-MM-DD") & "T" &
>> > TimeFormat(now(), "HH:MM:SS") & "-05:00">
>> >
>> > Quick and dirty.
>> >
>> > Teddy R. Payne, ACCFD
>> > Google Talk - [email protected]
>> >
>> >
>> >
>> > On Tue, Jan 27, 2009 at 3:05 PM, Kevin Hellriegel <[email protected]>
>> > 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
-------------------------------------------------------------