[ 
https://issues.apache.org/jira/browse/FLEX-35357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16207114#comment-16207114
 ] 

Alex Harui commented on FLEX-35357:
-----------------------------------

My working test case looks like this:

<?xml version="1.0" encoding="utf-8"?>
<!--

Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements.  See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License.  You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

-->
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
                 xmlns:js="library://ns.apache.org/royale/basic"
                 xmlns:mdl="library://ns.apache.org/royale/mdl"
                 xmlns:local="*"
                 applicationComplete="sendIt()">

    <fx:Script>
                <![CDATA[
                        import org.apache.royale.net.events.FaultEvent;
                        import org.apache.royale.net.events.ResultEvent;
                        
                        protected function sendIt():void
                        {
                service.send("getUTCDateTimeNow", []);
                        }
                        
                        private function onResult(evt:ResultEvent):void
                        {
                                trace("Result=" + evt.data);
                                if (evt.data is String)
                                        received.text = "Received: " + evt.data;
                        }
                        
                        private function onFault(evt:FaultEvent):void
                        {
                                trace("Fault=" + evt.message);
                        }
                        
                ]]>
        </fx:Script>

    <js:beads>
        <js:ClassAliasBead />
        <js:RemoteObject id="service" result="onResult(event)" 
fault="onFault(event)"
                         endPoint = "http://www.booxotel.com/flex2gateway/";
                         destination = "ColdFusion"
                         source = "1_2_0.STime"/>
    </js:beads>

    <js:initialView>
        <js:View>
            <js:beads>
                <js:VerticalLayout />
            </js:beads>
            <js:TextButton text="Send request to CF" click="sendIt()"/>
                        <js:Label id="received" width="300"/>
        </js:View>
    </js:initialView>

    <js:valuesImpl>
        <js:SimpleCSSValuesImpl />
    </js:valuesImpl>

</js:Application>


> FlexJS RemoteObject and ColdFusion
> ----------------------------------
>
>                 Key: FLEX-35357
>                 URL: https://issues.apache.org/jira/browse/FLEX-35357
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: RPC: RemoteObject
>    Affects Versions: Apache FlexJS 0.9.0
>         Environment: Windows 10, Firefox Developer
>            Reporter: Doug Simmons
>             Fix For: Apache FlexJS 0.9.0
>
>         Attachments: MSTest.zip, js-debug.zip
>
>
> The project at https://justpaste.it/1bl2l
> Generates error - stack trace at https://justpaste.it/1bksx
> Doug



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to