Link to home
Start Free TrialLog in
Avatar of SimonHowald
SimonHowald

asked on

Flex - httpservice error while getting xml

I'm using php to return xml. When I use this php to fetch data from localhost from flex, I get below error:

http://127.0.0.1/fetch.php] Unable to load datasource, [FaultEvent fault=[RPC Fault faultString="Error #1085" faultCode="Client.CouldNotDecode" faultDetail="null"] messageId="C3830F4F-D4D1-4499-91A5-8B84FE3D771E" type="fault" bubbles=false cancelable=true eventPhase=2


Suggest me if I'm doing anything wrong here.


below is the code for fetch.php:
<?php header('Content-type: text/xml'); ?>
<?xml version="1.0" encoding="utf-8"?>
<items>
	<item a="1" b="2" />
	<item a="3" b="4" />
</items>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Roonaan
Roonaan
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It seems like there is an incorrect call being made to the file in Flex. Can you post the code you are using to call the file.