Collection<SchemaInfo> schemas = part.getMessageInfo().getOperation()
.getInterface().getService().getSchemas();
if ("POST".equals(method) || "PUT".equals(method)) {
XMLInputFactory inputFactory = StaxInInterceptor.getXMLInputFactory(message);
try {
<BUG>XMLStreamReader reader =

inputFactory.createXMLStreamReader(message.getContent(InputStream.class));

doc = StaxUtils.read(reader);</BUG>
} catch (XMLStreamException e) {

Collection<SchemaInfo> schemas = part.getMessageInfo().getOperation()
.getInterface().getService().getSchemas();
if ("POST".equals(method) || "PUT".equals(method)) {
XMLInputFactory inputFactory = StaxInInterceptor.getXMLInputFactory(message);
try {
XMLStreamReader reader;
synchronized (inputFactory) {
reader = inputFactory.createXMLStreamReader(message.getContent(InputStream.class));
}
doc = StaxUtils.read(reader);
} catch (XMLStreamException e) {
