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 :
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]>
*Reply-To: *"[email protected]" <[email protected]>
*Date: *Thursday, March 14, 2019 at 1:55 PM
*To: *"[email protected]" <[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%7C5ccb62561a9a43d91de508d6a8bf6dad%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636881937491611657&sdata=ePiv4M0qHrl1UTOMMxGl4xtE9h%2BymaC3YaZhkNBEugQ%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