I am trying to create a servlet that will receive a soap message from a webservice created using WSE 2.0. But When I am trying to create the soap message on the servlet I get the following error.
java.io.IOException: DIME version received "7" greater than current supported version "1". This is the soap message I received when I uses TCP/IP monitor <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><wsa:Action>http://tempuri.org/Notify</wsa:Action><wsa:MessageID>uuid:9dfca48a-81cd-4002-8df9-64d67b83a52e</wsa:MessageID><wsa:To>http://localhost:9090/UnsolicitedEventsTest/UnsolicitedEventsServlet</wsa:To><wsse:Security><wsu:Timestamp wsu:Id="Timestamp-e75e570e-bbf3-4199-b806-b3997af72bbb"><wsu:Created>2006-09-15T00:16:59Z</wsu:Created><wsu:Expires>2006-09-15T00:21:59Z</wsu:Expires></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><Event><EventName>New Registration</EventName> <EventTime>10 am PST</EventTime> </Event></soap:Body></soap:Envelope> This is my java code in the servlet running on Tomcat 5.5 and it uses apache axis 1.4 protected void doPost(HttpServletRequest request, HttpServletResponse response) { // TODO Auto-generated method stub System.out.println("in doPost"); try{ String eventInfo = extractSoapMessage(request,response); System.out.println("Event Received is"); System.out.println(eventInfo); } catch(Exception e) { System.out.println(e); } } private String extractSoapMessage(HttpServletRequest request,HttpServletResponse response) { String eventInfo=null; try{ //BufferedInputStream in = new BufferedInputStream(request.getInputStream()); MultiPartDimeInputStream mpin=new MultiPartDimeInputStream(request.getInputStream()); SOAPEnvelope env= new SOAPEnvelope(mpin); SOAPBody body =(SOAPBody)env.getBody(); Iterator iter =body.getChildElements(); while(iter.hasNext()) { SOAPElement elem = (SOAPElement)iter.next(); eventInfo=elem.toString(); } }catch(Exception e) { System.out.println(e); } return eventInfo; } I think the error is generated by the statement :MultiPartDimeInputStream mpin=new MultiPartDimeInputStream(request.getInputStream()); But the same function running on custom tcp port and receiving soap message on tcp port is running fine. I wonder where the problem can be I have the same axis 1.4 library in the lib folder under my servlet webapp folder. Can someone help me in resolving the error as I need its fix on urgent basis. thanks Shantanu -- Graduate Student Department of Computer Science, San Diego State University --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
