|
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
Navigation:
[Reply to this message]
|