>Here is what I have so far...obviously, the system characters in a PDF are causing this to fail...
>
>oSync = CREATEOBJECT("MSSoap.SoapClient30")
>oSync.MSSoapInit("http://localhost:53088/scale_sync.asmx?WSDL")
>...
>l_result = oSync.PDFxfer(cUserName,cPwd,"Send",ALLTRIM(pdf_local.cname),FREAD(nPDFHandle,nSize))
>
>The final parameter is the content of the pdf and the only parameter I need to troubleshoot.
>
I tend to base64 encode binary data before I send it. So I'd read the entire file into a var, then encode it. ex STRCONV(m.lcBinaryFile, 13) then decode it on the other side. It's not really the most efficient way, but I've found it the simplest way from VFP. Of course, that assumes you have control of the web service.