You are here: Re: recieve zip file via xml « PHP Programming Language « IT news, forums, messages
Re: recieve zip file via xml

Posted by Dikkie Dik on 12/24/07 11:51

> $myFile = "prueba.zip";
> $fh = fopen($myFile, 'wb');
>
> fwrite($fh, $call->ClienteRespuesta);

If this really is a SOAP service, it will contain XML. There are a few
ways to send binaries with XML, but a SOAP service will never send a
pure binary as far as I know.

> When i try to open the file with zip i get an error. the file has
> 1024kb so I know there is info in there but i just dont know how to
> access it. I have also tried to base64_decode manually before the SOAP
> parses the info with no luck.

Just take a look at the saved file. If there is any base64 encoded data
inside, it is given within XML tags. So again, it is not the whole response.

But there is also the possibility that it is an attachment. In that
case, the response is a multipart download. I do not know the SOAP
library enough to be able to tell you if it can handle that. If it can
(which would not surprise me), there is probably a method of the client
object that gives you access to the attachments.

Good luck and a nice christmas,
Dikkie

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация