Hi,
are there any size limits I should be aware of? I'm seeing the following
exceptions while parsing large responses:
Caused by: javax.xml.ws.soap.SOAPFaultException: Error reading XMLStreamReader.
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146)
Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
at
com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:686)
These responses are around 300K.
I wrote an in-interceptor to log the incoming message, and the string I get is
blank. I used:
public void handleMessage(Message message) {
InputStream is = message.getContent(InputStream.class);
if (is == null) {
return;
}
CachedOutputStream bos = new CachedOutputStream();
try {
IOUtils.copy(is, bos);
is.close();
bos.close();
String response = bos.getOut().toString();
log.debug("SOAP Response xml: " + response);
message.setContent(InputStream.class, bos.getInputStream());
} catch (IOException e) {
throw new Fault(e);
}
}
Any thought?
Thanks.
Henk