Mark T. wrote:
The WSDL should have all the information required to upload data to
the service. If you want sample code, you may be able to generate it
from the WSDL using wsdl2ruby from the SOAP4R library. I wrote a
getting started guide here:
Hope that helps.
thanks for the reply, and link - some good stuff there!
I’ve got things kind of working now. I can connect to my soap service
and call the create_document method with a few parameters. The problem
is, if the file is big (say 400Mb), it requires loading it into memory
on the consumer side and then again when it is transferred.
The server does something like:
#(document) is a array of strings
output = open(Tempfile.new(name),‘w’)
The file is readable and things work. Is it possible, in the event of
having a large file, to stream the file to the server in chunks?
I’ve found various code snippets, like adding
def in_chunks(size=1024) ; yield read(size) until eof? ; end
to File, but in terms of using it in the client - I’m stumped
(especially since I need to use PHP also).
Do you guys think SOAP is the right mechanism for this, or should I now
be using REST? (with REST, I’d http::post the above to my
a confused O.