Dennis, Thanks for the reply, I have submitted JIRA http://jira.codehaus.org/browse/JIBX-170 for anyone else who is interested in following this thread. In the mean time, the solution that I have will work until this feature is implemented.
Thanks, John -----Original Message----- From: Dennis Sosnoski [mailto:[EMAIL PROTECTED] Sent: Monday, June 11, 2007 8:19 PM To: axis-user@ws.apache.org Subject: Re: Collapsing Whitespace with Axis2 Hi John, This is really a JiBX issue, and you might want to enter it in the Jira (http://jira.codehaus.org/secure/BrowseProject.jspa?id=10410) so I don't forget to deal with it. For schema compatibility, JiBX should really support trimming whitespace from text values being converted to the various built in types. I'll have to think about how best to implement that handling. - Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]