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]