Hi Sebastian, Maybe a silly question, but where is the end-tag ('>')?
Henk. -----Original Message----- From: Sebastian [mailto:[EMAIL PROTECTED]] Sent: Thursday, 01 August, 2002 11:03 AM To: [EMAIL PROTECTED] Subject: ServerUtils Hello everyone! I am trying to transport SOAP using BEEP. For this, I have written a class which is supposed to read an InputStream and extract from it the SOAP-Envelope. I have used the ServerUtils.readEnvelopeFromInputStream method there but it doesn't seem to work, does anyone have an idea why? I keep getting this exception: "Exception caught:Root element of a SOAP message must be: 'http://schemas.xmlsoap.org/soap/envelope/:Envelope'." Which is funny, because the message does have this element as a root element. Here is my code fragment (without the rest of the soap-string): String msg = "<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\"..."; StringBufferInputStream sstream = new StringBufferInputStream(msg); SOAPContext ctx = new SOAPContext(); EnvelopeEditorAdapter editor = new EnvelopeEditorAdapter(); builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Envelope callEnv = ServerUtils.readEnvelopeFromInputStream (builder, sstream, msg.length(),"text/xml", editor, ctx); -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>