2/23/2011 4:42:52 AM
Title:
Issue in packing the xml object into as object
Hi,
we are invoke the cake php web service in flex part, it give the xml result, In some cases any of warning rises in server ,it will collapse the out xml structure,based on this issue we define the httprequest result foramt as object,In locale its working fine,
In Hosting space some time its will work , some time it will through the following error
"RPC Fault faultString="Error #1096: XML parser failure: Unterminated element." faultCode="Client.CouldNotDecode" faultDetail="null" "
Thanks
2/23/2011 5:11:08 AM
it seems that the xml is not completely received. Try tracing the complete xml and see if its being returned complete from server. Partial xml data can be result of internet or server code problem.
2/23/2011 5:37:08 AM
Hi,
thanks derek,but our knowledge we sure server code is not a problem, because we accessing the same service in browser that time it will give the proper xml data, is there any thing related to internet or response time,
2/23/2011 10:29:14 AM
this can be caused due to some illegal characters in you XML file .You can verify you XML format to be correct using this free tool
http://www.w3schools.com/XML/xml_validator.asp
2/24/2011 5:08:40 AM
hi Zorit,
your thing is correct,but here we are getting fault event for only few time,It will display properly in browser too,so we feel some thing is related local proxy..
2/25/2011 10:14:16 AM
Trace your received xml inside flash. See whether you are receiving the complete xml in response inside result handler of your flash application.
2/28/2011 11:48:11 PM
hi,
some time we got the fault event,inside the fault handler we have trace the error it showing like this
"RPC Fault faultString="Error #1096: XML parser failure: Unterminated element." faultCode="Client.CouldNotDecode" faultDetail="null" ".;
At the same time same web service, it's running properly in browser, so only we are struggle to trace the error
3/3/2011 4:01:52 AM
your problem seems strange. try using a random number in your request so that every request is considered as a new request and there is no caching or proxy interference.
i.e if your url is http://abc.com/a.php
then append a random number
"http://abc.com/a.php?random="+Math.random() which will result in something like this
http://abc.com/a.php?random=0.32434234234