Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B03441794C for ; Mon, 27 Oct 2014 10:23:39 +0000 (UTC) Received: (qmail 98258 invoked by uid 500); 27 Oct 2014 10:23:39 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 98225 invoked by uid 500); 27 Oct 2014 10:23:39 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 98210 invoked by uid 99); 27 Oct 2014 10:23:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Oct 2014 10:23:38 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of marcus.fritze@googlemail.com designates 209.85.215.41 as permitted sender) Received: from [209.85.215.41] (HELO mail-la0-f41.google.com) (209.85.215.41) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Oct 2014 10:23:34 +0000 Received: by mail-la0-f41.google.com with SMTP id pn19so5784730lab.0 for ; Mon, 27 Oct 2014 03:22:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=qUDYd61cSNm1DJHjwv4EepbJNUhRvt0vxYPeTL/lzCw=; b=C63xyEiH3MGQLfHa7stoBez9ruaf7OoBUv+obrTrr5FBQpFrB7GO4tmoGX2HsOEMbH 3lnE97kbWfHTW0hPBf68Ahgr5w1eAeRixtJBfulFfpG3mmY6kEu5QMQN7PsF8cFRBWkK KkkhlITK3rQW1yBtzH+R2R556aSRXbgjFMaGMnxKMYXyoBQcmxbi7O9GOVmFSfDzXFYt qJTDEjRWQxQ/weNm9Q8vS9PWpbv02SQnnoI7CWbJeDzYPc8NotGpOyojbiXQk/ihJSXA HuMyw3hF+5TJGEUVwqtbno58MqpstrlKvagQj2f8SRddRn3hRuFQlHvGEqLKvSlAcjk/ LCyw== X-Received: by 10.112.221.226 with SMTP id qh2mr22640077lbc.5.1414405346817; Mon, 27 Oct 2014 03:22:26 -0700 (PDT) Received: from marcus.fritz.box (p5485468B.dip0.t-ipconnect.de. [84.133.70.139]) by mx.google.com with ESMTPSA id n4sm4820405lah.2.2014.10.27.03.22.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Oct 2014 03:22:25 -0700 (PDT) From: Marcus Fritze Content-Type: multipart/signed; boundary="Apple-Mail=_61CE1FEB-138C-478D-897F-7F9971523AD6"; protocol="application/pgp-signature"; micalg=pgp-sha512 Message-Id: Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Flex AMFPHP 2.2.1 Date: Mon, 27 Oct 2014 11:22:23 +0100 References: <1414393005137-8506.post@n4.nabble.com> <7C8074A1-FCD8-4BE9-B57F-1592F60EC41C@googlemail.com> To: users@flex.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1878.6) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_61CE1FEB-138C-478D-897F-7F9971523AD6 Content-Type: multipart/alternative; boundary="Apple-Mail=_D84720CF-5279-46AA-8158-C04F3819C533" --Apple-Mail=_D84720CF-5279-46AA-8158-C04F3819C533 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I never worked with ZendAMF, maybe someone else can say something about = pro and cons between ZendAMF and amfphp. Years ago, I think at this time, ZendAMF didn't even existed, so I = started with amfphp. But I am not sure. One disadvantage of amfphp is to debug not working requests. It's very = hard to find errors in complex requests. AND IMPORTANT: never send a object which has the same object (AS memory = reference) inside multiple times! this doesn't work! But overall amfphp works. Marcus Am 27.10.2014 um 11:00 schrieb irwan.husein : > hi marcus, > it works... :D > just doing some find and replace, and all services OK again. >=20 > btw, what's your opinion about ZendAMF and amfphp? > performance, deployment, etc.. >=20 > regards, >=20 >=20 > On 27 October 2014 16:35, Marcus Fritze [via Apache Flex Users] < > ml-node+s2333346n8509h60@n4.nabble.com> wrote: >=20 >> Hi Irwan, >>=20 >> I also experienced some changes when I switched from AMFPHP 1.9 to = 2.0 (or >> later). >>=20 >> My experience was that I had to change some of my PHP code. When I = pass a >> AS object, this is also a object in PHP and not a array >>=20 >> maybe you should try: >>=20 >> function somefunction($PHPParam) >>=20 >> { >>=20 >> $Param1 =3D $PHPParam->Parameter00; >>=20 >> $Param2 =3D $PHPParam->Parameter01; >>=20 >> $Param3 =3D $PHPParam->Parameter02; >>=20 >>=20 >> //do something >>=20 >> return "something"; >> } >>=20 >> Best regards >>=20 >> Marcus >>=20 >> Am 27.10.2014 um 07:56 schrieb irwan.husein <[hidden email] >> >: >>=20 >> Hi All, >> i'm flex + php developer since flex 4.6 >> today i'm start migrating old amfphp server (1.9) to amfphp 2.2.1 + = flex >> 4.13 >>=20 >> unfortunately, i've found some problems >> in amfphp 1.9, i can do remote call like this >>=20 >> *Flex Client :* >> public var gateway:NetConnection; >>=20 >> var PHPParam:Object =3D new Object; >> PHPParam.Parameter00 =3D 'param1'; >> PHPParam.Parameter01 =3D 'param2'; >> PHPParam.Parameter02 =3D 'param3'; >>=20 >> gateway.call("someservice.somefunction", new Responder(resultData, >> null),PHPParam); >>=20 >> *AMFPHP Services* >>=20 >> function somefunction($PHPParam) >> { >> $Param1 =3D $PHPParam['Parameter00']; >> $Param2 =3D $PHPParam['Parameter01']; >> $Param3 =3D $PHPParam['Parameter02']; >>=20 >> //do something >> return "something"; >> } >>=20 >> but, in AMFPHP 2.2.1, i can't do it anymore, i can't sent object to = php >> services, only simple parameter. >> in their website, they suggest using JSON statement, but theres no = example >>=20 >> if anyone has ever experienced ? >> or we just go with ValueObject approach? >>=20 >> regards, >> Irwan >>=20 >>=20 >>=20 >> -- >> View this message in context: >> = http://apache-flex-users.2333346.n4.nabble.com/Flex-AMFPHP-2-2-1-tp8506.ht= ml >> Sent from the Apache Flex Users mailing list archive at Nabble.com. >>=20 >>=20 >>=20 >> *signature.asc* (507 bytes) Download Attachment >> = >>=20 >>=20 >> ------------------------------ >> If you reply to this email, your message will be added to the = discussion >> below: >>=20 >> = http://apache-flex-users.2333346.n4.nabble.com/Flex-AMFPHP-2-2-1-tp8506p85= 09.html >> To unsubscribe from Flex AMFPHP 2.2.1, click here >> = >> . >> NAML >> = >>=20 >=20 >=20 >=20 >=20 > -- > View this message in context: = http://apache-flex-users.2333346.n4.nabble.com/Flex-AMFPHP-2-2-1-tp8506p85= 13.html > Sent from the Apache Flex Users mailing list archive at Nabble.com. --Apple-Mail=_D84720CF-5279-46AA-8158-C04F3819C533 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii I = never worked with ZendAMF, maybe someone else can say something about = pro and cons between ZendAMF and amfphp.

Years ago, I = think at this time, ZendAMF didn't even existed, so I started with = amfphp. But I am not sure.

One disadvantage of = amfphp is to debug not working requests. It's very hard to find errors = in complex requests.

AND IMPORTANT: never send = a object which has the same object (AS memory reference) inside multiple = times! this doesn't work!

But overall amfphp = works.

Marcus


Am= 27.10.2014 um 11:00 schrieb irwan.husein <irwan.husein@gmail.com>:
hi marcus,
it works... =  :D
just doing some find and replace, and all services OK = again.

btw, what's your opinion about ZendAMF and = amfphp?
performance, deployment, etc..

regards,


On = 27 October 2014 16:35, Marcus Fritze [via Apache Flex Users] <
ml-node+s2333346n85= 09h60@n4.nabble.com> wrote:

Hi = Irwan,

I also experienced some changes when I switched from = AMFPHP 1.9 to 2.0 (or
later).

My experience was that I had to = change some of my PHP code. When I pass a
AS object, this is also a = object in PHP and not a array

maybe you should = try:

function somefunction($PHPParam)

{

$Param1 =3D = $PHPParam->Parameter00;

$Param2 =3D = $PHPParam->Parameter01;

$Param3 =3D = $PHPParam->Parameter02;


//do something

return = "something";
}

Best regards

Marcus

Am 27.10.2014 = um 07:56 schrieb irwan.husein <[hidden email]
<h= ttp://user/SendEmail.jtp?type=3Dnode&node=3D8509&i=3D0>>= :

Hi All,
i'm flex + php developer since flex 4.6
today i'm = start migrating old amfphp server (1.9) to amfphp 2.2.1 + = flex
4.13

unfortunately, i've found some problems
in amfphp = 1.9, i can do remote call like this

*Flex Client :*
public var = gateway:NetConnection;

var PHPParam:Object =3D new = Object;
PHPParam.Parameter00 =3D 'param1';
PHPParam.Parameter01 =3D = 'param2';
PHPParam.Parameter02 =3D = 'param3';

gateway.call("someservice.somefunction", new = Responder(resultData,
null),PHPParam);

*AMFPHP = Services*

function somefunction($PHPParam)
{
$Param1 =3D = $PHPParam['Parameter00'];
$Param2 =3D = $PHPParam['Parameter01'];
$Param3 =3D = $PHPParam['Parameter02'];

//do something
return = "something";
}

but, in AMFPHP 2.2.1, i can't do it anymore, i = can't sent object to php
services, only simple parameter.
in their = website, they suggest using JSON statement, but theres no = example

if anyone has ever experienced ?
or we just go with = ValueObject approach?

regards,
Irwan



--
View = this message in context:
http://apache-flex-users.2333346.n4.nabble.com/Flex-AMFPHP-2-2= -1-tp8506.html
Sent from the Apache Flex Users mailing list = archive at Nabble.com.



*signature.asc* (507 bytes) = Download Attachment
<http://apache-flex-users.2333346.n4.nabble.com/attachment/85= 09/0/signature.asc>


------------------------------
If= you reply to this email, your message will be added to the = discussion
below:

http://apache-flex-users.2333346.n4.nabble.com/Flex-AMFPH= P-2-2-1-tp8506p8509.html
To unsubscribe from Flex AMFPHP 2.2.1, = click here
<http://apache-flex-users.2333346.= n4.nabble.com/template/NamlServlet.jtp?macro=3Dunsubscribe_by_code&nod= e=3D8506&code=3DaXJ3YW4uaHVzZWluQGdtYWlsLmNvbXw4NTA2fC0xMzI1NzY0NTI0>
.
NAML
<
http://apache-flex-users.2333346= .n4.nabble.com/template/NamlServlet.jtp?macro=3Dmacro_viewer&id=3Dinst= ant_html%21nabble%3Aemail.naml&base=3Dnabble.naml.namespaces.BasicName= space-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.No= deNamespace&breadcrumbs=3Dnotify_subscribers%21nabble%3Aemail.naml-ins= tant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml= >





--
View this message in = context: http://apache-flex-users.2333346.n4.nabble.com/Flex-AMFPH= P-2-2-1-tp8506p8513.html
Sent from the Apache Flex Users mailing = list archive at Nabble.com.

= --Apple-Mail=_D84720CF-5279-46AA-8158-C04F3819C533-- --Apple-Mail=_61CE1FEB-138C-478D-897F-7F9971523AD6 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJUThzfAAoJEDZFCBi6PbVS4/EIAIba/Qe6CueEKKpU0jjgQbE2 hhiDzNPES2ihcy3DCWcCG/1MvMQIyQE4Dps+2XU4EiLKY2mhCYhexGoXyXZ27+Qh +R9LVjSHJhSZC4QcYMOBrTJy2/qpi4/sd1m5Gbi+snkw0uMZryC/XjvxD6cSShG8 ZwkaE3QXWPgbgzHVAgtZk19yrxDYiF13Tmg7cpntNsx2Zx9OzzXSFjaFusIDzvkn /V/lebF9Fme9zOZuHsLaEmdL3Vgs8xKmzetzLYcN1cxoXPO0XT8lEGhJRFc6jZA5 +ned/QBKYxaE2c0DO1VcrKRvaTDKbgf6ILEy79DF72cd8BpTDZco8dif9q9Fa7o= =4QCT -----END PGP SIGNATURE----- --Apple-Mail=_61CE1FEB-138C-478D-897F-7F9971523AD6--