Skip to main content
Known Participant
October 14, 2009
Question

Error Consuming Web Services

  • October 14, 2009
  • 2 replies
  • 1249 views

Hi All,

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#" />

</cfinvoke>

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?

This topic has been closed for replies.

2 replies

October 22, 2009

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.

HTH.

Melvin T.

Inspiring
October 14, 2009

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.

HugeBobAuthor
Known Participant
October 15, 2009

Hi Dan,

Thanks for your response.  When I go to the WSDL URL in a browser, an XML file is returned.