Andrew Clegg wrote: > > 2008/11/12 Saniya Afaq <[EMAIL PROTECTED]>: >> Hi, >> >> I'm using Metro 1.3 with JDK 1.5.x. > > This is the Apache CXF mailing list. Metro is a completely different > implementation of JAX-WS, by Sun! >
That's OK--I told Saniya to ask here as well as Metro, as there may be more ideas on this list. Andrew Clegg wrote: > > In CXF you can implement Provider<StreamSource>, giving you an invoke > method which takes and receives a StreamSource: > > public StreamSource invoke( StreamSource request ) ... > > You can read out of this with an XMLStreamReader. I've sent/received > messages with over 10Mb of XML like this. I assume you can do this in > Metro as well. > > BTW you know StAXSource has a getXMLStreamReader() method, right? So > you can probably just do that. > > Andrew. > Actually, Metro might *not* have a Provider<StreamSource> option, so perhaps Saniya might want to look at using Apache CXF instead. I mention this because on the Dispatch (client) side at least, there are more options[1] for CXF than Metro in this regard: Dispatch<DOMSource>, Dispatch<SAXSource>, and Dispatch<StreamSource> Glen [1] http://www.jroller.com/gmazza/entry/writing_junit_test_cases_for#testepex , see method "doubleItWorksForPrimeNumbers()". -- View this message in context: http://www.nabble.com/Looking-for-a-solution-for-Large-XML-Messages---streaming-and-JAXWS-tp20451942p20459857.html Sent from the cxf-user mailing list archive at Nabble.com.
