Okay, so I'm not sure why this is happening, but a friend of mine was having trouble using Simon Horwith's "Simple SOAP Example".
The error he was getting was the following:
I tried the same example code and got the same error. The odd thing was that the error wouldn't happen when using ColdFusion 6.1 (we tested it on CF7.01 Standard running on both IIS and Apache).
After playing with it for a while, I found that if I renamed the CFC file to "anything" other than soapexample.cfc the code ran without fail.
If anyone has any further input on this I'd be happy to hear suggestions.
Note: When renaming the CFC file, you'll need to update a couple variable values at the top of the index.cfm file within the <cfscript/> block.
Update 1: Jared Rypka-Hauer and I spent some time trying to figure this out. We tried updating the Apache AXIS to v1.3, we tried using the latest Cumulative Hotfit for ColdFusion 7, and several other ideas. So far, what we've discovered is that the problem has to do with the displayname attribute set in the <cfcomponent/> tag. For some reason if you leave it to the default setting of "SOAP Exmaple" (or delete the space) the error happens. If, you rename it to anything else it seems to work. Its late, and I'm tired. I'll tackle this another time when I can spare some of it (good luck with that :)).
Its "possible" there may be a bug somewhere, but our tests were not conclusive enough. Jared has to meet with Tom Jordal soon from Adobe, so he's going to run it by him first to see his thoughts before we submit it as a bug.
http://theword.zeroone.co.nz/index.cfm/2006/4/4/co...
coldfusion.jsp.CompilationFailedException: Errors reported by Java compiler: Found 5 semantic errors compiling "/local/opt/app/coldfusionmx3/stubs/WS-1532004429/DefaultNamespace/TestWsCfcSoapBindingStub.java": 175. if (axisFaultException.detail != null) { <-----------------------> *** Error: No field named "detail" was found in type "org/apache/axis/AxisFault". 176. if (axisFaultException.detail instanceof java.rmi.RemoteException) { <-----------------------> *** Error: No field named "detail" was found in type "org/apache/axis/AxisFault". 177. throw (java.rmi.RemoteException) axisFaultException.detail; <-----------------------> *** Error: No field named "detail" was found in type "org/apache/axis/AxisFault". 179. if (axisFaultException.detail instanceof coldfusion.xml.rpc.CFCInvocationException) { <-----------------------> *** Error: No field named "detail" was found in type "org/apache/axis/AxisFault". 180. ....
On some machines it simply does not work. I was trying stuff wih "displayname" "style", changing file name - it doesn't work..... On different servers it works fine.... I have noticed that it has to do something with java version which server uses. On one server I was able to launch webservices but it was after downgrading to java1.4.2_09 .... but one some servers it still doesn't want to work... I am hopeless..... :( I dont belive that problem lies in Axis version because I have the same versions on several servers and on some it works fine. Any other ideas ?