<%@ page import="java.io.*"%> <% System.out.println("madhav: soapPayload.jsp sessionid = " + session.getId()); java.util.Enumeration headers = request.getHeaderNames(); String header = null; while(headers.hasMoreElements()) { header = (String)headers.nextElement(); if("soapaction".equalsIgnoreCase(header)) { session.setAttribute("soapaction", request.getHeader(header)); } } StringBuffer payload = new StringBuffer(); BufferedReader br = new BufferedReader(new InputStreamReader(request.getInputStream())); String line = br.readLine(); while(line != null) { payload.append(line); line = br.readLine(); } session.setAttribute("payload", payload.toString()); System.out.println("madhav: soapPayload.jsp = " + payload.toString()); %>