I'm trying to do a proof of concept for a project that I'm working on; my employer is headed towards going .NET, probably in the 18-24 month timeframe. I want to build a content management system that uses web services to exchange data so that when the .NET upgrade occurs, we won't have to rewrite everything from Cold Fusion. Anyway, I found some services on xmethods.net that I want to try out but I can't figure out how to get it to work properly.
For example, in trying to connect to this service http://www.xmethods.net/ve2/ViewListing.po?serviceid=151707 (WSDL definition is here http://www.interpressfact.net/webservices/getAds.asmx?wsdl). I am using this code: <cfparam name="form.action" default=""> <cfswitch expression=#FORM.action#> <cfcase value="submit"> <cfinvoke webservice="http://www.interpressfact.net/webservices/getAds.asmx" search="#FORM.search#" method="adSearch" returnvariable="jobs"> <cfoutput> Title: #jobs.title#<br> adText: #jobs.adText#<br> website: #jobs.website#<br> adUrl: #jobs.adUrl#<br> category: #jobs.category#<br> email: #jobs.email#<br> postdate: #jobs.postdate# </cfoutput> </cfcase> <cfdefaultcase> <form action="<cfoutput>#CGI.script_name#</cfoutput>" method="post"> Search: <input type="text" name="search"> <input type="submit" name="action" value="submit"> </form> </cfdefaultcase> </cfswitch> which, to me, seems like it should be correct. However, I get an error message: Could not generate stub objects for web service invocation. Name: http://www.interpressfact.net/webservices/getAds.asmx. WSDL: http://www.interpressfact.net/webservices/getAds.asmx. java.lang.NullPointerException It is recommended that you use a web browser to retrieve and examine the requested WSDL document for correctness. If the requested WSDL document can't be retrieved or it is dynamically generated, it is likely that the target web service has programming errors. I have Ben's "Advanced CFMX" and have gone over it, but the section on using .ASMX resources is pretty brief and I feel like I'm missing something. What am I doing wrong? Thanks Pete ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.

