header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
syeddiwan
Points:0
Posts:0

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




1
Derek
Points: 0
Posts:0
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
syeddiwan
Points: 0
Posts:0
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,

3
Zorit
Points: 0
Posts:0
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

4
syeddiwan
Points: 0
Posts:0
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..

5
bob_senior
Points: 1320
Posts:0
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.


6
syeddiwan
Points: 0
Posts:0
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

7
Denley
Points: 0
Posts:0
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


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 1+5 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions