assert unconsumed();
try {
if(payloadLocalName==null)
return; // no body
XMLStreamReaderToContentHandler conv =
new XMLStreamReaderToContentHandler(reader,contentHandler,true,fragment,getInscopeNamespaces());
while(reader.getEventType() != XMLStreamConstants.END_DOCUMENT){
String name = reader.getLocalName();
String nsUri = reader.getNamespaceURI();
//after previous conv.bridge() call the cursor will be at
//END_ELEMENT. Check if its not soapenv:Body then move to next
// ELEMENT
if(reader.getEventType() == XMLStreamConstants.END_ELEMENT){
if(!name.equals("Body") || !nsUri.equals(soapVersion.nsUri)){
XMLStreamReaderUtil.nextElementContent(reader);
if(reader.getEventType() == XMLStreamConstants.END_DOCUMENT)
break;
name = reader.getLocalName();
nsUri = reader.getNamespaceURI();
}
}
if(name.equals("Body") && nsUri.equals(soapVersion.nsUri) || (reader.getEventType() == XMLStreamConstants.END_DOCUMENT))
break;
conv.bridge();
}
XMLStreamReaderUtil.readRest(reader);
XMLStreamReaderUtil.close(reader);
XMLStreamReaderFactory.recycle(reader);
} catch (XMLStreamException e) {