NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Receiving PDF Files


Joined: 25 Apr 2006
Posts: 1
Location: Grand Rapid, MI, USA
Reply with quote
I'm trying to receive a PDF file that I request with the following code:


Code:

$parameters = "<afilename>Inv-8494.PDF</afilename>";
$result = $client->call('DownloadFile',$parameters,false,false,"Content-type: Base64/binary");


I get the error:
Quote:
Error: Response not of type text/xml


So how do I receive a PDF? And if I get it, how do I initiate an actual download?

Thanks for helping another NuSoap Newbie,

Rowindor
View user's profileFind all posts by RowindorSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7887
Reply with quote
If I understand what you're trying to get, you'd a) read file into a variable and b) return it as a result.
See samples that return "Hello World".
Soap is an inter-server protocol. Using it you can pass data from one server to another server. With nusoap you can build both sides: soap client and soap server, both are running in PHP which is of course a server side langugage (in most cases Smile )
Neither browser nor its "download" feature are involved in regular soap based applications.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Receiving PDF Files
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic