Hello, we are trying to consume a web service from ODFL shipping, 
unfortunately it wants to see the variable as a "string" or string array like:
                 String[] weights = { "555", "0", "0", "0", "0" };

Here is the component script:
http://quote.on-sitesystems.com/odfl/rate_estimate/rate_quote.cfm

<cfset xZip = JavaCast("string","30024")>
<cfinvoke
   webservice = 
"http://quote.on-sitesystems.com/odfl/rate_estimate/RateEstimate.wsdl"; 
method = "calculateRate"         returnvariable="foo"
  oZip = "#xZip#"
   oCity= "SUWANEE"

ERROR

Could not perform web service invocation "calculateRate" because 
java.lang.IllegalArgumentException: argument type mismatch

I tried using this article:
http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=00001554.htm
DIdn't help much

ANy ideas ?? How do we cast it so it sees it correctly?

Thanks
Sean



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2. 
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272392
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to