Reply to Re: SOAP envelope change from Content-Type: text/xml to text/html

Your name:

Reply:


Posted by Janwillem Borleffs on 04/04/06 22:24

Sebastian Araya wrote:
> I'm running PHP 5.2 on gentoo distribution. I'm testing SOAP new
> extensions, but I'm facing a strange problem... I built a little class
> and used setClass() and handle() to make PHP handle interconnectivity,
> but for some ugly reason when I update a public method, the SOAP
> envelope changed from:
>

Perhaps that the method outputs some white space. Test case:

The following returns text/xml as the content type:
<?php
header("Content-Type: text/xml");
?>

The following throws a warning (headers already sent), but when warnings
aren't displayed (e.g. because of the setting of the display_errors
directive or the error_reporting level), it just results in the content type
being set to text/html:

<?php
print ' ';
header("Content-Type: text/xml");
?>


JW

[Back to original 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

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