Hi all, I've got a question about AXIOM and SOAP:
If I like to have the SOAPEnvelope from a stream, I can do it like this: //create the SOAP Envelope Reader in = new InputStreamReader(socket.getInputStream()); XMLStreamReader xmlreader = XMLInputFactory.newInstance().createXMLStreamReader(in); StAXBuilder builder = new StAXSOAPModelBuilder(xmlreader, null); SOAPEnvelope envelope = (SOAPEnvelope) builder.getDocumentElement(); But if I've already stored the soap-text in a String ... // copy the data from udp packet byte[] buffer = packet.getData(); String data = new String(buffer); ... then there is the problem that the string 'data' must be converted in a stream to use XMLStreamReader and StAXSOAPModelBuilder. Is this the only solution? In the JavaDoc of StAXOMBuilder is written that StAXOMBuilder will build a generic memory model from any XML input source, such as a file, string, stream, etc.. How it works for files and streams is clear, but how does it look like for strings??? I need this for a UDPTransportListener. Thanks for any help, Chris
