I'm using CFINVOKE to consume an enterprise web service. Now, I'm not well versed in web services. But, from reading the CF documentation on them, you're supposed to be able to use <CFINVOKE...> to access them. So, on my test page I have:
<cfinvoke webservice="http://domain.xxx/webservice/EnterpriseWebService?WSDL" method="neededMethod" returnVariable="theOutput"> <cfinvokeargument name="input1" value="#myInput#" />
I'm trying to use a method called "neededMethod". When the <cfinvoke...> tag is reached, I get the following error: coldfusion.jsp.CompilationFailedException: Errors reported by Java compiler: Found 2 semantic errors compiling "/export/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/stubs/WS-147004589 /EnterpriseWebService/webservice/xxx/gov/us/EnterpriseWebService.java: 13. public EnterpriseWebService.webservice.xxx.gov.us.EnterpriseWebServicePort getEnterpriseWebServicePort() throws javax.xml.rpc.ServiceException; ^--------^ *** Semantic Error: Type "EnterpriseWebService.webservice.xxx.gov.us.EnterpriseWebService$webservice" was not found. 15. public EnterpriseWebService.webservice.xxx.gov.us.EnterpriseWebServicePort getEnterpriseWebServicePort(java.net.URLportAddress) throws javax.xml.rpc.ServiceException; ^--------^ *** Semantic Error: Type "EnterpriseWebService.webservice.xxx.gov.us.EnterpriseWebService$webservice" was not found 8 semantic errors compiling "/export/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/stubs/WS-147004589 /EnterpriseWebService....
I looked at the Java files in the referenced directories. They seem to be generated by something called Axis. But, compiling these fail. Is there something in the CF admin that I can tweak?
First thing I noticed is that your web service url does not have a file extension. To see if this matters, try to browse to the wsdl page.
Thanks for your response. When I go to the WSDL URL in a browser, an XML file is returned.
Place your wsdl on your URL browser, and at the bottom of the output, there should be a an http pointing to your webserver. Make sure that your server domain or IP address is listed on the http pointer. If not, then correct and run.
Try that, and see how it goes.