<%@ page import="java.io.*"%> <% 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()); %>