Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 89693 invoked from network); 9 Jun 2007 02:55:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jun 2007 02:55:38 -0000 Received: (qmail 66105 invoked by uid 500); 9 Jun 2007 02:55:33 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 66089 invoked by uid 500); 9 Jun 2007 02:55:33 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 66076 invoked by uid 99); 9 Jun 2007 02:55:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jun 2007 19:55:33 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [209.68.5.16] (HELO relay02.pair.com) (209.68.5.16) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 08 Jun 2007 19:55:28 -0700 Received: (qmail 1362 invoked by uid 0); 9 Jun 2007 02:55:06 -0000 Received: from 149.159.1.30 (HELO ?149.159.1.30?) (149.159.1.30) by relay02.pair.com with SMTP; 9 Jun 2007 02:55:06 -0000 X-pair-Authenticated: 149.159.1.30 Message-ID: <466A168F.1070809@opensource.lk> Date: Fri, 08 Jun 2007 22:55:11 -0400 From: Eran Chinthaka User-Agent: Thunderbird 1.5.0.12 (X11/20070509) MIME-Version: 1.0 To: axis-user@ws.apache.org Subject: Re: Collapsing Whitespace with Axis2 References: <5CAF723E09A90F41A21FF374623293CFE195@hnp4.hnp.local> In-Reply-To: <5CAF723E09A90F41A21FF374623293CFE195@hnp4.hnp.local> X-Enigmail-Version: 0.94.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I don't think there is a way to do that. Axiom, the underlying object model, preserves the full XML infoset. So all the characters in the incoming request will be preserved as it is. Chinthaka John Pfeifer wrote: > I was wondering if there is a way to configure Axis2 to trim leading and > trailing whitespace before the web service is called. I am valdating > all incoming requests against an XSD but I have found that xsd:decimal > validation uses whitespace collapse by default. This allows values like > " 9.99 " to be passed to my JiBX binding, which results in a > NumberFormatException. I can fix this issue by customzing my bindings > file, but I was wondering if there is a way to trim all incoming requests? > > Thanks, > > jp4 > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGahaPjON2uBzUhh8RAu9FAKCG7vhzQLiT60jCLxwdgxTANEnv8QCfXEnf kZyre6VDaUKF2lBe3qsB8+k= =bW/0 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org