Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5B15F11A61 for ; Fri, 21 Feb 2014 18:35:29 +0000 (UTC) Received: (qmail 69145 invoked by uid 500); 21 Feb 2014 18:35:21 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 69011 invoked by uid 500); 21 Feb 2014 18:35:20 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 68968 invoked by uid 99); 21 Feb 2014 18:35:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Feb 2014 18:35:20 +0000 Date: Fri, 21 Feb 2014 18:35:20 +0000 (UTC) From: "Chris Martin (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FLEX-34106) XML.prettyPrinting strips leading and trailing spaces from string values in soap envelope MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Chris Martin created FLEX-34106: ----------------------------------- Summary: XML.prettyPrinting strips leading and trailing spaces from string values in soap envelope Key: FLEX-34106 URL: https://issues.apache.org/jira/browse/FLEX-34106 Project: Apache Flex Issue Type: Bug Components: RPC: WebService Affects Versions: Apache Flex 4.11.0, Apache Flex 4.10.0, Apache Flex 4.9.0, Apache Flex 4.8 (parity release) Reporter: Chris Martin When XML.prettyPrinting is set to true, it will strip leading and trailing spaces from string values inside the soap envelope I'm attaching a project which uses a public soap interface used by adobe for their "Flex in a Week" training program. You must have visibility to this soap service for this to work right away. I've also monkey patched mx.rpc.soap.SOAPEncoder from Flex 4.11.0 to include trace statements at lines 171 and 179 To Reproduce 1.) Debug the attached project 2.) In the department field type " test test " (without quotes) 4.) Click Submit button Result Look in the console window and look for !!!NO PRETTY PRINTING!!! below that trace line you will see a collapsed soap envelope. Scroll to the right and look for the "DEPARTMENT" property in the soap envelope. Note the value has the leading and trailing spaces. Now look for !!!PRETTY PRINTING!!!. In the soap envelope below that line look at the DEPARTMENT property. Note that the leading and trailing spaces are gone. Expected Result Both soap envelopes match regardless of prettyPrinting. >From the dropdown choose -- This message was sent by Atlassian JIRA (v6.1.5#6160)