Matthew, in your example you're just expecting to get the WSDL back, right? When you do a "view source", what do you see? It should be a lot of SOAP XML. If it's anything else, it could give you clues as to an error in the code (Even as simpler as the CFC is, and it did work for me.) But do note that a web service CFC invocation also runs the application.cfc/cfm, if any, so you may have an error in there instead.
But if that's not it, did you try running the CFC as a web service from within the browser? You can do that, as in: http://localhost/test.cfc?wsdl&method=echoString&input=teststring Note the addition of the method= which points to the method you created, and the use of "input", which you named as the input argument. That worked for me, with your code. You could also just call it not as a web service, but simply as a CFC, via a browser (without the ?wsdl):. http://localhost/test.cfc?method=echoString&input=teststring Does that echo the same result? This calling a CFC via a URL but not as a web service is another thing (like calling a method and passing args to a web service) that many don't know exist. (Not saying you didn't know either of these things, Matthew, just saying this if others read this and are surprised.) Now, if you run either of these, I'll also note that again if you do a view source of the result, you'll see that what you get back is not just the string, but really a WDDX packet, which is what you get when you call a CFC method either as a web service or as a CFC on the URL, CF returns the result as a WDDXPacket (even a simple string). There are ways to influence that return format, and some are new in CF8. But that simple test code returns the same wddxpacket in 7.02 (I did test your example against both). Now, if you do a "view source" on either just the request for the WSDL, or calling the method either as a web service or a CFC, and there's something else shown, then there may be some other problem which you see in that view source. BTW, when you sent in your next note (which arrived while I wrote this) saying that trying to invoke the web service from CFML code (with createobject) also seemed to fail for you. That would suggest something may indeed be wrong that may be identified in my first test above, viewing the WSDL that's supposed to be returned. If it's not WSDL, something's wrong in the code, whether your file or the application.cfm/cfc. Let us know. I'm off to bed real soon. :-) /charlie PS If anyone ever wants help off-list, I'm happy to help (even remotely) through http://www.carehart.org/consulting/. -----Original Message----- From: cfaussie@googlegroups.com [mailto:cfaus...@googlegroups.com] On Behalf Of Steve Onnis Sent: Monday, June 22, 2009 10:24 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Web service not working after CF8 upgrade Can you call it as a CFM>CFC call? -----Original Message----- From: cfaussie@googlegroups.com [mailto:cfaus...@googlegroups.com] On Behalf Of Matthew Sent: Tuesday, 23 June 2009 12:18 PM To: cfaussie Subject: [cfaussie] Web service not working after CF8 upgrade Hi We've recently upgraded from CF7 to CF8 and our web service (published web service) no longer works. I've done some really basic tests such as create a new CFC with 1 "remote" method but I still get a blank screen. The HTML shows about 18--20 empty lines. Totally weird. Can someone please confirm that I'm not crazy and try the following in a CFC called test.cfc and call it via the browser e.g. http://localhost/test.cfc?WSDL <cfcomponent> <cffunction name="echoString" returnType="string" output="no" access="remote"> <cfargument name="input" type="string" /> <cfreturn Arguments.input /> </cffunction> </cfcomponent> Is there a setting in the admin which I need to flick? Any suggestions would be great. Environment: CF8, WinXP, IIS 5. Cheers Matthew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---