Hi All, I have my own custom message receiver. In their I am creating the response message and building the body node using StAXOMBuilder from response string and setting the SOAP into the out message context.
It works fine for small xml but when the size becomes big it gives OutOfMemory error. Following is the code I am using to build OMElement. //create the parser for response string XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new ByteArrayInputStream (xmlString.getBytes())); //create the builder StAXOMBuilder builder = new StAXOMBuilder(parser); //get the root element (in this case the body) OMElement bodyNode = builder.getDocumentElement(); Any solutions?? Chinmoy