apache-flex

WCF REST: What is it expecting my XML to look like in requests?

丶灬走出姿态 提交于 2021-02-18 01:00:29
问题 I have the following method in my WCF service: [OperationContract] [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Xml, RequestFormat = WebMessageFormat.Xml)] public int GetOne(string param1, string param2) { return 1; } I am sending xml from a Flex application, and it takes an object that looks like this: { param1: "test", param2: "test2" } and turns it into the following request: POST http://localhost:8012/MyService.svc/GetOne HTTP/1.1

WCF REST: What is it expecting my XML to look like in requests?

本小妞迷上赌 提交于 2021-02-18 00:55:08
问题 I have the following method in my WCF service: [OperationContract] [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Xml, RequestFormat = WebMessageFormat.Xml)] public int GetOne(string param1, string param2) { return 1; } I am sending xml from a Flex application, and it takes an object that looks like this: { param1: "test", param2: "test2" } and turns it into the following request: POST http://localhost:8012/MyService.svc/GetOne HTTP/1.1

How to overcome “No destination with id '<destination id>' is registered with any service”

牧云@^-^@ 提交于 2021-02-10 18:10:12
问题 I am looking for suggestion about the error called "No destination with id '<destination id>' is registered with any service." this error is coming when I try to connect the remote method in Java from flex. 回答1: I suppose you have not synchronized your remoting-config.xml of server and client version. The server version just hasn't this destination there. 回答2: The solution for "No destination with id '' is registered with any service" problem is that you have to make sure your destination

How to create a 64 bit desktop application (AIR) using Flash builder

允我心安 提交于 2021-02-10 14:39:04
问题 I need to convert my adobe air application (using Flex 4.6.0.) into 64 bit desktop application (Mac OS and Windows). Could you explain how to do ? Indeed, macOS Catalina (macOS 10.15) won't support 32 bit apps ! So I need to find an alternative quickly. Thanks for helping. Best regard 回答1: In order to update to 64 bit, you will have to update your sdk. 4.6 version is very old (2012 maybe?). First update your SDK to AIR 32. Then you can use tag <architecture>64</architecture> in the

Action Script 3 TextArea Component in Adobe Animate

拟墨画扇 提交于 2021-01-29 20:07:33
问题 I need TextField with scroll. I've found example: https://help.adobe.com/ru_RU/FlashPlatform/reference/actionscript/3/fl/controls/TextArea.html#htmlText First error was fl.controls not found. I`ve added "d:\Program Files\Adobe\Adobe Animate 2020\Common\Configuration\Component Source\ActionScript 3.0\User Interface\" folder as source. After that if I run example: import fl.controls.TextArea; var myText:String = ""; myText += "<p>You can use the <b> tag to create <b>bold</b> text.</p>"; myText

Get Object nested property using dot separated string

本小妞迷上赌 提交于 2021-01-28 14:24:50
问题 Is there in Flex any utility to get object nested property using dot separated string like this: SomeUtil.getObjectProperty(object, "child.property"); 回答1: You can roll your own, assuming object is a dynamic object : public function getObjectProperty(object:Object, property:String):Object { var parts:Array = property.split("."); if(parts && parts.length == 2 && object && object[parts[0]] && object[parts[0]][parts[1]]) { return object[parts[0]][parts[1]]; } return null; } Here is another one

Get Object nested property using dot separated string

久未见 提交于 2021-01-28 14:23:35
问题 Is there in Flex any utility to get object nested property using dot separated string like this: SomeUtil.getObjectProperty(object, "child.property"); 回答1: You can roll your own, assuming object is a dynamic object : public function getObjectProperty(object:Object, property:String):Object { var parts:Array = property.split("."); if(parts && parts.length == 2 && object && object[parts[0]] && object[parts[0]][parts[1]]) { return object[parts[0]][parts[1]]; } return null; } Here is another one