Home  |  Linux  | Mysql  | PHP  | XML
From:chris h Date:Fri Sep  3 12:31:06 2010
Subject:Re: PHP, Soap, and WDSL
Alternatively you can pass the var through htmlspecialchars...

echo htmlspecialchars( $response );


and for a really simple solution you can echo it inside a textarea...

echo "<textarea> $response </textarea>";


Though you'll likely want to increase the size of the textarea! ;-)




Chris.



On Fri, Sep 3, 2010 at 3:39 AM, Jangita <jangita@jangita.com> wrote:

> On 02/09/2010 10:51 p, SBS Computers wrote:
>
> It's as if the data is not getting to my php page?
>>
>> The view source shows the following data:
>>
>> <?xml version="1.0" encoding="utf-16"?><soap:Envelope xmlns:soap="
>> http://schemas.xmlsoap.org/soap/envelope/">
>> .
>> .
>> .bunch of data
>> .
>> .
>> </response></soap:Body></soap:Envelope>
>>
>> Seems like the data is getting there OK. But a browser normally will not
> output normal xml and hides it (unless there is a <body /> tag or other tags
> that normally display output since it is using the text/html MIME
>
> add this line
>
> header('Content-type: text/plain');
>
> before the echo and see what happens. Also make sure there is no other
> output (echo or any html tags) before the line above
>
> --
> Jangita | +256 76 91 8383 | Y! & MSN: jangita@yahoo.com
> Skype: jangita | GTalk: jangita.nyagudi@gmail.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Navigate in group php.general at sever news.php.net
Previous Next


Your recent visits
Re: [PHP] Apache module PHP 5.3 on Windows
removing an array from a compound array
Re: [PHP] SSI not working on PHP files with Apache



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants