Consuming .net web service with enum input

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Consuming .net web service with enum input

    Hi, I'm trying to consume a web service that uses a custom data type for the
    input params.

    The service is here: [url]http://www.webservicex.net/CurrencyConvertor.asmx?wsdl[/url]

    Here is the code that I'm using to invoke it:
    <cfscript>
    ws = createObject("webservice",
    "http://www.webservicex.net/CurrencyConvertor.asmx?wsdl");
    ReturnVals = ws.ConversionRate("USD","GBP");
    </cfscript>

    The error that I get is: Could not perform web service invocation
    "ConversionRate" because java.lang.IllegalArgumentException: argument type
    mismatch

    I've also tried using cfinvoke with and without cfinvokearguement tags. Of
    course the service works fine when I consume it with a .net app but my company
    is primarily cf so I would much rather use that if at all possible.

    Any help would be greatly appreciated.

    Thanks.

    redWebLackey Guest

  2. Similar Questions and Discussions

    1. Consuming .NET Web Service
      Is anyone consuming a .NET web service that returns multiple records? If so do you know how they are sending the data? thanks.
    2. Using Enum as a parameter in web service
      I am having trouble using an enum as a parametter in a webmethod. I have followed the 'resolution' per...
    3. consuming web service
      hi there, I'm new on web services... I've already created a webservice and created the proxy class using wsdl. How can I create a .asp page...
    4. Consuming a web service from VB 6
      Hi, I have written a web service use ASP.NET I can access i from VB 6 via XMLHTTP and everything works fine until I try to pass parameters to...
    5. Enum causes error in web service
      Hi, If I pass the enum (defined below) into, or out of, a web method, the client throws an exception - "There is an error in XML document (1,...
  3. #2

    Default Re: Consuming .net web service with enum input

    I just tried that exact same code on my machine and it worked fine?????

    Must be something else!
    Stressed_Simon Guest

  4. #3

    Default Re: Consuming .net web service with enum input

    Thanks Simon. I'll keep looking.
    redWebLackey Guest

  5. #4

    Default Re: Consuming .net web service with enum input


    Make sure you are using CFMX7 or CFMX6.1 updater 1.

    I made a fix in this area post 6.1. I *think* it is in the updater...

    --
    Tom Jordahl
    Macromedia Server Development


    Tom Jordahl Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139