Serkan,

We simply don’t have enough information to be helpful.  No idea what line of 
code is causing the exception.  No idea what the “text” is and how you verified 
that is the text that is causing the problem.  We don’t have any call stacks 
that would help indicate the code flow leading up to this point so we have an 
idea why some text is being converted to XML.

Royale is not 100% compatible with Flex.  Probably will never be.  There could 
certainly still be bugs in Royale’s HTTPService.  Maybe resultFormat isn’t 
working in Royale?  Maybe Royale sent something slightly different so the 
server responded differently?  Maybe Flash eats that initial string but the 
browsers don’t.

There are too many possibilities.  You will have to narrow it down and/or 
provide a simple test case that reproduces the problem.

Thanks,
-Alex

From: Serkan Taş <[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Tuesday, February 5, 2019 at 1:07 PM
To: "[email protected]" <[email protected]>
Subject: Re: Work on Emulation

Hi Alex,

I checked the code, as I thought, it is text and parsed on the flex side 
without an error. Same request fails with royale.

I guess flex http service does not check the input. Below is the declaration of 
service in flex code.

<s:HTTPService id="appDataService"
                       method="POST"
                       showBusyCursor="true"
                       resultFormat="text"
                       result="getappinfo_resultHandler(event)"
                       fault="getappinfo_faultHandler(event)"
                       />

Should I convert parameter to an xml text, what you suggest ?

Thanks,
Serkan.
5.02.2019 08:47 tarihinde 
[email protected]<mailto:[email protected]> yazdı:

I am going to check if it is valid or not, but I am sure that it is working 
with flex version.

Thanks,
Serkan

Alıntı Alex Harui <[email protected]><mailto:[email protected]>:


Is contentData valid XML?

From: Serkan Taş 
<[email protected]><mailto:[email protected]>
Reply-To: "[email protected]"<mailto:[email protected]> 
<[email protected]><mailto:[email protected]>
Date: Thursday, January 31, 2019 at 12:08 PM
To: "[email protected]"<mailto:[email protected]> 
<[email protected]><mailto:[email protected]>
Subject: Re: Work on Emulation


 Hi,

After pressing login button I am getting the error below:

[cid:[email protected]]

I guess, the response handler can not handle the response string => 
"1.0.0;Windows 10;STATE_WORKING"

Here is the part of the js that makes the request (URLLoader.js:88-93):

 if (contentData) {
    element.send(contentData);
  } else {
    element.send();
  }
  this.dispatchEvent(new org.apache.royale.events.Event("postSend"));

The "element" is type XMLHttpRequest and I can not debug that object.

Thanks,
Serkan



Reply via email to