Hi,
If you are willing to sacrifice a bit of performance you can write a
handler that goes through the message and trims the text values. Set
this handler to be in one of the user phases and it should do the job.
However beware that such a pruning of the xml tree will cause the
object model to be fully built and you will loose any gains of the
deferred building

Ajith

On 6/8/07, Eran Chinthaka <[EMAIL PROTECTED]> wrote:
-----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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Ajith Ranabahu

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to