This document will help you start to figure out WS for CF.
http://hcc.musc.edu/research/shared_resources/xml_complex_types_to_cf_structure_notes.cfm

Basically the idea is to replicate the XML you are looking to build with
structs.  If you have an element that has a max="unbounded" then you'll
create an array of structs.

Right now I'm stuck trying to figure out how to represent a complex element
that is nillable="true" type="xsd:string"

Hope that article helps.

-Carlos


On 3/12/07, Sean Hynes <[EMAIL PROTECTED]> wrote:
> 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
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion

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

Reply via email to