You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Pete <pe...@gmail.com> on 2006/02/07 12:17:54 UTC

URGENT - message style is trimming leading and trailing spaces

Using Axis 1.3, we have an urgent issue where a MESSAGE_STYLE web service is
receiving org.w3c.dom.Document, but many of the xml elements have had their
leading and trailing spaces trimmed. e.g.

bs7666:PAON>  64 </bs7666:PAON>

has become

bs7666:PAON>64</bs7666:PAON>

this is then an invalid document as this type is constrained in the XSD
using an reg expression pattern.

Can I switch this trimming off ?

Re: URGENT - message style is trimming leading and trailing spaces

Posted by Pete <pe...@gmail.com>.
Problem solved, it wasn't axis stripping spaces it was my web service test
client, which was parsing a file using XMLBeans with prettyPrint option set
!

On 07/02/06, Pete <pe...@gmail.com> wrote:
>
> Using Axis 1.3, we have an urgent issue where a MESSAGE_STYLE web service
> is receiving org.w3c.dom.Document, but many of the xml elements have had
> their leading and trailing spaces trimmed. e.g.
>
> bs7666:PAON>  64 </bs7666:PAON>
>
> has become
>
> bs7666:PAON>64</bs7666:PAON>
>
> this is then an invalid document as this type is constrained in the XSD
> using an reg expression pattern.
>
> Can I switch this trimming off ?
>
>