Deploying Web Services problem
I'm trying to build a very basic web service that will sit on a remote server and query the live database
<cfcomponent displayName="invoiceUtilities" output="false">
<cffunction name="getInvoiceDetailsFromWebService" returnType="Query" access="remote" output="false">
<cfargument name="invoiceDetailId" type="String" required="true">
<cfquery datasource="#dataSource#" name="invoiceQuery">
SELECT invoiceId,productType
FROM InvoiceDetails
WHERE InvoiceDetailId='#invoiceDetailId#'
</cfquery>
<cfreturn invoiceQuery/>
</cffunction>
</cfcomponent>
Currently whilst I'm testing it - it is sat within a different application (as it would be normally) but on my dev server on my box
I can access the WSDL via the browser but when I try and call it from my application - I get the following error:
Cannot generate stub objects for web service invocation. | |
Name: http://localhost:8500/llsintranet/hip_view_657836ty/invoiceUtilities.cfc?wsdl. WSDL: http://localhost:8500/llsintranet/hip_view_657836ty/invoiceUtilities.cfc?wsdl. org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name: C:\ColdFusion9\stubs\WS306957249\llsintranet\hip_view_657836ty\InvoiceUtilities.java. Hint: you may have mapped two namespaces with elements of the same name to the same package name. It is recommended that you use a web browser to retrieve and examine the requested WSDL document to ensure it is correct. If the requested WSDL document cannot be retrieved or is dynamically generated, it is likely that the target web service has programming errors. | |
This is the WSDL:
WSDL created by ColdFusion version 9,0,0,241018-->
method="getInvoiceDetailsFromWebService"
returnvariable="invoiceQuery">
<cfinvokeargument name="invoiceDetailId"
value="#Ltrim(invoiceDetailId)#">
</cfinvoke>
<cfdump var="#invoiceQuery#"/>
