amfphp error wrt REST webservices

34 views
Skip to first unread message

Vikash

unread,
Sep 18, 2009, 3:54:00 AM9/18/09
to Flex India Community
hi,
I am callin a RESTful webservices(netbeans) from amfphp. The web
services returns an string which is an xml.
When i try to call the php file in my amfphp browser i get the
following error:

(Object)#0
message = "faultCode:INVALID_AMF_MESSAGE faultString:'Invalid AMF
message'
faultDetail:'<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
Fatal error: Uncaught exception 'VerboseException' with message
'Cannot modify header information - headers already sent by (output
started at C:\xampp\htdocs\amfphp\services\gis4.php:155)' in C:\xampp
\htdocs\amfphp\core\amf\app\Gateway.php:191
Stack trace:
#0 C:\xampp\htdocs\amfphp\core\amf\app\Gateway.php(191):
amfErrorHandler(2, 'Cannot modify h...', 'C:\xampp\htdocs...', 191,
Array)
#1 C:\xampp\htdocs\amfphp\gateway.php(154): Gateway->service('Content-
type: a...')
#2 {main}
thrown in C:\xampp\htdocs\amfphp\core\amf\app\Gateway.php on line
191
'"
name = "Error"


Plz help me out here.

Vinod M Jacob

unread,
Sep 18, 2009, 9:37:07 PM9/18/09
to Flex India Community
This is a php problem rather than a flex issue..

On Sep 18, 2:54 am, Vikash <showky1...@gmail.com> wrote:
> hi,
>  I am callin a RESTful webservices(netbeans) from amfphp. The web
> services returns an string which is an xml.
> When i try to call the php file in my amfphp browser i get the
> following error:
>
> (Object)#0
>   message = "faultCode:INVALID_AMF_MESSAGE faultString:'Invalid AMF
> message'
> faultDetail:'<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><b­r><br><br><br><br><br><br><br><br><br>

Vikash

unread,
Sep 19, 2009, 1:04:37 AM9/19/09
to Flex India Community
Thanx a lot Vinod...got it. The php had problem. I just removed the
commented echo statements and it worked fine. Those statements
messed up the headers in amfphp :)
Reply all
Reply to author
Forward
0 new messages