Hi Serkan,

That doesn’t make sense to me.  Is the same code (before your proposed changes) 
in the Flex version of AbstractOperation?  If so, then how does 
parameters.toXMLString() not throw an exception in Flex?

-Alex

From: Serkan Taş <[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Friday, March 15, 2019 at 11:28 PM
To: "[email protected]" <[email protected]>
Subject: Re: Work on Emulation

Hi Alex,

I checked the flow in debug and can say that there is no conversion for XML, it 
is just string and I guess we have to check it and than use it as string.

If change the AbstractOperation.sendBody as below :

if (ctype == CONTENT_TYPE_XML)
            {

                if (parameters is String && xmlEncode == null)
                {
                    paramsToSend = parameters as String;
                } else {
                    paramsToSend = parameters.toXMLString();
                }

then in js debug :

[cid:[email protected]]

can see that is passes.

Thanks,
Serkan
15.03.2019 06:55 tarihinde Alex Harui yazdı:
If the Flex version works and in the Flex version a string is being passed into 
authAndCall yet in Operation it is XML, we need to understand where Flex code 
or the Flash runtime converted the string back to XML.  So you might need to 
check again more carefully at the Flex version.

Then we will know where we might want to put similar conversion code.

Thanks,
-Alex

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

Alex, I already debugged the flex code and then sent the code pieces.
Although autheandcall method has parameter as string, the method 
loginresulthandler create and xml and passes the xml string as parameter.
Ant the flex version works as expected.
Tomorrow I will send you the orginal flex debug results of 
abstractoperation.sendbody method call.
Note: I ll take care of event casting issue later.


Thanx
Serkan
Android için 
Outlook<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fghei36&data=02%7C01%7Caharui%40adobe.com%7C2551ebc4ca5843a0b61508d6a9d888e3%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636883144810310442&sdata=FHyKbvy2JBZTNfrnWTMoCMRFxtqG6%2BYU9weVIXJxeAQ%3D&reserved=0>'u
 edinin




On Thu, Mar 14, 2019 at 11:46 PM +0300, "Alex Harui" 
<[email protected]<mailto:[email protected]>> wrote:
Hi Serkan,

In the code you posted, it looks like “authAndCall” has a “parameter” that is a 
String.  It is not obvious to me how parameter could be XML.  I suggest that 
debug into that first before changing any emulation code.

Also, you may have to pay close attention to code like 
XML(event.target.data).result.  That converts event.target.data to XML (I 
hope), but what you get from the “result” property may not be XML or XMLList as 
it might be in Flash so there might need to be another cast or coercion.  
Again, debugging into it and comparing against the Flash version may help.

HTH,
-Alex




Reply via email to