Professional Web Applications Themes

Web service example in CF7 Maual works? - Coldfusion - Advanced Techniques

I'm starting trying to learn about web services. The CF7 Developer's Guide, on P. 892, Chapter 36 has example code that I'm trying in a CFM page. The code is: <cfinvoke webservice='http://www.xmethods.net/sd/2001/TemperatureService.wsdl' method='getTemp' returnvariable='aTemp'> <cfinvokeargument name='zipcode' value='55987'/> </cfinvoke> <cfoutput>The temperature at zip code 55987 is #aTemp#</cfoutput> I get this error: 'Could not perform web service invocation 'getTemp'. ' This seems like an example that is very basic, so I'd like to see it working. Does anyone have an idea on how to fix it (or is the problem with the service?). If not, does someome have a simple example? Thanks ...

  1. #1

    Default Web service example in CF7 Maual works?

    I'm starting trying to learn about web services. The CF7 Developer's Guide, on
    P. 892, Chapter 36 has example code that I'm trying in a CFM page. The code
    is: <cfinvoke
    webservice='http://www.xmethods.net/sd/2001/TemperatureService.wsdl'
    method='getTemp' returnvariable='aTemp'> <cfinvokeargument name='zipcode'
    value='55987'/> </cfinvoke> <cfoutput>The temperature at zip code 55987 is
    #aTemp#</cfoutput> I get this error: 'Could not perform web service invocation
    'getTemp'. ' This seems like an example that is very basic, so I'd like to see
    it working. Does anyone have an idea on how to fix it (or is the problem with
    the service?). If not, does someome have a simple example? Thanks Howard
    Perlman US Geological Survey

    Howard Perlman Guest

  2. #2

    Default Re: Web service example in CF7 Maual works?

    It looks like it's a problem with the service. You can try this one:

    <cfinvoke
    webservice="http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsdl"
    method="getRate" returnvariable="aRate">
    <cfinvokeargument name="country1" value="usa"/>
    <cfinvokeargument name="country2" value="mexico"/>
    </cfinvoke>
    <cfoutput>The exchange rate from usa to mexico is #aRate#</cfoutput>

    Kronin555 Guest

  3. #3

    Default Re: Web service example in CF7 Maual works?

    Hello Kronin, Well, as a woman here says ... 'cool beans'. That is really
    neat. I even changed it to Canada and got a new rate. I'm going to build a
    front end to it, as we're trying to show how CF can work with web services
    (which I've never done yet). Thanks

    Howard Perlman Guest

  4. #4

    Default Re: Web service example in CF7 Maual works?

    Where do I get a list of the webservices available? Do I have to register
    with IBM to get the UDDI register? Thanks

    "Howard Perlman" <webforumsusermacromedia.com> escribió en el mensaje
    news:d17iuk$he0$1forums.macromedia.com...
    > Hello Kronin, Well, as a woman here says ... 'cool beans'. That is really
    > neat. I even changed it to Canada and got a new rate. I'm going to build a
    > front end to it, as we're trying to show how CF can work with web services
    > (which I've never done yet). Thanks
    >

    Ed Guest

  5. #5

    Default Re: Web service example in CF7 Maual works?

    There is a good list of publicly accessible services at [url]www.xmethods.org[/url].

    --
    Tom Jordahl
    Macromedia Server Development


    Tom Jordahl Guest

Similar Threads

  1. #39370 [NEW]: $_GET no longer works under FastCGI but works under CGI.
    By trustpunk at gmail dot com in forum PHP Bugs
    Replies: 7
    Last Post: November 9th, 10:38 AM
  2. Web Service works in VS.NET 1.1, but not VS.NET 2.0
    By Jim in forum ASP.NET Web Services
    Replies: 0
    Last Post: April 14th, 09:39 PM
  3. Web service that works in CF 6 doesn't not in CF 7
    By JNokes in forum Coldfusion - Advanced Techniques
    Replies: 2
    Last Post: March 23rd, 10:42 PM
  4. Works 2000 / XP Service pack 1A
    By Mike in forum Windows Setup, Administration & Security
    Replies: 0
    Last Post: July 1st, 04:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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