Hi Serkan,

Looking at your last two emails, assuming they are addressing the same problem, 
it appears that your code has a getLoginDataResultHandler that eventually calls 
Operation.send and is passing in a String instead of XML.

You can try debugging your Flex version to see what data is received in 
getLoginDataResultHandler and confirm whether operation.send() is passed XML or 
not.  That might provide the answer as to what data wasn’t transformed as 
expected.  Maybe getLoginDataResultHandler returns XML in Flex and a String in 
Royale and then we would need to debug how getLoginDataResultHandler gets the 
server result and generates XML.

HTH,
-Alex

From: Serkan Taş <[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Wednesday, March 13, 2019 at 12:18 PM
To: "[email protected]" <[email protected]>
Subject: Re: Work on Emulation

Hi Alex,

Here it is :

[cid:[email protected]]


And overrides here :

[cid:[email protected]]

It does not look like it is xml.

>>There may be code needed to intercept server results and check the 
>>resultFormat and convert the String to XML.

Do you mean that it might be fixed in emulation classes ?

If yes, may be you may guide me to make the relevant changes.

Thanks,
Serkan
12.03.2019 05:21 tarihinde Alex Harui yazdı:
Hi Serkan,

Try to debug where the variable named “parameter” gets its value.  One thing to 
keep in mind is that Flash might automatically convert server results into XML, 
but the Royale code may not be doing that yet.  There may be code needed to 
intercept server results and check the resultFormat and convert the String to 
XML.

HTH,
-Alex

From: Serkan Taş 
<[email protected]><mailto:[email protected]>
Reply-To: "[email protected]"<mailto:[email protected]> 
<[email protected]><mailto:[email protected]>, 
"[email protected]"<mailto:[email protected]> 
<[email protected]><mailto:[email protected]>
Date: Monday, March 11, 2019 at 1:19 PM
To: "[email protected]"<mailto:[email protected]> 
<[email protected]><mailto:[email protected]>
Subject: Re: Work on Emulation

Hi Alex,


After implementing event type filter, I passed the event cast error and for 
now, I am getting an error below line (4) in the second picture below:


[cid:[email protected]]

When I check ctype, it is : "application/xml"



[cid:[email protected]]

[cid:[email protected]]

There has been discussion before 
https://github.com/apache/royale-asjs/pull/383#discussion_r249286044<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fpull%2F383%23discussion_r249286044&data=02%7C01%7Caharui%40adobe.com%7Cdd2496d896f84fab214308d6a7e8b8bd%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636881015306446344&sdata=LTHkIt23tYHi8EUxW3u46%2FENelJPr4pk8%2B%2FAYSsjJWw%3D&reserved=0>
 and I commented that it was working without casting.

The value on watch window :

parameters: "username=pinara"

And rising exception for today.

I am not sure what to do for now. It looks like the object is string but as I 
remember the flex version was also working.

I need your advice.

Thanks,
Serkan



Reply via email to