From users-return-446-archive-asf-public=cust-asf.ponee.io@royale.apache.org Fri Feb 16 16:46:43 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D8BEE180647 for ; Fri, 16 Feb 2018 16:46:40 +0100 (CET) Received: (qmail 9995 invoked by uid 500); 16 Feb 2018 15:46:39 -0000 Mailing-List: contact users-help@royale.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@royale.apache.org Delivered-To: mailing list users@royale.apache.org Received: (qmail 9985 invoked by uid 99); 16 Feb 2018 15:46:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Feb 2018 15:46:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 46BBE1A088D for ; Fri, 16 Feb 2018 15:46:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.963 X-Spam-Level: *** X-Spam-Status: No, score=3.963 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_INFOUSMEBIZ=0.75, NORMAL_HTTP_TO_IP=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01, T_MIME_MALF=0.01, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id DF2CuBY40hIx for ; Fri, 16 Feb 2018 15:46:32 +0000 (UTC) Received: from mail-yw0-f179.google.com (mail-yw0-f179.google.com [209.85.161.179]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id E78135F18F for ; Fri, 16 Feb 2018 15:46:31 +0000 (UTC) Received: by mail-yw0-f179.google.com with SMTP id y186so1664454ywf.7 for ; Fri, 16 Feb 2018 07:46:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=l3rlDRmOzDnKsrbbk35J1LEdWNifsqJaUIhxo8rPsM8=; b=G4IaleQe13KaNXrIyWiWD6GSBkKOEMHnj2EKJUAhscFf2Ydn3JrahNosIpt4dHm6DG xYKHKsqagsbmeG8iZPqB/knsGb1NkZbZtcstvJ7rC537baDJbnHpzfUsz1trtSkOGe48 7qMCl/msOCb9E7F/vbfTbtd4096oqJ9ZG0Xz/W0pKbPqTu7ZaFWce8PJubNqejzvd/YI PpTndsMDrKTUfjNFrOow4SX3DgjmwjT//gKXJxK5ddCJoTYjty27Hxim0kjxFu5KtI6P SUfSYZ5YnURV5aTrKy3/khhGyvkij9usqgYSxNiiZADZcE41uEh2KhaWpxDY9sEKFdiU gnhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=l3rlDRmOzDnKsrbbk35J1LEdWNifsqJaUIhxo8rPsM8=; b=RkGDE1CopLY8A2zmmo8rCgWsgyHfhHqdQmZJKWPwtCaTbO7JnWKgj8bvIrp04EO7Jl E6BZfi/LG90jf3FMSgk5PTzSg7+RmUCRBZalf9sYiST9I0OB4GXqowzmRpYXMgpavm4E zs/ocsok5pw7C75wY8ksTyNRGASgDf4Wq8SIE/L/qz4hHChxwZTax4vh+3Mw6JIUD14v I1iL73R3Oi/JCImpQgvBCFVyx3om0LiMeAhp5mg+or85QlnmuCh9xt/dO7/vb239ZDHW SDUURpQq2ZH+KocHFEiwqjGb1WCa5qsmhnA8NTlNb1jUluWQS7lsEIgBDf3vC6twrecY R22g== X-Gm-Message-State: APf1xPD1Zta45yIYWhP9r+mcIpx0f9B3IwmnyM5INON5KrynEyDQ41oG 0L9xtymF5ZuI2dXK1bYzHRqdF1sUZwg8UmswO3I= X-Google-Smtp-Source: AH8x2243liNHCY7tTe0r1mQuxbO05+A2X7dAmwoq3GcUZS1bAfs9cp8ZMtWcg4uJmREFMFhQa9/KnR/kGlmAuL+p65U= X-Received: by 10.13.224.6 with SMTP id j6mr4954310ywe.484.1518795984787; Fri, 16 Feb 2018 07:46:24 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a25:8707:0:0:0:0:0 with HTTP; Fri, 16 Feb 2018 07:46:24 -0800 (PST) Received: by 2002:a25:8707:0:0:0:0:0 with HTTP; Fri, 16 Feb 2018 07:46:24 -0800 (PST) In-Reply-To: References: <000001d35e9c$a9ca8f90$fd5faeb0$@nbtbizcapital.com> <1510811925631-0.post@n8.nabble.com> <1515722919570-0.post@n8.nabble.com> <022801d38b59$29946e60$7cbd4b20$@nbtbizcapital.com> <000001d38dac$81d33430$85799c90$@nbtbizcapital.com> <7179F14D-97AF-4A1A-AF7F-59F0D90EACA1@gmail.com> From: Prashant Kumar Date: Fri, 16 Feb 2018 21:16:24 +0530 Message-ID: Subject: Re: RemoteObject To: users@royale.apache.org Content-Type: multipart/alternative; boundary="94eb2c075be828dd430565563fde" --94eb2c075be828dd430565563fde Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I tested couple of scenarios of FlexJS AMF. only fews are working. I will check with Royal and share output tomorrow. On 16-Feb-2018 8:30 PM, "Piotr Zarzycki" wrote: > Frederic, > > Could you share some hello world implementation of AMFPHP along with Hell= o > World app in Flex ? I may also look into that and compare the results. Ju= st > don't want to waste time on setup things to prepare AMFPHP stuff. Do you > have such things ? > > Thanks, Piotr > > > 2018-02-16 15:57 GMT+01:00 Fr=C3=A9deric Cox : > >> Hi Carlos, >> >> Sure I=E2=80=99ll see what I can do. Feel I have lots to leatn about Roy= ale and >> AMF (it just works with Flash/AIR so not up to date about the inner >> workings). >> >> I=E2=80=99ll try to test the examples over the weekend. Do you think the= AMFPHP >> version could be an issue or is it assumed to work in Royale if it works= in >> Flex? >> >> Verstuurd vanaf mijn iPhone >> >> Op 16 feb. 2018 om 12:28 heeft Carlos Rovira >> het volgende geschreven: >> >> Hi Frederic, >> thanks for filling this and take a look into AMF! >> Hope you could help us a bit with this. >> >> 2018-02-16 0:21 GMT+01:00 Fr=C3=A9deric Cox : >> >>> Hi Alex, >>> >>> I created https://github.com/apache/royale-asjs/issues/119, hope that >>> is in the correct place and with more readable mark-up. >>> >>> Regards, >>> >>> Fr=C3=A9deric >>> >>> On Thu, Feb 15, 2018 at 8:57 PM, Alex Harui wrote: >>> >>>> Hi Frederic, >>>> >>>> Where is this output you posted coming from, a network monitor? It wa= s >>>> too hard to read, so please create a bug report on GitHub and post it = there. >>>> >>>> You might be able to use a network monitor to compare what Flex sent v= s >>>> what Royale is sending. What does your Flex usage of RemoteObject loo= k >>>> like? >>>> >>>> HTH, >>>> -Alex >>>> >>>> From: Fr=C3=A9deric Cox >>>> Reply-To: "users@royale.apache.org" >>>> Date: Thursday, February 15, 2018 at 5:09 AM >>>> To: "users@royale.apache.org" >>>> Subject: Re: RemoteObject >>>> >>>> Hi Piotr, >>>> >>>> Thanks, I installed the extension and now I'm not getting the CORS >>>> error anymore. >>>> I'm not getting any fault or result event triggered either.... >>>> >>>> The endPoint set is >>>> https://clients.cityfashion.dev.exuvis.com/amfphp/gateway.php >>>> >>>> >>>> This is correct, right? (I use this endpoint in Flex and that works >>>> fine) >>>> >>>> >>>> 1. Request URL: >>>> https://clients.cityfashion.dev.exuvis.com/amfphp/gateway.php >>>> >>>> 2. Request Method: >>>> OPTIONS >>>> 3. Status Code: >>>> 200 OK >>>> 4. Remote Address: >>>> 188.93.153.101:443 >>>> >>>> 5. Referrer Policy: >>>> no-referrer-when-downgrade >>>> 1. Response Headersview source >>>> 1. Connection: >>>> keep-alive >>>> 2. Content-Encoding: >>>> gzip >>>> 3. Content-Length: >>>> 286 >>>> 4. Content-Type: >>>> text/html; charset=3DUTF-8 >>>> 5. Date: >>>> Thu, 15 Feb 2018 13:08:17 GMT >>>> 6. Server: >>>> nginx >>>> 7. Vary: >>>> Accept-Encoding >>>> 2. Request Headersview source >>>> 1. Accept: >>>> */* >>>> 2. Accept-Encoding: >>>> gzip, deflate, br >>>> 3. Accept-Language: >>>> en-GB,en-US;q=3D0.9,en;q=3D0.8 >>>> 4. Access-Control-Request-Headers: >>>> content-type >>>> 5. Access-Control-Request-Method: >>>> POST >>>> 6. Connection: >>>> keep-alive >>>> 7. Host: >>>> clients.cityfashion.dev.exuvis.com >>>> >>>> 8. Origin: >>>> null >>>> 9. User-Agent: >>>> Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) >>>> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safa= ri/537.36 >>>> >>>> Response is: >>>> >>>>

amfphp and this gateway are installed correctly. You may now connec= t >>>> to this gateway from Flash.

Note: If you're reading an old tutor= ial, >>>> it will tell you that you should see a download window instead of this >>>> message. This confused people so this is the new behaviour starting fr= om >>>> amfphp 1.2.

>>> '= >View >>>> the amfphp documentation

Load the service >>>> browser

>>>>
>>>> Should I target a specific file with the JS version? Should the
>>>> endPoint be different?
>>>>
>>>> On Thu, Feb 15, 2018 at 12:07 PM, Piotr Zarzycki <
>>>> piotrzarzycki21@gmail.com> wrote:
>>>>
>>>>> Frederic,
>>>>>
>>>>> It looks like it is not problem with framework, but rather CORS issue=
.
>>>>> Maybe try to install this plugin [1] and add to the list your url.
>>>>>
>>>>> [1] https://chrome.google.com/webstore/detail/allow-control-
>>>>> allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi?hl=3Den
>>>>> 
>>>>>
>>>>> Piotr
>>>>>
>>>>> 2018-02-15 12:04 GMT+01:00 Fr=C3=A9deric Cox :
>>>>>
>>>>>> For me it is still not working in latest release 0.9.1. I based my
>>>>>> example on the example in the SDK.
>>>>>>
>>>>>> 
>>>>>> >>>>> 
>>>>>> "
>>>>>> xmlns:js=3D"library://ns.apache.org/royale/basic
>>>>>> 
>>>>>> "applicationComplete=3D"applicationCompleteHandler(event);">
>>>>>>
>>>>>>     
>>>>>>         >>>>>             import org.apache.royale.net
>>>>>> 
>>>>>> .RemoteObject;
>>>>>>             import org.apache.royale.net.events.FaultEvent;
>>>>>>             import org.apache.royale.net.events.ResultEvent;
>>>>>>
>>>>>>             privatefunctionapplicationCompleteHandler(evt:Event):voi=
d
>>>>>> {
>>>>>>                 testLabel.text =3D "Requesting from AMF";
>>>>>>                 service.send("getPackages", null);
>>>>>>             }
>>>>>>
>>>>>>             privatefunctionamfFaultHandler(evt:FaultEvent):void{
>>>>>>                 testLabel.text =3D "Fault in calling AMF";
>>>>>>             }
>>>>>>
>>>>>>             privatefunctionamfResultHandler(evt:ResultEvent):void{
>>>>>>                 testLabel.text =3D "Result received from AMF";
>>>>>>             }
>>>>>>         ]]>
>>>>>>     
>>>>>>
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>
>>>>>>    
>>>>>> 
>>>>>> >>>>> "amfFaultHandler(event)"
>>>>>> endPoint =3D "https://winkelbeheer.cityfashion.be/amfphp/gateway.php
>>>>>> 
>>>>>> "
>>>>>> destination =3D "Meta"
>>>>>> source =3D "Meta"/>
>>>>>> 
>>>>>>
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>
>>>>>>
>>>>>> It is not working and showing the following error in the browser:
>>>>>>
>>>>>> Failed to load https://winkelbeheer.cityfashion.be/amfphp/gateway.ph=
p
>>>>>> :
>>>>>> Response to preflight request doesn't pass access control check: No
>>>>>> 'Access-Control-Allow-Origin' header is present on the requested res=
ource.
>>>>>> Origin 'http://localhost' is therefore not allowed access.
>>>>>> Language.js:238destination fault handler
>>>>>>
>>>>>>    1. {code: -1004, message: "Invalid response type.", detail: "Inva=
lid
>>>>>>    XMLHttpRequest response status or type.", data: null}
>>>>>>       1. code:-1004
>>>>>>       2. data:null
>>>>>>       3. detail:"Invalid XMLHttpRequest response status or type."
>>>>>>       4. message:"Invalid response type."
>>>>>>       5. __proto__:Object
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> It is able to compile and run regardless of the errors in compile lo=
g:
>>>>>>
>>>>>> Feb 15, 2018 11:51:04 AM com.google.javascript.jscomp.LoggerErrorMan=
ager
>>>>>> println
>>>>>> SEVERE: /Users/frederic/Desktop/Personal/Web
>>>>>> Projects/Workspaces/Royale/HelloRoyale/bin/js-debug/org/apac
>>>>>> he/royale/reflection/AccessorDefinition.js:12: ERROR - required
>>>>>> "org.apache.royale.reflection.TypeDefinition" namespace not provided
>>>>>> yet
>>>>>> goog.require('org.apache.royale.reflection.TypeDefinition');
>>>>>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>>>>
>>>>>> Feb 15, 2018 11:51:04 AM com.google.javascript.jscomp.LoggerErrorMan=
ager
>>>>>> println
>>>>>> SEVERE: /Users/frederic/Desktop/Personal/Web
>>>>>> Projects/Workspaces/Royale/HelloRoyale/bin/js-debug/org/apac
>>>>>> he/royale/reflection/AccessorDefinition.js:13: ERROR - required
>>>>>> "org.apache.royale.reflection.VariableDefinition" namespace not
>>>>>> provided yet
>>>>>> goog.require('org.apache.royale.reflection.VariableDefinition');
>>>>>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>>>>
>>>>>> Feb 15, 2018 11:51:04 AM com.google.javascript.jscomp.LoggerErrorMan=
ager
>>>>>> println
>>>>>> SEVERE: /Users/frederic/Desktop/Personal/Web
>>>>>> Projects/Workspaces/Royale/HelloRoyale/bin/js-debug/org/apac
>>>>>> he/royale/reflection/MethodDefinition.js:14: ERROR - required
>>>>>> "org.apache.royale.reflection.TypeDefinition" namespace not provided
>>>>>> yet
>>>>>> goog.require('org.apache.royale.reflection.TypeDefinition');
>>>>>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>>>>
>>>>>> Feb 15, 2018 11:51:04 AM com.google.javascript.jscomp.LoggerErrorMan=
ager
>>>>>> println
>>>>>> SEVERE: /Users/frederic/Desktop/Personal/Web
>>>>>> Projects/Workspaces/Royale/HelloRoyale/bin/js-debug/org/apac
>>>>>> he/royale/reflection/ParameterDefinition.js:13: ERROR- required
>>>>>> "org.apache.royale.reflection.TypeDefinition" namespace not provided
>>>>>> yet
>>>>>> goog.require('org.apache.royale.reflection.TypeDefinition');
>>>>>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>>>>
>>>>>> Feb 15, 2018 11:51:04 AM com.google.javascript.jscomp.LoggerErrorMan=
ager
>>>>>> println
>>>>>> SEVERE: /Users/frederic/Desktop/Personal/Web
>>>>>> Projects/Workspaces/Royale/HelloRoyale/bin/js-debug/org/apac
>>>>>> he/royale/reflection/TypeDefinition.js:15: ERROR - required
>>>>>> "org.apache.royale.reflection.VariableDefinition" namespace not
>>>>>> provided yet
>>>>>> goog.require('org.apache.royale.reflection.VariableDefinition');
>>>>>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>>>>
>>>>>> Feb 15, 2018 11:51:04 AM com.google.javascript.jscomp.LoggerErrorMan=
ager
>>>>>> printSummary
>>>>>> WARNING: 5 error(s), 0 warning(s)
>>>>>> The project 'HelloRoyale' has been successfully compiled and
>>>>>> optimized.
>>>>>> 4.566387 seconds
>>>>>>
>>>>>>
>>>>>> On Mon, Jan 15, 2018 at 7:38 PM, Piotr Zarzycki <
>>>>>> piotrzarzycki21@gmail.com> wrote:
>>>>>>
>>>>>>> Carlos,
>>>>>>>
>>>>>>> No problem. I have also couple of huge things related to Royale to
>>>>>>> do before my hand gets dirty with AMF! :) Unless someone urgently w=
ill
>>>>>>> needed. :)
>>>>>>>
>>>>>>> Thanks, Piotr
>>>>>>>
>>>>>>> 2018-01-15 19:27 GMT+01:00 Carlos Rovira :
>>>>>>>
>>>>>>>> Hi Piotr,
>>>>>>>> I'll put this on my to do list, but have to do some things first.
>>>>>>>> thanks
>>>>>>>>
>>>>>>>> 2018-01-15 9:26 GMT+01:00 Piotr Zarzycki >>>>>>> >:
>>>>>>>>
>>>>>>>>> Hi Carlos,
>>>>>>>>>
>>>>>>>>> Can you describe more how to setup those examples ? Could you add
>>>>>>>>> to RemoteObjectAMFTest README.md file where you describe steps. I=
 would
>>>>>>>>> like to have AMF on my list for tests and improvements. Whenever =
I look
>>>>>>>>> into that I don't know how to proceed with it.
>>>>>>>>>
>>>>>>>>> Thanks, Piotr
>>>>>>>>>
>>>>>>>>> 2018-01-15 9:21 GMT+01:00 Carlos Rovira =
:
>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> there's an example that we get it working nicely at:
>>>>>>>>>>
>>>>>>>>>> https://github.com/apache/royale-asjs/tree/develop/examples/
>>>>>>>>>> royale/RemoteObjectAMFTest
>>>>>>>>>> 
>>>>>>>>>>
>>>>>>>>>> you can use that as a starting point for your test
>>>>>>>>>>
>>>>>>>>>> As well a java web app that is used along that royale client
>>>>>>>>>> example is at:
>>>>>>>>>>
>>>>>>>>>> https://github.com/apache/royale-asjs/tree/develop/examples/amf
>>>>>>>>>> 
>>>>>>>>>>
>>>>>>>>>> thanks
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 2018-01-15 3:56 GMT+01:00 Carlos Cruz =
:
>>>>>>>>>>
>>>>>>>>>>> I have a lot of experience with Flex remoting and BlazeDS with
>>>>>>>>>>> Java, but with FlexJS and Royale I have none, but extrapolating=
 from some
>>>>>>>>>>> JS tests I've done with AMF at this line: amfTestService.send(
>>>>>>>>>>> "getShippingMethods", []); you have to call a class in
>>>>>>>>>>> gateway.php and a method. Your request needs at least 3 propert=
ies.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> I'm also assuming your JS file and gateway.php are in the same
>>>>>>>>>>> domain and same port (this gave me problems).
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Take what I said regarding my experience with FlexJS and Royale
>>>>>>>>>>> into account.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Carlos
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> *From:* Fr=C3=A9deric Cox [mailto:coxfrederic@gmail.com]
>>>>>>>>>>> *Sent:* Sunday, January 14, 2018 4:01 PM
>>>>>>>>>>>
>>>>>>>>>>> *To:* users@royale.apache.org
>>>>>>>>>>> *Subject:* Re: RemoteObject
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Script tag was stripped from the post:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> import org.apache.royale.events.MouseEvent;
>>>>>>>>>>>
>>>>>>>>>>>                      import org.apache.royale.net.events.F
>>>>>>>>>>> aultEvent;
>>>>>>>>>>>
>>>>>>>>>>>                      import org.apache.royale.net.events.R
>>>>>>>>>>> esultEvent;
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                      protectedfunction
>>>>>>>>>>> textbutton_clickHandler(event:org.apache.royale.events.Mouse
>>>>>>>>>>> Event):void
>>>>>>>>>>>
>>>>>>>>>>>                      {
>>>>>>>>>>>
>>>>>>>>>>>                            statusLabel.text =3D "calling.......=
";
>>>>>>>>>>>
>>>>>>>>>>>                            amfTestService.addEventListener(
>>>>>>>>>>> "fault", amfTestService_faultHandler);
>>>>>>>>>>>
>>>>>>>>>>>                            amfTestService.addEventListener(
>>>>>>>>>>> "result", amfTestService_resultHandler);
>>>>>>>>>>>
>>>>>>>>>>>                            amfTestService.send("getShippi
>>>>>>>>>>> ngMethods", []);
>>>>>>>>>>>
>>>>>>>>>>>                      }
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                      protectedfunction
>>>>>>>>>>> amfTestService_faultHandler(event:FaultEvent):void
>>>>>>>>>>>
>>>>>>>>>>>                      {
>>>>>>>>>>>
>>>>>>>>>>>                            statusLabel.text =3D "error!";
>>>>>>>>>>>
>>>>>>>>>>>                      }
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                      protectedfunction
>>>>>>>>>>> amfTestService_resultHandler(event:ResultEvent):void
>>>>>>>>>>>
>>>>>>>>>>>                      {
>>>>>>>>>>>
>>>>>>>>>>>                            statusLabel.text =3D "result!";
>>>>>>>>>>>
>>>>>>>>>>>                      }
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> none of the events are triggered ..URL is
>>>>>>>>>>> http://winkelbeheer.cityfashion.be/amfphp/gateway.php
>>>>>>>>>>> 
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Fri, Jan 12, 2018 at 4:55 AM, Carlos Cruz <
>>>>>>>>>>> carlos@nbtbizcapital.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>> I may be blind (and or ignorant as I'm more familiar with Flex)
>>>>>>>>>>> but where
>>>>>>>>>>> are you sending an AMF request? I don't see any code that sends
>>>>>>>>>>> a request to
>>>>>>>>>>> a service and invokes method.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> -----Original Message-----
>>>>>>>>>>> From: coxfrederic [mailto:coxfrederic@gmail.com]
>>>>>>>>>>> Sent: Thursday, January 11, 2018 9:09 PM
>>>>>>>>>>> To: users@royale.apache.org
>>>>>>>>>>> Subject: Re: RemoteObject
>>>>>>>>>>>
>>>>>>>>>>> 
>>>>>>>>>>>
>>>>>>>>>>> >>>>>>>>>> 
>>>>>>>>>>> "
>>>>>>>>>>>                    xmlns:js=3D"library://ns.apache
>>>>>>>>>>> .org/royale/basic
>>>>>>>>>>> "
>>>>>>>>>>> >
>>>>>>>>>>>         
>>>>>>>>>>>
>>>>>>>>>>>         
>>>>>>>>>>>     
>>>>>>>>>>>         
>>>>>>>>>>>     
>>>>>>>>>>>
>>>>>>>>>>>         
>>>>>>>>>>>                 
>>>>>>>>>>>                 >>>>>>>>>>
>>>>>>>>>>> endPoint=3D"http://winkelbeheer.cityfashion.be/amfphp/gateway.p=
hp
>>>>>>>>>>> 
>>>>>>>>>>> "
>>>>>>>>>>>
>>>>>>>>>>>  destination=3D"Meta"
>>>>>>>>>>> source=3D"Meta" />
>>>>>>>>>>>         
>>>>>>>>>>>
>>>>>>>>>>>     
>>>>>>>>>>>         
>>>>>>>>>>>                         
>>>>>>>>>>>                                 >>>>>>>>>> text=3D"Hello
>>>>>>>>>>> World!" />
>>>>>>>>>>>                                 >>>>>>>>>> data"
>>>>>>>>>>> click=3D"textbutton_clickHandler(event)" />
>>>>>>>>>>>                         
>>>>>>>>>>>         
>>>>>>>>>>>     
>>>>>>>>>>> 
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Any idea why I'm not getting a fault nor success event on this?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>>>>>>>>>>> 
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Carlos Rovira
>>>>>>>>>> http://about.me/carlosrovira
>>>>>>>>>> 
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>>
>>>>>>>>> Piotr Zarzycki
>>>>>>>>>
>>>>>>>>> Patreon: *https://www.patreon.com/piotrzarzycki
>>>>>>>>> *
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>> ...

--94eb2c075be828dd430565563fde
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I tested couple of scenarios of FlexJS AMF. only fews are= working. I will check with Royal and share output tomorrow.

On 16-Feb-2018 8:30 PM, &q= uot;Piotr Zarzycki" <p= iotrzarzycki21@gmail.com> wrote:
Frederic,

Could you= share some hello world implementation of AMFPHP along with Hello World app= in Flex ? I may also look into that and compare the results. Just don'= t want to waste time on setup things to prepare AMFPHP stuff. Do you have s= uch things ?

Thanks, Piotr


2018-02-16 15:= 57 GMT+01:00 Fr=C3=A9deric Cox <coxfrederic@gmail.com>:<= br>
Hi Carlos,

Sure I=E2=80=99ll see what I can do. Feel I have lots to leatn about= Royale and AMF (it just works with Flash/AIR so not up to date about the i= nner workings).

I=E2=80=99ll try to test the examp= les over the weekend. Do you think the AMFPHP version could be an issue or = is it assumed to work in Royale if it works in Flex?=C2=A0

Verstuurd= vanaf mijn iPhone
Op 16 feb. 2018 om 12:28 heeft Carlos Rovira <carlosrovira@apache.org> het vo= lgende geschreven:

Hi Frederic,=C2=A0
thanks for filling this and take a look into AM= F!
Hope you could help us a bit with this.

2018-02-16 0:21 GMT+01:00 F= r=C3=A9deric Cox <coxfrederic@gmail.com>:
Hi Alex,=C2=A0

I cr= eated=C2=A0https://github.com/apache/royale-asjs/issues/119, h= ope that is in the correct place and with more readable mark-up.
=
Regards,

Fr=C3=A9deric
<= div class=3D"m_8808479653260538338m_7842277546344946697HOEnZb">

On Thu, Feb 15, 2018 at 8:57 PM, Alex Haru= i <aharui@adobe.com> wrote:
Hi Frederic,

Where is this output you posted coming from, a network monitor?=C2=A0 = It was too hard to read, so please create a bug report on GitHub and post i= t there.

You might be able to use a network monitor to compare what Flex sent v= s what Royale is sending.=C2=A0 What does your Flex usage of RemoteObject l= ook like?

HTH,
-Alex

From: Fr=C3=A9deric Cox <coxfrederic@gmail.com>
Reply-To: "
users@royale.apache.org"= <users@roy= ale.apache.org>
Date: Thursday, February 15, 2018 a= t 5:09 AM
To: "users@royale.apache.org" <<= a href=3D"mailto:users@royale.apache.org" target=3D"_blank">users@royale.ap= ache.org>
Subject: Re: RemoteObject

Hi Piotr,

Thanks, I installed the extension and now I'm not getting the CORS= error anymore.
I'm not getting any fault or result event triggered either....

The endPoint set is
This is correct, right? (I use this endpoint in Flex and that works fi= ne)

    1. Request URL:
    2. Request Method:
      OPTIONS
    3. Status Code:
      200 OK
    4. Remote Address:
    5. Referrer Policy:
      no-referrer-when-downgrade
  1. Response Headersview source
    1. Connection:
      keep-alive
    2. Content-Encoding:
      gzip
    3. Content-Length:
      286
    4. Content-Type:
      text/html; charset=3DUTF-8
    5. Date:
      Thu, 15 Feb 2018 13:08:17 GMT
    6. Server:
      nginx
    7. Vary:
      Accept-Encoding
  2. Request Headersview source
    1. Accept:
      */*
    2. Accept-Encoding:
      gzip, deflate, br
    3. Accept-Language:
      en-GB,en-US;q=3D0.9,en;q=3D0.8
    4. Access-Control-Request-Headers:
      content-type
    5. Access-Control-Request-Method:
      POST
    6. Connection:
      keep-alive
    7. Host:
    8. Origin:
      null
    9. User-Agent:
      Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, = like Gecko) Chrome/64.0.3282.167 Safari/537.36
Response is:

<p>amfphp and this gateway are installed correctly. You may now = connect to this gateway from Flash.</p><p>Note: If you're r= eading an old tutorial, it will tell you that you should see a download win= dow instead of this message. This confused people so this is the new behaviour starting from amfphp 1.2.</p><p><a hre= f=3D'http://www.amfphp.org/docs= '>View the amfphp documentation</p><p><a href=3D'browser'&= gt;Load the service browser</a></p><pre>

Should I target a specific file with the JS version? Should the endPoi= nt be different?

On Thu, Feb 15, 2018 at 12:07 PM, Pi= otr Zarzycki <piotrzar= zycki21@gmail.com> wrote:
Frederic,

It looks like it is not problem with framework, but rather CORS issue.= Maybe try to install this plugin [1] and add to the list your url.


Piotr

2018-02-15 12:04 GMT+01:00 Fr=C3=A9d= eric Cox <coxfrederic@= gmail.com>:
For me it is still not working in latest relea= se 0.9.1. I based my example on the example in the SDK.

<?xml version=3D"1.0" encoding=3D"utf-8"?>
<js:Applicationxmlns:fx=3D= "http://ns.adobe.com/mx= ml/2009"
xmlns:js=3D"library://ns.apache.org/royale/basic"appl= icationComplete=3D"applicationCompleteHandler(ev= ent);">

=C2=A0=C2=A0=C2=A0=C2=A0<fx:Script>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0<![CDATA[
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0import org.apache.royale.net.Rem= oteObject;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0import org.apache.royal= e.net.events.FaultEvent;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0import org.apache.royal= e.net.events.ResultEvent<= /span>;

=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0privatefunctionapplicationCom= pleteHandler(evt:Event):void{
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0testLabel.te= xt =3D "Requesting from AM= F";
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0service.send= ("getPackages", null);
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0}

=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0privatefunctionamfFaultHandle= r(evt:FaultEvent):<= /span>void{
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0testLabel.te= xt =3D "Fault in calling A= MF";
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0}

=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0privatefunctionamfResultHandl= er(evt:ResultEvent)= :void{
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0testLabel.te= xt =3D "Result received fr= om AMF";
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0}
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0]]>
=C2=A0=C2=A0=C2=A0=C2=A0</fx:Script>

<js:valuesImpl>
<js:SimpleCSSValues= Impl />
</js:valuesImpl>

=C2=A0=C2=A0=C2=A0<= js:beads>
<js:ClassAliasBead<= /span> />
<js:RemoteOb= jectid=3D"service"result= =3D"amfResultHandler(event)"fault=3D"amfFaultHandler(event)"
destination =3D "Meta"
source =3D "Meta"/>
</js:beads>

<js:initialView>
<js:View>
<js:Labelid=3D"testLabel" />
</js:View>
</js:initialView>
</js:Application>= ;


It is not working and showing the following error in the browser:

Failed to load https://wi= nkelbeheer.cityfashion.be/amfphp/gateway.php: Response to preflight request doesn't pass access control check: No &#= 39;Access-Control-Allow-Origin' header is present on the requested reso= urce. Origin 'http://localhost' is therefore not allowed access.



It is able to compile and run regardless of the errors in compile log:=

Feb 15, 2018 11:51:04 AM com.google.javascript.jscomp.LoggerError= Manager println
SEVERE: /Users/frederic/Desktop/Personal/Web Projects/Workspaces/= Royale/HelloRoyale/bin/js-debug/org/apache/royale/reflection/Acce= ssorDefinition.js:12: ERROR - required "org.apache.royale.reflect= ion.TypeDefinition" namespace not provided yet
goog.require('org.apache.royale.reflection.TypeDefinition'= ;);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Feb 15, 2018 11:51:04 AM com.google.javascript.jscomp.LoggerError= Manager println
SEVERE: /Users/frederic/Desktop/Personal/Web Projects/Workspaces/= Royale/HelloRoyale/bin/js-debug/org/apache/royale/reflection/Acce= ssorDefinition.js:13: ERROR - required "org.apache.royale.reflect= ion.VariableDefinition" namespace not provided yet
goog.require('org.apache.royale.reflection.VariableDefinitio<= wbr>n');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^= ^^^

Feb 15, 2018 11:51:04 AM com.google.javascript.jscomp.LoggerError= Manager println
SEVERE: /Users/frederic/Desktop/Personal/Web Projects/Workspaces/= Royale/HelloRoyale/bin/js-debug/org/apache/royale/reflection/Meth= odDefinition.js:14: ERROR - required "org.apache.royale.reflectio= n.TypeDefinition" namespace not provided yet
goog.require('org.apache.royale.reflection.TypeDefinition'= ;);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Feb 15, 2018 11:51:04 AM com.google.javascript.jscomp.LoggerError= Manager println
SEVERE: /Users/frederic/Desktop/Personal/Web Projects/Workspaces/= Royale/HelloRoyale/bin/js-debug/org/apache/royale/reflection/Para= meterDefinition.js:13: ERROR- required "org.apache.royale.reflect= ion.TypeDefinition" namespace not provided yet
goog.require('org.apache.royale.reflection.TypeDefinition'= ;);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Feb 15, 2018 11:51:04 AM com.google.javascript.jscomp.LoggerError= Manager println
SEVERE: /Users/frederic/Desktop/Personal/Web Projects/Workspaces/= Royale/HelloRoyale/bin/js-debug/org/apache/royale/reflection/Type= Definition.js:15: ERROR - required "org.apache.royale.reflection.= VariableDefinition" namespace not provided yet
goog.require('org.apache.royale.reflection.VariableDefinitio<= wbr>n');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^= ^^^

Feb 15, 2018 11:51:04 AM com.google.javascript.jscomp.LoggerError= Manager printSummary
WARNING: 5 error(s), 0 warning(s)
The project 'HelloRoyale' has been successfully compiled and o= ptimized.
4.566387 seconds


Carlos,

No problem. I have also couple of huge things related to Royale to do = before my hand gets dirty with AMF! :) Unless someone urgently will needed.= :)

Thanks, Piotr

2018-01-15 19:27 GMT+01:00 Carlos Ro= vira <carlosrovi= ra@apache.org>:
Hi Piotr,
I'll put this on my to do list, but have to do some things first.<= /div>
thanks

2018-01-15 9:26 GMT+01:00 Piotr Zarz= ycki <piotrzar= zycki21@gmail.com>:
Hi Carlos,

Can you describe more how to setup those examples ? Could you add to R= emoteObjectAMFTest README.md file where you describe steps. I would like to= have AMF on my list for tests and improvements. Whenever I look into that = I don't know how to proceed with it.

Thanks, Piotr

2018-01-15 9:21 GMT+01:00 Carlos Rov= ira <carlosrovi= ra@apache.org>:
Hi,=C2=A0

there's an example that we get it working nicely at:


you can use that as a starting point for your test

As well a java web app that is used along that royale client example i= s at:


thanks


2018-01-15 3:56 GMT+01:00 Carlos Cru= z <carlos@nbtbizcapital.com>:

I have a lot of experience with Flex re= moting and BlazeDS with Java, but with FlexJS and Royale I have none, but e= xtrapolating from some JS tests I've done with AMF at this line:=C2=A0amfTestService.send(&= quot;getShippingMethods", []);=C2=A0you have to call a class in gateway.php and = a method. Your request needs at least 3 properties.=C2=A0<= /u>

=C2=A0

I'm also assuming your JS file and gateway.php are i= n the same domain and same port (this gave me problems).

=C2=A0

Take what I said regarding my experience with FlexJS and= Royale into account.=C2=A0

=C2=A0

Carlos=C2=A0

=C2=A0

=C2=A0

From: Fr=C3=A9deric Cox [mailto:coxfrederic@gmail.co= m]
Sent: Sunday, January 14, 2018 4:01 PM


To: use= rs@royale.apache.org
Subject: Re: RemoteObject

=C2=A0

Script tag was stripped from the post:=

=C2=A0

import org.apache.royale.events.MouseEvent;

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 import org.apache.royale.net.events.FaultEvent;

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 import org.apache.royale.net.events.ResultEvent;

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 protected<= span class=3D"m_8808479653260538338m_7842277546344946697m_-1160022764236101= 573m_4111855779165056120m_-3122072977784264440m_3824269707688882585m_853612= 3998405381379m_-3409316053451761592m_-7005318185810625137m_3879698120856938= 464m_7509243417145218997gmail-s2">function textbutton_clickHandler(event:org.apache.royale.events.MouseEven= t):void

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 {

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 statusLabel.text =3D "calling.......";<= /u>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 amfTestService.addEventListener("fault", amfTestService_faultHandler);

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 amfTestService.addEventListener("result", amfTestService_resultHandler);

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 amfTestService.send("getShippingMethods", []);

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 }

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 protected<= span class=3D"m_8808479653260538338m_7842277546344946697m_-1160022764236101= 573m_4111855779165056120m_-3122072977784264440m_3824269707688882585m_853612= 3998405381379m_-3409316053451761592m_-7005318185810625137m_3879698120856938= 464m_7509243417145218997gmail-s2">function amfTestService_faultHandler(event:FaultEvent):void<= /span>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 {

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 statusLabel.text =3D "error!";

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 }

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 protected<= span class=3D"m_8808479653260538338m_7842277546344946697m_-1160022764236101= 573m_4111855779165056120m_-3122072977784264440m_3824269707688882585m_853612= 3998405381379m_-3409316053451761592m_-7005318185810625137m_3879698120856938= 464m_7509243417145218997gmail-s2">function amfTestService_resultHandler(event:ResultEvent):void

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 {

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 statusLabel.text =3D "result!";<= /u>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 }

=C2=A0

none o= f the events are triggered ..URL is=C2=A0http://winkelbeheer.cityfashion.be/amfph= p/gateway.php

=C2=A0

On Fri, Jan 12, 2018 at 4:55 AM, Carlos Cruz <carlos@nbtbizcap= ital.com> wrote:

I may be blind (and or ignorant as I'm more fami= liar with Flex) but where
are you sending an AMF request? I don't see any code that sends a reque= st to
a service and invokes method.


-----Original Message-----
From: coxfrederic [mailto:coxfrederic@gmail.com]
Sent: Thursday, January 11, 2018 9:09 PM
To: users@roya= le.apache.org
Subject: Re: RemoteObject

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

<js:Application xmlns:fx=3D"http://ns.adobe.com/mxml/2009"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0xmlns:= js=3D"library://ns.apache<= wbr>.org/royale/basic" >
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <fx:Script>

=C2=A0 =C2=A0 =C2=A0 =C2=A0 </fx:Script>
=C2=A0 =C2=A0 <js:valuesImpl>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <js:SimpleCSSValuesImpl />
=C2=A0 =C2=A0 </js:valuesImpl>

=C2=A0 =C2=A0 =C2=A0 =C2=A0 <js:beads>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <js:ClassAliasBe= ad />
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <js:RemoteObject= id=3D"amfTestService"

endPoint=3D"http://winkelbeheer.cityfashion.be/amfphp/gateway.php&q= uot;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0destination=3D"Meta"
source=3D"Meta" />
=C2=A0 =C2=A0 =C2=A0 =C2=A0 </js:beads>

=C2=A0 =C2=A0 <js:initialView>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <js:View>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 <js:VGroup>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <js:Label id=3D"statusLabel&= quot; text=3D"Hello
World!" />
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <js:TextButton text=3D"Get A= MF data"
click=3D"textbutton_clickHandler(event)" />
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 </js:VGroup>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 </js:View>
=C2=A0 =C2=A0 </js:initialView>
</js:Application>


Any idea why I'm not getting a fault nor success event on this?



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

=C2=A0







... --94eb2c075be828dd430565563fde--