-
1. Re: How to pass a file to a web service.
Owain North Mar 10, 2011 7:48 AM (in response to ilssac)You can only ever pass file *content* to a webservice. A remote CF box cannot see a file on your local PC or any machine other than one connected over a network.
Http isn't great for sending large files, things like ftp are used for that purpose.
How big is the file you're trying to send?
-
2. Re: How to pass a file to a web service.
ilssac Mar 10, 2011 8:01 AM (in response to Owain North)76.8 MB is the file I am using for testing purposes. This file represents a top 5% of the largest amount of data we expect to receive by this web service. This test file works well with the HTTP. But we first tried as a direct web service receiving the data as a stream. That caused the Jave Heap Out Of Memory errors.
I was just wondering if there was a web service version of the http code, where the file will be uploaded the same way. Looks like that is not the case.
I.E. something like this:
<cfset ws = createObject("webservice","url.webservice.wsdl")> <cfset ws.dataSubmit(AuthCode,file)>Where the file is uploaded, not just sent as content.
How would you use FTP with a tie in to futher processing by CFML code once the file is received?
This is for B2B [really G2G -- Government (county) to Government (state)]. We are recieving data that will be processed and a reply will be returned to their system.

