remote cfc calls
I have a simple cfc setup for remote calls (web service) that I have written and while it is a slam dunk to consume it from a cf system with cfinvoke I don't have a clue as to what instructions I need to provide to user so that his application (written in Progress 4GL) can make the calls to the service.
<!--- this code has been simplified --->
<cfcomponent>
<cffunction name="uploadFile" access="remote" output="no" returntype="string" >
<cfargument name="email" type="string" required="no" default="">
<cfargument name="pw" type="string" required="no" default="">
<cfargument name="pid" type="string" required="no" default="">
<cfargument name="fileToUpload" type="string" required="no" default="">
<cfargument name="buildID" type="string" required="no" default=""><!--- code removed for authentiction stuff and test file to ensure it is a PDF then write the file to disk --->
<cfsavecontent variable="results">
<result>Done Upload</result>
</cfsavecontent>
<cfreturn results>
</cffunction>
</cfcomponent>
This is what my cfinvoke code looks like...
<cfinvoke method="uploadPdf" returnvariable="results" webservice="http://demo/myWebService.cfc?wsdl">
<cfinvokeargument name="pid" value="#pid#">
<cfinvokeargument name="email" value="#email#">
<cfinvokeargument name="pw" value="#pw#">
<cfinvokeargument name="pdfUpload" value="#binaryData#">
<cfinvokeargument name="description" value="#description#">
<cfinvokeargument name="iNumber" value="#iNumber#">
<cfinvokeargument name="pdfFileName" value="#pdfFileName#">
<cfinvokeargument name="buildID" value="#buildID#">
</cfinvoke>
So how would a non-coldfusion system consume my web service?
Thanks, Peter
