You could also try this CFC...
http://code.google.com/p/cffedexrates/.
I've tested it as of last night, and it works fine.
Matthew Williams
Geodesic GraFX
www.geodesicgrafx.com/blog
Chad Gray wrote:
> I am using some code I got from this web site (not sure who the author is) to tap into FedEx's rate API.
>
http://cfsearching.blogspot.com/2007/12/how-heck-do-you-use-fedex-rate-web.html
>
>
> If I try to put a CF variable in the second line below it errors out. If I put a 1 or 2 in there statically it works fine. The list has one entry in it so the list is fine.
>
> <cfset objNonNegInteger = createObject("java", "org.apache.axis.types.NonNegativeInteger") />
>
> <cfset data.requestedShipment.packageCount = objNonNegInteger.init("#listLen(attributes.PkgWeights)#")>
>
>
> Here is the error:
> Unable to find a constructor for class org.apache.axis.types.NonNegativeInteger that accepts parameters of type ( java.lang.Integer ).
>
>
> Is CF processing the objNonNegInteger function before it processes the ListLen() function?
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324345Subscription:
http://www.houseoffusion.com/groups/cf-talk/subscribe.cfmUnsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4