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 9CF8011925 for ; Tue, 24 Jun 2014 06:53:50 +0000 (UTC) Received: (qmail 10838 invoked by uid 500); 24 Jun 2014 06:53:50 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 10821 invoked by uid 500); 24 Jun 2014 06:53:50 -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 10810 invoked by uid 99); 24 Jun 2014 06:53:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2014 06:53:49 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: unknown (athena.apache.org: error in processing during lookup of aharui@adobe.com) Received: from [207.46.163.189] (HELO na01-bn1-obe.outbound.protection.outlook.com) (207.46.163.189) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2014 06:53:44 +0000 Received: from BL2PR02MB500.namprd02.prod.outlook.com (10.141.95.147) by BL2PR02MB497.namprd02.prod.outlook.com (10.141.95.140) with Microsoft SMTP Server (TLS) id 15.0.959.24; Tue, 24 Jun 2014 06:53:23 +0000 Received: from BL2PR02MB500.namprd02.prod.outlook.com ([10.141.95.147]) by BL2PR02MB500.namprd02.prod.outlook.com ([10.141.95.147]) with mapi id 15.00.0959.000; Tue, 24 Jun 2014 06:53:23 +0000 From: Alex Harui To: "users@flex.apache.org" Subject: Re: Passing '<' '>' characters in Web Service Thread-Topic: Passing '<' '>' characters in Web Service Thread-Index: AQHPiqRpgWpBmWcIv0euTBP1FMdxfZt2WsgAgABcPwD//+aEgIAJBNEA///E9wA= Date: Tue, 24 Jun 2014 06:53:22 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.2.140509 x-originating-ip: [68.185.16.194] x-microsoft-antispam: BCL:0;PCL:0;RULEID: x-forefront-prvs: 02524402D6 x-forefront-antispam-report: SFV:NSPM;SFS:(6009001)(479174003)(13464003)(24454002)(189002)(51704005)(377454003)(199002)(83072002)(76482001)(20776003)(101416001)(74662001)(76176999)(19580395003)(85306003)(50986999)(105586002)(36756003)(19580405001)(92566001)(83506001)(46102001)(106116001)(81342001)(64706001)(92726001)(106356001)(85852003)(31966008)(87936001)(86362001)(79102001)(80022001)(99286002)(54356999)(99396002)(74502001)(21056001)(81542001)(95666004)(2656002)(83322001)(77982001)(66066001);DIR:OUT;SFP:;SCL:1;SRVR:BL2PR02MB497;H:BL2PR02MB500.namprd02.prod.outlook.com;FPR:;MLV:sfv;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-ID: <83FC88298F84C6439124D71BF60D55E1@namprd02.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: adobe.com X-Virus-Checked: Checked by ClamAV on apache.org See the doc. Try a simple test project. On 6/23/14 8:24 PM, "Oleg Konovalov" wrote: >Could you please elaborate? >I haven't seen any of that and never used it. > >Any pointers? Code samples? > > > > > >On Wed, Jun 18, 2014 at 12:41 PM, Alex Harui wrote: > >> There is an escape() function at the top-level as well as encodeURI and >> encodeURIComponent. >> >> I haven't tried XML.toXMLString() to see how it handles < and > in an >> attribute or element. >> >> -Alex >> >> On 6/18/14 4:12 AM, "Oleg Konovalov" wrote: >> >> >I can try, but it will be users typing. >> >Which probably means that I will need to parse and encode/decode their >> >text >> >typing. >> >Is there any good established easy way of doing it? >> > >> > >> >On Wed, Jun 18, 2014 at 1:42 AM, Patil, Virat >> >> >wrote: >> > >> >> Did you try using < intead of < and > instead of > >> >> >> >> -----Original Message----- >> >> From: Oleg Konovalov [mailto:olegkon@gmail.com] >> >> Sent: Wednesday, June 18, 2014 8:50 AM >> >> To: users@flex.apache.org >> >> Subject: Passing '<' '>' characters in Web Service >> >> >> >> Hi, >> >> >> >> I am using proprietary Web Service (including REST-SOAP Bridge) >>between >> >> Flex GUI and Java backend (to call database via Stored Procedures). >> >> >> >> From time to time we need to pass data containing '>' or '<' >> >> (for example, customer puts some formula into LongDescription of some >> >> data). >> >> If I try to do it on localhost (running on Tomcat6 in FlashBuilder >>4.5), >> >> it works fine, I can store and retrieve that data. >> >> >> >> However, if I try to do it on the server (Apache Web Server and >> >>Tomcat6), >> >> I am getting errors like I/O Stream error. >> >> >> >> Is there a way to encode that data (or escape it), so we can pass < >>and >> >>> ? >> >> >> >> Please help! >> >> >> >> -- >> >> Thank you in advance, >> >> Oleg. >> >> >> >> P.S.: Using Flex 4.5.1 >> >> This message contains information that may be privileged or >>confidential >> >> and is the property of the Capgemini Group. It is intended only for >>the >> >> person to whom it is addressed. If you are not the intended >>recipient, >> >>you >> >> are not authorized to read, print, retain, copy, disseminate, >> >>distribute, >> >> or use this message or any part thereof. If you receive this message >>in >> >> error, please notify the sender immediately and delete all copies of >> >>this >> >> message. >> >> >> > >> > >> > >> >-- >> >Thank you, >> >Oleg. >> >> > > >--=20 >Thank you, >Oleg.