You can configure in an instance of a XMLInputFactory into the endpoint 
properties and that factory will be used.  

<jaxws:endpoint....>
   <jaxws:properties>
       <entry key="javax.xml.stream.XMLInputFactory" ref="someBean"/>
....

Thus, with some spring things, you could create an instance of the Woodstox 
factory, set the properties, and use it.

Dan


  

On Thu February 25 2010 11:36:56 am Juan José Vázquez Delgado wrote:
> Hi,
> 
> My team and I are suffering an XML validation problem when our service
> receives a request from a legacy web service client. The trace is:
> 
> org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader.
> INFO   | jvm 1    | 2010/02/23 12:56:26 |     at
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessag
> e(ReadHeadersInterceptor.java:230)
> ..........................................................................
> ...........................................................................
> .............. INFO   | jvm 1    | 2010/02/23 12:56:26 | Caused by:
> com.ctc.wstx.exc.WstxUnexpectedCharException: Illegal character
> ((CTRL-CHAR, code 12))
> INFO   | jvm 1    | 2010/02/23 12:56:26 |  at [row,col {unknown-source}]:
> [1,1] INFO   | jvm 1    | 2010/02/23 12:56:26 |       at
> com.ctc.wstx.sr.StreamScanner.throwInvalidSpace(StreamScanner.java:675)
> 
> Unfortunately we can't modify the legacy code so we are looking for a
> workaround such as one is described in [1]. Our problem now is that we
> don't know how to set properties to the Woodstox XMLOutputFactory. We
> are configuring the CXF Runtime in the Spring way.
> 
> Any ideas?.
> 
> Thanks in advance.
> 
> Regards,
> 
> Juanjo.
> 
> [1] http://www.cowtowncoder.com/blog/archives/2008/12/entry_106.html

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to