This seems to be a repost? I already posted the answer to this the other day I think...

On Feb 4, 2004, at 1:04 AM, Mike Kear wrote:

I want to consume a web service for converting currencies (at
http://www.webservicex.net/CurrencyConvertor.asmx?wsdl ) and I used the
EXCELLENT implementation in DreamweaverMX to write the code. That drag
and drop is an absolute gem for this!


Anyway, the resulting page give an error and I cant see why because what?s
going in seems perfectly logical for what the web service is supposed to
do.


Here?s the code that Dreamweaver wrote:

<cfinvoke
webservice="http://www.webservicex.net/CurrencyConvertor.asmx?WSDL";
method="conversionRate"
returnvariable="conversionRateRet">
<cfinvokeargument name="fromCurrency" value="GBP"/>
<cfinvokeargument name="toCurrency" value="USD"/> </cfinvoke>


Which (I thought) should take the input value GBP and work out a
conversion to USD, and return a variable #conversionRateRet# which will
be a number such as 1.02, being the conversion rate.


However here?s what I get:

[quote]
Could not perform web service invocation "conversionRate" because
java.lang.IllegalArgumentException: argument type mismatch [/quote]

And it?s highlighting the ?toCurrency? line as the one with the error.
Huh?   If the ?fromCurrency? line is correct, how come the next line
isn?t?     Can anyone see what?s wrong?   Or is there something else I
have to do on the page?

Cheers
Mike Kear
Windsor, NSW, Australia
AFP Webworks
http://afpwebworks.com


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to