I never found any hint of this problem in seven hours of searching Google, House of Fusion and Macromedia so I am placing my fix here for the archives.  Apparently YOU MUST BE VERY CAREFULL of the content of any Application.cfm file that is in the directory of a CFC being called as a webservice.  

I suspect it's a white space issue, because apparently the Application.cfm file is called when the cfc/webservice is requested.  Does anybody know of any documentation along these lines?  A brief search did not produce any immediate hits.

Anyway I now have my "Hello World" webservice now producing a proper wsdl at this address [http://www.bloodsource.org/BSwebservice/xml_test.cfc?wsdl].  What I ended up doing was putting the cfc in a new subdirectory and creating a blank Application.cfm file in that directory to override the Application.cfm file in the root of my website.  Just for fun, I removed the Application.cfm file and the WSDL seems to still be working but I wonder if this is because the working version was cached or does a CFC/webservice only call an application.cfm file in the same directory, not any higher directories like a .cfm file would?

Anyway thanks for tyring to help Mack.

> Ok, I created this super simple "hello world" web service cfc, put it
> on my web server and tried to access the wsdl.  I get an "AXIS error".  
> What am I missing here?
>
> <url>
> http://www.bloodsource.org/xml_test.cfc?wsdl
> </url>
>
> <code>
> <cfcomponent>
> <cffunction name="read" access="remote" returntype="string">
> <cfset myResult="foo">
> <cfreturn myResult>
> </cffunction>
> </cfcomponent>
> </code>
>
> <error>
> AXIS error
> Sorry, something seems to have gone wrong... here are the details:
>
> Fault - [java.lang.ClassNotFoundException : xml_test][; nested
> exception is:
> coldfusion.xml.rpc.CFCInvocationException: [java.lang.
> ClassNotFoundException : xml_test][
> AxisFault
> faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.
> generalException
> faultSubcode:
> faultString: [java.lang.ClassNotFoundException : xml_test][; nested
> exception is:
> coldfusion.xml.rpc.CFCInvocationException: [java.lang.
> ClassNotFoundException : xml_test][
> faultActor:
> faultNode:
> faultDetail:
</error>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to