axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r639515 [3/4] - in /webservices/axis2/trunk/java/modules/samples/jaxws-samples: ./ src/ src/main/ src/main/org/ src/main/org/apache/ src/main/org/apache/axis2/ src/main/org/apache/axis2/jaxws/ src/main/org/apache/axis2/jaxws/samples/ src/ma...
Date Fri, 21 Mar 2008 02:02:35 GMT
Added: webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/ping/PingServicePortImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/ping/PingServicePortImpl.java?rev=639515&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/ping/PingServicePortImpl.java (added)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/ping/PingServicePortImpl.java Thu Mar 20 19:02:22 2008
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis2.jaxws.samples.ping;
+
+import javax.jws.WebService;
+
+
+@WebService(endpointInterface = "org.apache.axis2.jaxws.samples.ping.PingServicePortType", targetNamespace = "http://org/apache/axis2/jaxws/samples/ping/", serviceName = "PingService", portName = "PingServicePort", wsdlLocation = "WEB-INF/wsdl/Ping.wsdl")
+public class PingServicePortImpl {
+
+    public void pingOperation(PingStringInput parameter) {
+        System.out.println(">> SERVICE: SEI Ping JAX-WS Service: Request received.");
+        if (parameter != null) {
+            try {
+                System.out.println(">> SERVICE: SEI Ping Input String '" + parameter.pingInput + "'");
+            } catch (Exception e) {
+                e.printStackTrace();
+            }
+        }
+    }
+}
\ No newline at end of file

Added: webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/ping/PingServicePortType.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/ping/PingServicePortType.java?rev=639515&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/ping/PingServicePortType.java (added)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/ping/PingServicePortType.java Thu Mar 20 19:02:22 2008
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis2.jaxws.samples.ping;
+
+import javax.jws.Oneway;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.soap.SOAPBinding.ParameterStyle;
+
+
+@WebService(name = "PingServicePortType", targetNamespace = "http://org/apache/axis2/jaxws/samples/ping/")
+@SOAPBinding(parameterStyle = ParameterStyle.BARE)
+public interface PingServicePortType {
+
+
+    /**
+     * @param parameter
+     */
+    @WebMethod(action = "pingOperation")
+    @Oneway
+    public void pingOperation(
+            @WebParam(name = "pingStringInput", targetNamespace = "http://org/apache/axis2/jaxws/samples/ping/", partName = "parameter")
+            PingStringInput parameter);
+
+}

Added: webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/ping/PingStringInput.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/ping/PingStringInput.java?rev=639515&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/ping/PingStringInput.java (added)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/ping/PingStringInput.java Thu Mar 20 19:02:22 2008
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis2.jaxws.samples.ping;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for pingStringInput element declaration.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * &lt;element name="pingStringInput">
+ *   &lt;complexType>
+ *     &lt;complexContent>
+ *       &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         &lt;sequence>
+ *           &lt;element name="pingInput" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         &lt;/sequence>
+ *       &lt;/restriction>
+ *     &lt;/complexContent>
+ *   &lt;/complexType>
+ * &lt;/element>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+        "pingInput"
+        })
+@XmlRootElement(name = "pingStringInput")
+public class PingStringInput {
+
+    @XmlElement(required = true)
+    protected String pingInput;
+
+    /**
+     * Gets the value of the pingInput property.
+     *
+     * @return possible object is
+     *         {@link String }
+     */
+    public String getPingInput() {
+        return pingInput;
+    }
+
+    /**
+     * Sets the value of the pingInput property.
+     *
+     * @param value allowed object is
+     *              {@link String }
+     */
+    public void setPingInput(String value) {
+        this.pingInput = value;
+    }
+
+}

Added: webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/ping/package-info.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/ping/package-info.java?rev=639515&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/ping/package-info.java (added)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/ping/package-info.java Thu Mar 20 19:02:22 2008
@@ -0,0 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+@javax.xml.bind.annotation.XmlSchema(namespace = "http://org/apache/axis2/jaxws/samples/ping/") package org.apache.axis2.jaxws.samples.ping;

Added: webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/servlet/EchoPingSampleServlet.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/servlet/EchoPingSampleServlet.java?rev=639515&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/servlet/EchoPingSampleServlet.java (added)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/servlet/EchoPingSampleServlet.java Thu Mar 20 19:02:22 2008
@@ -0,0 +1,174 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis2.jaxws.samples.servlet;
+
+import org.apache.axis2.jaxws.samples.client.SampleClient;
+
+import javax.servlet.Servlet;
+import javax.servlet.ServletContext;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.io.IOException;
+
+/**
+ * EchoPingSampleServlet main entry point for JSP servlet
+ */
+public class EchoPingSampleServlet extends HttpServlet implements Servlet {
+
+    private static final int TIMEOUT = 240; // Async timeout
+    private static final long serialVersionUID = 1039362106123493799L;
+    private static final String CONTEXT_BASE = "/jaxws-samples/services/";
+    private static final String PING_CONTEXT = CONTEXT_BASE + "PingService.PingServicePort";
+    private static final String ECHO_CONTEXT = CONTEXT_BASE + "EchoService.EchoServicePort";
+    private static final String PING_CONTEXT12 = CONTEXT_BASE + "PingService12.PingService12Port";
+    private static final String ECHO_CONTEXT12 = CONTEXT_BASE + "EchoService12.EchoService12Port";
+    private static final String INDEX_JSP_LOCATION = "/WEB-INF/jsp/demoEchoPing.jsp";
+    private static final String PING_RESPONSE_GOOD = "Message delivered successfully. Please check server logs to confirm message delivery.";
+    private static final String PING_RESPONSE_BAD = "ERROR: Failure in client before message delivery.";
+    private String uriString = "";
+    private String soapString = "";
+    private int count = 1;
+
+    public EchoPingSampleServlet() {
+        super();
+    }
+
+    protected void doGet(HttpServletRequest req, HttpServletResponse resp)
+            throws ServletException, IOException {
+        processRequest(req, resp);
+    }
+
+    protected void doPost(HttpServletRequest req, HttpServletResponse resp)
+            throws ServletException, IOException {
+        processRequest(req, resp);
+    }
+
+    /**
+     * processRequest Reads the posted parameters and calls the service
+     */
+    private void processRequest(HttpServletRequest req, HttpServletResponse resp)
+            throws ServletException, IOException {
+
+        ServletContext context = getServletContext();
+        String msgString = req.getParameter("msgstring");
+        String svc = req.getParameter("msgservice");
+        String cnt = req.getParameter("msgcount");
+        String result = "";
+        req.setAttribute("PingSelected", " ");
+        req.setAttribute("EchoSelected", " ");
+        req.setAttribute("AsyncSelected", " ");
+        req.setAttribute("AsyncWireSelected", " ");
+
+        if (null == msgString || "" == msgString) {
+            // Set up the default values to use
+            uriString = "http://localhost:" + req.getServerPort();
+            soapString = "";
+            formatOutput(req, uriString, "", "");
+            req.setAttribute("uridef", uriString);
+            req.setAttribute("soapdef", soapString);
+            req.setAttribute("messageS", " ");
+            req.setAttribute("messageR", " ");
+            req.setAttribute("msgcount", new Integer(count).toString());
+            req.setAttribute("PingSelected", "selected");
+            context.getRequestDispatcher(INDEX_JSP_LOCATION).forward(req, resp);
+        } else {
+            // Get the parms from the request
+            uriString = req.getParameter("uri");
+            soapString = req.getParameter("soap12");
+            if (null != soapString) {
+                soapString = "checked";
+            } else {
+                soapString = "";
+            }
+            // Get count
+            if ((null != cnt) && ("" != cnt)) {
+                count = new Integer(cnt).intValue();
+            }
+
+            // Set the values to be on the refreshed page			
+            req.setAttribute("msgstring", req.getAttribute("msgstring"));
+            req.setAttribute("uridef", uriString);
+            req.setAttribute("soapdef", soapString);
+            req.setAttribute("msgcount", new Integer(count).toString());
+            req.setAttribute(svc + "Selected", "selected");
+
+            // Now call the service
+            SampleClient client = new SampleClient();
+            System.out.println(">> SERVLET: Request count = " + count);
+
+            // Loop on the count
+            for (int index = 0; index < count; index++) {
+                System.out.println(">> SERVLET: Request index: " + (index + 1));
+                if (0 == soapString.length()) {
+                    if (svc.equalsIgnoreCase(("Async"))) {
+                        result += client.buildAsync(uriString + ECHO_CONTEXT, msgString,
+                                TIMEOUT, false);
+                    } else if (svc.equalsIgnoreCase(("AsyncWire"))) {
+                        result += client.buildAsync(uriString + ECHO_CONTEXT, msgString,
+                                TIMEOUT, true);
+                    } else if (svc.equalsIgnoreCase("Echo")) {
+                        result += client.buildEcho(uriString + ECHO_CONTEXT, msgString);
+                    } else {
+                        if (client.buildPing(uriString + PING_CONTEXT, msgString)) {
+                            result += PING_RESPONSE_GOOD;
+                        } else {
+                            result += PING_RESPONSE_BAD;
+                        }
+                    }
+                } else  // SOAP1.2
+                {
+                    if (svc.equalsIgnoreCase(("Async"))) {
+                        result += client.buildAsync12(uriString + ECHO_CONTEXT12, msgString,
+                                TIMEOUT, false);
+                    } else if (svc.equalsIgnoreCase(("AsyncWire"))) {
+                        result += client.buildAsync12(uriString + ECHO_CONTEXT12, msgString,
+                                TIMEOUT, true);
+                    } else if (svc.equalsIgnoreCase("Echo")) {
+                        result += client.buildEcho12(uriString + ECHO_CONTEXT12, msgString);
+                    } else {
+                        if (client.buildPing12(uriString + PING_CONTEXT12, msgString)) {
+                            result += PING_RESPONSE_GOOD;
+                        } else {
+                            result += PING_RESPONSE_BAD;
+                        }
+                    }
+                }
+                result += "\n";
+            }
+
+            // Format the output and refresh the panel
+            formatOutput(req, uriString, msgString, result);
+            context.getRequestDispatcher(INDEX_JSP_LOCATION).forward(req, resp);
+        }
+    }
+
+    /**
+     * formatOutput Format the transaction data into the HTML text area
+     */
+    private void formatOutput(HttpServletRequest req, String endpointURL,
+                              String request, String received) {
+        req.setAttribute("messageS", "\n" + "Connecting to... " + endpointURL
+                + "\n\n" + "Message Request: \n" + request + "\n");
+        req.setAttribute("messageR", "\n" + "Message Response: \n" + received
+                + "\n");
+    }
+
+}
\ No newline at end of file

Added: webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/servlet/MTOMSampleServlet.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/servlet/MTOMSampleServlet.java?rev=639515&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/servlet/MTOMSampleServlet.java (added)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/servlet/MTOMSampleServlet.java Thu Mar 20 19:02:22 2008
@@ -0,0 +1,234 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.axis2.jaxws.samples.servlet;
+
+import org.apache.axis2.jaxws.samples.client.mtom.SampleMTOMTests;
+
+import javax.servlet.ServletContext;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.io.DataInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+
+/**
+ * Servlet implementation class for Servlet: MTOMSampleServlet
+ * <p/>
+ * web.servlet
+ * name="MTOMSampleServlet"
+ * display-name="MTOMSampleServlet"
+ * description="Provides a servlet interface to the MTOM Service Sample"
+ * <p/>
+ * web.servlet-mapping
+ * url-pattern="/MTOMSampleServlet"
+ */
+public class MTOMSampleServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
+    private static final long serialVersionUID = 1039362106123493799L;
+    private static final String INDEX_JSP_LOCATION = "/WEB-INF/jsp/demoMTOM.jsp";
+    private String uriString = "";
+    private String soapString = "";
+    private String fileName = "";
+
+    public MTOMSampleServlet() {
+        super();
+    }
+
+    protected void doGet(HttpServletRequest req, HttpServletResponse resp)
+            throws ServletException, IOException {
+        processRequest(req, resp);
+    }
+
+    protected void doPost(HttpServletRequest req, HttpServletResponse resp)
+            throws ServletException, IOException {
+        processRequest(req, resp);
+    }
+
+    /**
+     * processRequest Reads the posted parameters and calls the service
+     *
+     * @param req  - HttpServletRequest
+     * @param resp - HttpServletResponse
+     * @throws ServletException
+     * @throws IOException
+     */
+    private void processRequest(HttpServletRequest req, HttpServletResponse resp)
+            throws ServletException, IOException {
+        ServletContext context = getServletContext();
+
+        // Set the default values
+        String svc = null;
+        req.setAttribute("DispatchSelected", " ");
+        req.setAttribute("ProxySelected", " ");
+
+        // See if the form was posted 
+        String contentType = req.getContentType();
+        System.out.println(">>SERVLET: Content type is: " + contentType);
+
+        // verify we have multipart/form-data
+        if ((contentType != null)
+                && (contentType.indexOf("multipart/form-data") >= 0)) {
+
+            // Read the post data
+            DataInputStream in = new DataInputStream(req
+                    .getInputStream());
+            int formDataLength = req.getContentLength();
+
+            byte dataBytes[] = new byte[formDataLength];
+            int byteRead = 0;
+            int totalBytesRead = 0;
+            while (totalBytesRead < formDataLength) {
+                byteRead = in.read(dataBytes, totalBytesRead,
+                        formDataLength);
+                totalBytesRead += byteRead;
+            }
+
+            // Change it to a string
+            String data = new String(dataBytes);
+
+            // Parse out the parms
+            svc = getparm("msgservice", data);
+            uriString = getparm("uridef", data);
+            soapString = getparm("soapdef", data);
+
+            // Filename is part of the file data block.
+            fileName = data.substring(data.indexOf("filename=\"") + 10);
+            fileName = fileName.substring(0, fileName.indexOf("\n"));
+
+            // Strip path info out, windows or unix
+            fileName = fileName.substring(fileName.lastIndexOf("\\") + 1, fileName.indexOf("\""));
+            fileName = fileName.substring(fileName.lastIndexOf("/") + 1);
+
+            // Now look for the file data
+            int lastIndex = contentType.lastIndexOf("=");
+            String boundary = contentType.substring(lastIndex + 1,
+                    contentType.length());
+
+            int pos;
+            pos = data.indexOf("filename=\"");
+            pos = data.indexOf("\n", pos) + 1;
+            pos = data.indexOf("\n", pos) + 1;
+            pos = data.indexOf("\n", pos) + 1;
+
+            // Determine the boundaries
+            int boundaryLocation = data.indexOf(boundary, pos) - 4;
+            int startPos = ((data.substring(0, pos)).getBytes()).length;
+            int endPos = ((data.substring(0, boundaryLocation)).getBytes()).length;
+
+            // Write the file locally
+            FileOutputStream fileOut = new FileOutputStream(fileName);
+            fileOut.write(dataBytes, startPos, (endPos - startPos));
+            fileOut.flush();
+            fileOut.close();
+
+            System.out.println(">>SERVLET: File saved as " + fileName);
+        }
+
+        // Null means this is not a post, so we set the defaults
+        if (null == svc || "" == svc) {
+            // Set up the default values to use
+            uriString = "http://localhost:" + req.getServerPort();
+            soapString = "";
+            req.setAttribute("uridef", uriString);
+            req.setAttribute("soapdef", soapString);
+            req.setAttribute("filedef", "");
+            req.setAttribute("messageS", " ");
+            req.setAttribute("messageR", " ");
+            context.getRequestDispatcher(INDEX_JSP_LOCATION).forward(req, resp);
+        } else {
+            // This is a post, work with the data
+            String result = "";
+
+            // Setup soap return
+            soapString = (null != soapString) ? "checked" : "";
+
+            // Set the values to be on the refreshed page			
+            req.setAttribute("uridef", uriString);
+            req.setAttribute("soapdef", soapString);
+            req.setAttribute("filedef", fileName);
+            req.setAttribute(svc + "Selected", "selected");
+
+            // Create an instance of the tests client
+            SampleMTOMTests client = new SampleMTOMTests();
+            System.out.println(">>SERVLET: Filename = " + fileName);
+
+            // Call the test class
+            try {
+                client.setOptions(uriString, (0 != soapString.length()), fileName);
+                if (svc.equals("Dispatch")) {
+                    result = client.testMtomWithDispatch(result);
+                } else {
+                    result = client.testMtomWithProxy(result);
+                }
+            }
+            catch (Exception e) {
+                result = result.concat("ERROR: SERVLET EXCEPTION " + e);
+                System.out.println(">>SERVLET: EXCEPTION " + e);
+            }
+
+            // Format the output and refresh the panel
+            formatOutput(req, uriString, "Sending '" + fileName + "' via MTOM " + ((0 != soapString.length()) ? "SOAP 1.2" : "SOAP 1.1"), result);
+            context.getRequestDispatcher(INDEX_JSP_LOCATION).forward(req, resp);
+        }
+    }
+
+    /**
+     * getparm
+     * <p/>
+     * parses the parameters from the multipart-form data
+     *
+     * @param parm - String to search for
+     * @param data - String with form data
+     * @return - String - the parm value or null if not found
+     */
+    private String getparm(String parm, String data) {
+        String retval = null;
+        parm = "\"" + parm + "\"";
+        int pos = data.indexOf(parm);
+        if (0 <= pos) {
+            pos = data.indexOf("\n", pos) + 1;
+            pos = data.indexOf("\n", pos) + 1;
+            retval = data.substring(pos);
+            if (null != retval) {
+                retval = retval.substring(0, retval.indexOf("\n"));
+                retval = retval.substring(0, retval.indexOf("\r"));
+            }
+        }
+        return retval;
+    }
+
+    /**
+     * formatOutput
+     * <p/>
+     * Format the transaction data into the HTML text area
+     *
+     * @param req         - HttpServletRequest
+     * @param endpointURL - String
+     * @param request     - String with what we send
+     * @param received    - String returned value
+     */
+    private void formatOutput(HttpServletRequest req, String endpointURL,
+                              String request, String received) {
+        req.setAttribute("messageS", "\n" + "Connecting to... " + endpointURL
+                + "\n\n" + "Request: \n" + request + "\n");
+        req.setAttribute("messageR", "\n" + "Response: \n" + received
+                + "\n");
+    }
+}
\ No newline at end of file

Added: webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/axis2.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/axis2.xml?rev=639515&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/axis2.xml (added)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/axis2.xml Thu Mar 20 19:02:22 2008
@@ -0,0 +1,483 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements. See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership. The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License. You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied. See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements. See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership. The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License. You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied. See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<axisconfig name="AxisJava2.0">
+    <!-- ================================================= -->
+    <!-- Parameters -->
+    <!-- ================================================= -->
+    <parameter name="hotdeployment">true</parameter>
+    <parameter name="hotupdate">false</parameter>
+    <parameter name="enableMTOM">false</parameter>
+    <parameter name="enableSwA">false</parameter>
+
+    <!--Uncomment if you want to enable file caching for attachments -->
+    <!--parameter name="cacheAttachments">true</parameter>
+    <parameter name="attachmentDIR"></parameter>
+    <parameter name="sizeThreshold">4000</parameter-->
+
+    <!--Uncomment if you want to plugin your own attachments lifecycle implementation -->
+    <!--<attachmentsLifecycleManager class="org.apache.axiom.attachments.lifecycle.impl.LifecycleManagerImpl"/>-->
+
+
+    <!--Uncomment if you want to enable the reduction of the in-memory cache of WSDL definitions -->
+    <!--In some server environments, the available memory heap is limited and can fill up under load -->
+    <!--Since in-memory copies of WSDL definitions can be large, some steps can be taken-->
+    <!--to reduce the memory needed for the cached WSDL definitions. -->
+    <!--parameter name="reduceWSDLMemoryCache">true</parameter-->
+
+    <!--This will give out the timout of the configuration contexts, in milliseconds-->
+    <parameter name="ConfigContextTimeoutInterval">30000</parameter>
+
+    <!--During a fault, stack trace can be sent with the fault message. The following flag will control -->
+    <!--that behavior.-->
+    <parameter name="sendStacktraceDetailsWithFaults">false</parameter>
+
+    <!--If there aren't any information available to find out the fault reason, we set the message of the exception-->
+    <!--as the faultreason/Reason. But when a fault is thrown from a service or some where, it will be -->
+    <!--wrapped by different levels. Due to this the initial exception message can be lost. If this flag-->
+    <!--is set, then Axis2 tries to get the first exception and set its message as the faultreason/Reason.-->
+    <parameter name="DrillDownToRootCauseForFaultReason">false</parameter>
+
+    <parameter name="userName">admin</parameter>
+    <parameter name="password">axis2</parameter>
+
+    <!--To override repository/services you need to uncomment following parameter and value SHOULD be absolute file path.-->
+    <!--ServicesDirectory only works on the following cases-->
+    <!---File based configurator and in that case the value should be a file URL (http:// not allowed)-->
+    <!---When creating URL Based configurator with URL “file://”  -->
+    <!--- War based configurator with expanded case , -->
+
+    <!--All the other scenarios it will be ignored.-->
+    <!--<parameter name="ServicesDirectory">service</parameter>-->
+    <!--To override repository/modules you need to uncomment following parameter and value SHOULD be absolute file path-->
+    <!--<parameter name="ModulesDirectory">modules</parameter>-->
+
+
+    <!--Following params will set the proper context paths for invocations. All the endpoints will have a commons context-->
+    <!--root which can configured using the following contextRoot parameter-->
+    <!--<parameter name="contextRoot">axis2</parameter>-->
+
+    <!--Our HTTP endpoints can handle both REST and SOAP. Following parameters can be used to distinguiush those endpoints-->
+    <!--In case of a servlet, if you change this you have to manually change the settings of your servlet container to map this -->
+    <!--context path to proper Axis2 servlets-->
+    <!--<parameter name="servicePath">services</parameter>-->
+    <!--<parameter name="restPath">rest</parameter>-->
+
+    <!-- Following parameter will completely disable REST handling in Axis2-->
+    <parameter name="disableREST" locked="true">false</parameter>
+
+    <!-- Following parameter will suppress generation of SOAP 1.2 bindings in auto-generated WSDL files -->
+    <parameter name="disableSOAP12" locked="true">false</parameter>
+
+    <!--POJO deployer , this will alow users to drop .class file and make that into a service-->
+    <deployer extension=".class" directory="pojo" class="org.apache.axis2.deployment.POJODeployer"/>
+    <deployer extension=".jar" directory="pojo" class="org.apache.axis2.jaxws.framework.JAXWSDeployer"/>
+    <!--<deployer extension=".jsa" directory="rmiservices" class="org.apache.axis2.rmi.deploy.RMIServiceDeployer"/>-->
+
+
+    <!-- Following parameter will set the host name for the epr-->
+    <!--<parameter name="hostname" locked="true">myhost.com</parameter>-->
+
+    <!-- If you have a front end host which exposes this webservice using a different public URL  -->
+    <!-- use this parameter to override autodetected url -->
+    <!--<parameter name="httpFrontendHostUrl">https://someotherhost/context</parameter>-->
+
+
+    <!--    The way of adding listener to the system-->
+    <!--    <listener class="org.apache.axis2.ObserverIMPL">-->
+    <!--        <parameter name="RSS_URL">http://127.0.0.1/rss</parameter>-->
+    <!--    </listener>-->
+
+    <!-- Uncomment if JAX-WS 2.1 support is needed. -->
+    <!--
+    <threadContextMigrators>
+        <threadContextMigrator listId="JAXWS-ThreadContextMigrator-List" class="org.apache.axis2.jaxws.addressing.migrator.EndpointContextMapMigrator"/>
+    </threadContextMigrators>
+    -->
+
+    <!-- ================================================= -->
+    <!-- Message Receivers -->
+    <!-- ================================================= -->
+    <!--This is the deafult MessageReceiver for the system , if you want to have MessageReceivers for -->
+    <!--all the other MEP implement it and add the correct entry to here , so that you can refer from-->
+    <!--any operation -->
+    <!--Note : You can ovrride this for a particular service by adding the same element with your requirement-->
+    <messageReceivers>
+        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
+                         class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
+        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
+                         class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+        <messageReceiver mep="http://www.w3.org/2006/01/wsdl/in-only"
+                         class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
+        <messageReceiver mep="http://www.w3.org/2006/01/wsdl/in-out"
+                         class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+    </messageReceivers>
+
+    <!-- ================================================= -->
+    <!-- Message Formatter -->
+    <!-- ================================================= -->
+    <!--Following content type to message formatter mapping can be used to implement support for different message -->
+    <!--format  serialization in Axis2. These message formats are expected to be resolved based on the content type. -->
+    <messageFormatters>
+        <messageFormatter contentType="application/x-www-form-urlencoded"
+                          class="org.apache.axis2.transport.http.XFormURLEncodedFormatter"/>
+        <messageFormatter contentType="multipart/form-data"
+                          class="org.apache.axis2.transport.http.MultipartFormDataFormatter"/>
+        <messageFormatter contentType="application/xml"
+                          class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+        <messageFormatter contentType="text/xml"
+                          class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>
+        <messageFormatter contentType="application/soap+xml"
+                          class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>
+    </messageFormatters>
+
+    <!-- ================================================= -->
+    <!-- Message Builders -->
+    <!-- ================================================= -->
+    <!--Following content type to builder mapping can be used to implement support for different message -->
+    <!--formats in Axis2. These message formats are expected to be resolved based on the content type. -->
+    <messageBuilders>
+        <messageBuilder contentType="application/xml"
+                        class="org.apache.axis2.builder.ApplicationXMLBuilder"/>
+        <messageBuilder contentType="application/xml"
+                        class="org.apache.axis2.builder.ApplicationXMLBuilder"/>
+        <messageBuilder contentType="application/x-www-form-urlencoded"
+                        class="org.apache.axis2.builder.XFormURLEncodedBuilder"/>
+        <messageBuilder contentType="multipart/form-data"
+                        class="org.apache.axis2.builder.MultipartFormDataBuilder"/>
+    </messageBuilders>
+
+    <!-- ================================================= -->
+    <!-- Transport Ins -->
+    <!-- ================================================= -->
+    <transportReceiver name="http"
+                       class="org.apache.axis2.transport.http.SimpleHTTPServer">
+        <parameter name="port">8080</parameter>
+        <!-- Here is the complete list of supported parameters (see example settings further below):
+            port: the port to listen on (default 6060)
+            hostname:  if non-null, url prefix used in reply-to endpoint references                                 (default null)
+            originServer:  value of http Server header in outgoing messages                                         (default "Simple-Server/1.1")
+            requestTimeout:  value in millis of time that requests can wait for data                                (default 20000)
+            requestTcpNoDelay:  true to maximize performance and minimize latency                                   (default true)
+                                false to minimize bandwidth consumption by combining segments
+            requestCoreThreadPoolSize:  number of threads available for request processing (unless queue fills up)  (default 25)
+            requestMaxThreadPoolSize:  number of threads available for request processing if queue fills up         (default 150)
+                                       note that default queue never fills up:  see HttpFactory
+            threadKeepAliveTime:  time to keep threads in excess of core size alive while inactive                  (default 180)
+                                  note that no such threads can exist with default unbounded request queue
+            threadKeepAliveTimeUnit:  TimeUnit of value in threadKeepAliveTime (default SECONDS)                    (default SECONDS)
+        -->
+        <!-- <parameter name="hostname">http://www.myApp.com/ws</parameter> -->
+        <!-- <parameter name="originServer">My-Server/1.1</parameter>           -->
+        <!-- <parameter name="requestTimeout">10000</parameter>                   -->
+        <!-- <parameter name="requestTcpNoDelay">false</parameter>                   -->
+        <!-- <parameter name="requestCoreThreadPoolSize">50</parameter>                      -->
+        <!-- <parameter name="requestMaxThreadPoolSize">100</parameter>                     -->
+        <!-- <parameter name="threadKeepAliveTime">240000</parameter>                  -->
+        <!-- <parameter name="threadKeepAliveTimeUnit">MILLISECONDS</parameter>            -->
+    </transportReceiver>
+
+    <!--Uncomment this and configure as appropriate for JMS transport support, after setting up your JMS environment (e.g. ActiveMQ)
+    <transportReceiver name="jms" class="org.apache.axis2.transport.jms.JMSListener">
+        <parameter name="myTopicConnectionFactory">
+        	<parameter name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter>
+        	<parameter name="java.naming.provider.url">tcp://localhost:61616</parameter>
+        	<parameter name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory</parameter>
+        </parameter>
+
+        <parameter name="myQueueConnectionFactory">
+        	<parameter name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter>
+        	<parameter name="java.naming.provider.url">tcp://localhost:61616</parameter>
+        	<parameter name="transport.jms.ConnectionFactoryJNDIName">QueueConnectionFactory</parameter>
+        </parameter>
+
+        <parameter name="default">
+        	<parameter name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter>
+        	<parameter name="java.naming.provider.url">tcp://localhost:61616</parameter>
+        	<parameter name="transport.jms.ConnectionFactoryJNDIName">QueueConnectionFactory</parameter>
+        </parameter>
+    </transportReceiver>-->
+
+    <!-- ================================================= -->
+    <!-- Non-blocking http/s Transport Listener  -->
+
+    <!-- the non blocking http transport based on HttpCore + NIO extensions
+    <transportReceiver name="http" class="org.apache.axis2.transport.nhttp.HttpCoreNIOListener">
+    	<parameter name="port" locked="false">9000</parameter>
+    	<parameter name="non-blocking" locked="false">true</parameter>
+    </transportReceiver>-->
+
+    <!-- the non blocking https transport based on HttpCore + SSL-NIO extensions
+    <transportReceiver name="https" class="org.apache.axis2.transport.nhttp.HttpCoreNIOSSLListener">
+    	<parameter name="port" locked="false">9002</parameter>
+    	<parameter name="non-blocking" locked="false">true</parameter>
+        <parameter name="keystore" locked="false">
+            <KeyStore>
+                <Location>identity.jks</Location>
+                <Type>JKS</Type>
+                <Password>password</Password>
+                <KeyPassword>password</KeyPassword>
+            </KeyStore>
+        </parameter>
+        <parameter name="truststore" locked="false">
+            <TrustStore>
+                <Location>trust.jks</Location>
+                <Type>JKS</Type>
+                <Password>password</Password>
+            </TrustStore>
+        </parameter>-->
+    <!--<parameter name="SSLVerifyClient">require</parameter>
+supports optional|require or defaults to none -->
+    <!--</transportReceiver>-->
+
+    <!-- ================================================= -->
+    <!-- Mail Transport Listener  -->
+    <!-- This is a sample configuration. It assumes a mail server running in localhost.
+         Listener pops  messages that comes to the email address red@localhost. Users
+         password is red. Listener connect to the server every 3000 milliseconds.
+         Parameters with "transport." prefix is Axis2 specific. Others are all from Java Mail API. 
+         http://people.apache.org/~pzf/SMTPBase64Binding-0.2.html
+     -->
+    <!-- ================================================= -->
+    <!--<transportReceiver name="mailto" class="org.apache.axis2.transport.mail.SimpleMailListener">
+        <parameter name="mail.pop3.host">localhost</parameter>
+        <parameter name="mail.pop3.user">red</parameter>
+        <parameter name="mail.store.protocol">pop3</parameter>
+        <parameter name="transport.mail.pop3.password">red</parameter>
+        <parameter name="transport.mail.replyToAddress">red@localhost</parameter>
+        <parameter name="transport.listener.interval">3000</parameter>
+    </transportReceiver>-->
+
+    <!--Uncomment if you want to have TCP transport support-->
+    <!--transportReceiver name="tcp"
+                       class="org.apache.axis2.transport.tcp.TCPServer">
+        <parameter name="port">6060</parameter-->>
+    <!--If you want to give your own host address for EPR generation-->
+    <!--uncomment the following paramter , and set it as you required.-->
+    <!--<parameter name="hostname">tcp://myApp.com/ws</parameter>-->
+    <!-- /transportReceiver -->
+
+    <!-- ================================================= -->
+    <!-- Transport Outs -->
+    <!-- ================================================= -->
+
+    <transportSender name="tcp"
+                     class="org.apache.axis2.transport.tcp.TCPTransportSender"/>
+    <transportSender name="local"
+                     class="org.apache.axis2.transport.local.LocalTransportSender"/>
+    <transportSender name="http"
+                     class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
+        <parameter name="PROTOCOL">HTTP/1.1</parameter>
+        <parameter name="Transfer-Encoding">chunked</parameter>
+
+        <!-- If following is set to 'true', optional action part of the Content-Type will not be added to the SOAP 1.2 messages -->
+        <!--  <parameter name="OmitSOAP12Action">true</parameter>  -->
+    </transportSender>
+
+    <transportSender name="https"
+                     class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
+        <parameter name="PROTOCOL">HTTP/1.1</parameter>
+        <parameter name="Transfer-Encoding">chunked</parameter>
+    </transportSender>
+    <transportSender name="java"
+                     class="org.apache.axis2.transport.java.JavaTransportSender"/>
+
+    <!--<transportSender name="jms"-->
+    <!--class="org.apache.axis2.transport.jms.JMSSender"/>-->
+
+    <!-- ================================================= -->
+    <!-- Non-blocking http/s Transport Sender  -->
+
+    <!-- the non-blocking http transport sender based on HttpCore + NIO extensions
+    <transportSender name="http"  class="org.apache.axis2.transport.nhttp.HttpCoreNIOSender">
+        <parameter name="non-blocking" locked="false">true</parameter>
+    </transportSender>-->
+
+    <!-- the non-blocking https transport sender based on HttpCore + NIO SSL extensions
+    <transportSender name="https" class="org.apache.axis2.transport.nhttp.HttpCoreNIOSSLSender">
+        <parameter name="non-blocking" locked="false">true</parameter>
+        <parameter name="keystore" locked="false">
+            <KeyStore>
+                <Location>identity.jks</Location>
+                <Type>JKS</Type>
+                <Password>password</Password>
+                <KeyPassword>password</KeyPassword>
+            </KeyStore>
+        </parameter>
+        <parameter name="truststore" locked="false">
+            <TrustStore>
+                <Location>trust.jks</Location>
+                <Type>JKS</Type>
+                <Password>password</Password>
+            </TrustStore>
+        </parameter>-->
+    <!--<parameter name="HostnameVerifier">DefaultAndLocalhost</parameter>
+supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified -->
+    <!--</transportSender>-->
+
+    <!-- ================================================= -->
+    <!-- Mail Transport Sender  -->
+    <!--Only need to uncomment the sender. Configuration is achieved with every client.
+        At any instant mail host should be given. Sample configuration has been given.
+        http://people.apache.org/~pzf/SMTPBase64Binding-0.2.html
+   -->
+    <!-- ================================================= -->
+    <!--<transportSender name="mailto" class="org.apache.axis2.transport.mail.MailTransportSender">
+        <parameter name="mail.smtp.host">localhost</parameter>
+    </transportSender>-->
+
+    <!-- ================================================= -->
+    <!-- Global Modules  -->
+    <!-- ================================================= -->
+    <!-- Comment this to disable Addressing -->
+    <!--<module ref="addressing"/>-->
+
+    <!--Configuring module , providing parameters for modules whether they refer or not-->
+    <!--<moduleConfig name="addressing">-->
+    <!--<parameter name="addressingPara">N/A</parameter>-->
+    <!--</moduleConfig>-->
+
+    <!-- ================================================= -->
+    <!-- Clustering  -->
+    <!-- ================================================= -->
+    <!-- Configure and uncomment following for preparing Axis2 to a clustered environment -->
+    <!--
+    <cluster class="org.apache.axis2.cluster.tribes.TribesClusterManager">
+        <parameter name="param1">value1</parameter>
+        <parameter name="domain">apache.axis2.domain</parameter>
+        <parameter name="synchronizeAll">true</parameter>
+        <parameter name="maxRetries">10</parameter>
+    	<configurationManager class="org.apache.axis2.cluster.configuration.TribesConfigurationManager">
+    	    <listener class="org.apache.axis2.cluster.configuration.DefaultConfigurationManagerListener"/>
+    	</configurationManager>
+    	<contextManager class="org.apache.axis2.cluster.context.TribesContextManager">
+    	    <listener class="org.apache.axis2.cluster.context.DefaultContextManagerListener"/>
+    	</contextManager>
+    </cluster>
+    -->
+
+    <!-- ================================================= -->
+    <!-- Phases  -->
+    <!-- ================================================= -->
+    <phaseOrder type="InFlow">
+        <!--  System predefined phases       -->
+        <phase name="Transport">
+            <handler name="RequestURIBasedDispatcher"
+                     class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher">
+                <order phase="Transport"/>
+            </handler>
+            <handler name="SOAPActionBasedDispatcher"
+                     class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher">
+                <order phase="Transport"/>
+            </handler>
+        </phase>
+        <phase name="Addressing">
+            <handler name="AddressingBasedDispatcher"
+                     class="org.apache.axis2.dispatchers.AddressingBasedDispatcher">
+                <order phase="Addressing"/>
+            </handler>
+        </phase>
+        <phase name="Security"/>
+        <phase name="PreDispatch"/>
+        <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase">
+            <handler name="RequestURIBasedDispatcher"
+                     class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher"/>
+            <handler name="SOAPActionBasedDispatcher"
+                     class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher"/>
+            <handler name="RequestURIOperationDispatcher"
+                     class="org.apache.axis2.dispatchers.RequestURIOperationDispatcher"/>
+            <handler name="SOAPMessageBodyBasedDispatcher"
+                     class="org.apache.axis2.dispatchers.SOAPMessageBodyBasedDispatcher"/>
+
+            <handler name="HTTPLocationBasedDispatcher"
+                     class="org.apache.axis2.dispatchers.HTTPLocationBasedDispatcher"/>
+        </phase>
+        <phase name="RMPhase"/>
+        <!--  System predefined phases       -->
+        <!--   After Postdispatch phase module author or service author can add any phase he want      -->
+        <phase name="OperationInPhase"/>
+        <phase name="soapmonitorPhase"/>
+    </phaseOrder>
+    <phaseOrder type="OutFlow">
+        <!--      user can add his own phases to this area  -->
+        <phase name="soapmonitorPhase"/>
+        <phase name="OperationOutPhase"/>
+        <!--system predefined phase-->
+        <!--these phase will run irrespective of the service-->
+        <phase name="RMPhase"/>
+        <phase name="PolicyDetermination"/>
+        <phase name="MessageOut"/>
+        <phase name="Security"/>
+    </phaseOrder>
+    <phaseOrder type="InFaultFlow">
+        <phase name="Addressing">
+            <handler name="AddressingBasedDispatcher"
+                     class="org.apache.axis2.dispatchers.AddressingBasedDispatcher">
+                <order phase="Addressing"/>
+            </handler>
+        </phase>
+        <phase name="Security"/>
+        <phase name="PreDispatch"/>
+        <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase">
+            <handler name="RequestURIBasedDispatcher"
+                     class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher"/>
+            <handler name="SOAPActionBasedDispatcher"
+                     class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher"/>
+            <handler name="RequestURIOperationDispatcher"
+                     class="org.apache.axis2.dispatchers.RequestURIOperationDispatcher"/>
+            <handler name="SOAPMessageBodyBasedDispatcher"
+                     class="org.apache.axis2.dispatchers.SOAPMessageBodyBasedDispatcher"/>
+
+            <handler name="HTTPLocationBasedDispatcher"
+                     class="org.apache.axis2.dispatchers.HTTPLocationBasedDispatcher"/>
+        </phase>
+        <phase name="RMPhase"/>
+        <!--      user can add his own phases to this area  -->
+        <phase name="OperationInFaultPhase"/>
+        <phase name="soapmonitorPhase"/>
+    </phaseOrder>
+    <phaseOrder type="OutFaultFlow">
+        <!--      user can add his own phases to this area  -->
+        <phase name="soapmonitorPhase"/>
+        <phase name="OperationOutFaultPhase"/>
+        <phase name="RMPhase"/>
+        <phase name="PolicyDetermination"/>
+        <phase name="MessageOut"/>
+    </phaseOrder>
+</axisconfig>
+

Added: webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/classes/commons-logging.properties
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/classes/commons-logging.properties?rev=639515&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/classes/commons-logging.properties (added)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/classes/commons-logging.properties Thu Mar 20 19:02:22 2008
@@ -0,0 +1,86 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# This is the logging properties that goes to the war, there are two logging conf kept at the 
+# svn, one for developement (one at src/test-resources) and other for producation
+ 
+# Uncomment the next line to disable all logging.
+#org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
+
+# Uncomment the next line to enable the simple log based logging
+#org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
+
+# Uncomment the next line to enable log4j based logging
+org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger

Added: webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/classes/log4j.properties
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/classes/log4j.properties?rev=639515&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/classes/log4j.properties (added)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/classes/log4j.properties Thu Mar 20 19:02:22 2008
@@ -0,0 +1,96 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# Set root category priority to INFO and its only appender to CONSOLE.
+log4j.rootCategory=INFO, CONSOLE
+#log4j.rootCategory=INFO, CONSOLE, LOGFILE
+
+# Set the enterprise logger priority to FATAL
+log4j.logger.org.apache.axis2.enterprise=FATAL
+log4j.logger.de.hunsicker.jalopy.io=FATAL
+log4j.logger.httpclient.wire.header=FATAL
+log4j.logger.org.apache.commons.httpclient=FATAL
+
+# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
+log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
+log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
+log4j.appender.CONSOLE.layout.ConversionPattern=[%p] %m%n
+
+# LOGFILE is set to be a File appender using a PatternLayout.
+log4j.appender.LOGFILE=org.apache.log4j.FileAppender
+log4j.appender.LOGFILE.File=axis2.log
+log4j.appender.LOGFILE.Append=true
+log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
+log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
\ No newline at end of file

Added: webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/jsp/demoEchoPing.jsp
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/jsp/demoEchoPing.jsp?rev=639515&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/jsp/demoEchoPing.jsp (added)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/jsp/demoEchoPing.jsp Thu Mar 20 19:02:22 2008
@@ -0,0 +1,144 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+
+<%--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements. See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership. The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License. You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied. See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  --%>
+
+<HTML>
+<HEAD>
+    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
+             pageEncoding="ISO-8859-1" %>
+    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+    <TITLE>JAX-WS Web Services Ping and Echo Sample</TITLE>
+</HEAD>
+<BODY>
+<P align="center"><B><FONT size="+2">JAX-WS Web Services Ping and Echo Sample
+</FONT></B></P>
+
+<H3><B> <U>Message Options</U></B></H3>
+
+<FORM name="demoMe" method="POST" action="/jaxws-samples/demoEchoPing">
+<TABLE border="0" cellpadding="0" cellspacing="1">
+<TBODY>
+<TR>
+    <TD>
+        <TABLE border="0" cellpadding="0" cellspacing="1" bgcolor="#99FFBB">
+            <TBODY>
+                <TR>
+                    <TD><B>Message Type:</B></TD>
+                    <TD><B><SELECT name="msgservice">
+                        <OPTION value="Ping" <%=request.getAttribute("PingSelected")%>>One-Way
+                            Ping
+                        </OPTION>
+                        <OPTION value="Echo" <%=request.getAttribute("EchoSelected")%>>Synchronous
+                            Echo
+                        </OPTION>
+                        <OPTION value="Async" <%=request.getAttribute("AsyncSelected")%>>Asynchronous
+                            Echo with Sync Communication
+                        </OPTION>
+                        <OPTION value="AsyncWire"
+                                <%=request.getAttribute("AsyncWireSelected")%>>Asynchronous
+                            Echo with Async Communication
+                        </OPTION>
+                    </SELECT></B></TD>
+                    <TD></TD>
+                </TR>
+                <TR>
+                    <TD><BR>
+                    </TD>
+                    <TD></TD>
+                    <TD></TD>
+                </TR>
+                <TR>
+                    <TD><B>Message String:</B></TD>
+                    <TD><INPUT type="text" name="msgstring" size="40"></TD>
+                    <TD></TD>
+                </TR>
+                <TR>
+                    <TD><BR>
+                    </TD>
+                    <TD></TD>
+                    <TD></TD>
+                </TR>
+                <TR>
+                    <TD><B>Message Count:</B></TD>
+                    <TD><B><INPUT type="text" name="msgcount" size="4"
+                                  value="<%=request.getAttribute("msgcount")%>"></B></TD>
+                </TR>
+                <TR>
+                    <TD><BR>
+                    </TD>
+                    <TD></TD>
+                    <TD></TD>
+                </TR>
+                <TR>
+                    <TD><B>Service URI:</B></TD>
+                    <TD><B><INPUT type="text" name="uri" size="40"
+                                  value="<%=request.getAttribute("uridef")%>"></B></TD>
+                    <TD></TD>
+                </TR>
+                <TR>
+                    <TD><BR>
+                    </TD>
+                    <TD><FONT size="-1">"example:
+                        http://ServiceHostname:port"</FONT></TD>
+                    <TD></TD>
+                </TR>
+                <TR>
+                    <TD><BR>
+                    </TD>
+                    <TD></TD>
+                    <TD></TD>
+                </TR>
+                <TR>
+                    <TD><B>SOAP:</B></TD>
+                    <TD><INPUT type="checkbox" name="soap12"
+                    <%=request.getAttribute("soapdef")%>>Use SOAP 1.2
+                    </TD>
+                    <TD></TD>
+                </TR>
+            </TBODY>
+        </TABLE>
+    </TD>
+</TR>
+<TR>
+    <TD>
+        <TABLE width="50" border="0" cellpadding="0" cellspacing="1">
+            <TBODY>
+                <TR>
+                    <TD><INPUT type="submit" name="SUBMIT" value="Send Message">
+                </TR>
+                <TR>
+                    <TD><TEXTAREA rows="20" cols="60" name="OUTPUT" readonly
+                                  style="background:#E6E6FA" style="font-weight: bold"
+                                  style="border-style:solid">
+                        <%=request.getAttribute("messageS")%>
+                        <%=request.getAttribute("messageR")%>
+                    </TEXTAREA>
+                    </TD>
+                    <TD></TD>
+                </TR>
+            </TBODY>
+        </TABLE>
+    </TD>
+</TR>
+</TBODY>
+</TABLE>
+</FORM>
+</BODY>
+</HTML>

Added: webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/jsp/demoMTOM.jsp
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/jsp/demoMTOM.jsp?rev=639515&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/jsp/demoMTOM.jsp (added)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/jsp/demoMTOM.jsp Thu Mar 20 19:02:22 2008
@@ -0,0 +1,117 @@
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
+         pageEncoding="ISO-8859-1" %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+
+<%--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements. See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership. The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License. You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied. See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  --%>
+
+<html>
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+    <title>JAX-WS Web Services MTOM Sample</title>
+</head>
+<body>
+<P align="center"><B><FONT size="+2">JAX-WS Web Services MTOM Sample
+</FONT></B></P>
+
+<H3><B> <U>Message Options</U></B></H3>
+
+<FORM name="mtomdemo" method="POST" action="/jaxws-samples/demoMTOM" enctype="multipart/form-data">
+    <TABLE border="0" cellpadding="0" cellspacing="1">
+        <TBODY>
+            <TR>
+                <TD>
+                    <TABLE border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCC22">
+                        <TBODY>
+                            <TR>
+                                <TD><B>Service Type:</B></TD>
+                                <TD><B><SELECT name="msgservice">
+                                    <OPTION value="Dispatch" <%=request.getAttribute("DispatchSelected")%>>Dispatch
+                                    </OPTION>
+                                    <OPTION value="Proxy" <%=request.getAttribute("ProxySelected")%>>Proxy</OPTION>
+                                </SELECT></B></TD>
+                                <TD></TD>
+                            </TR>
+                            <TR>
+                                <TD><B>Source Filename:</B></TD>
+                                <TD><B><INPUT type="file" name="filedef" size="32"
+                                              value="<%=request.getAttribute("filedef")%>"></B></TD>
+                            </TR>
+                            <TR>
+                                <TD><BR>
+                                </TD>
+                                <TD></TD>
+                                <TD></TD>
+                            </TR>
+                            <TR>
+                                <TD><B>Service URI:</B></TD>
+                                <TD><B><INPUT type="text" name="uridef" size="40"
+                                              value="<%=request.getAttribute("uridef")%>"></B></TD>
+                                <TD></TD>
+                            </TR>
+                            <TR>
+                                <TD><BR>
+                                </TD>
+                                <TD><FONT size="-1">example:
+                                    http://ServiceHostname:port</FONT></TD>
+                                <TD></TD>
+                            </TR>
+                            <TR>
+                                <TD><BR>
+                                </TD>
+                                <TD></TD>
+                                <TD></TD>
+                            </TR>
+                            <TR>
+                                <TD><B>SOAP:</B></TD>
+                                <TD><INPUT type="checkbox" name="soapdef"
+                                <%=request.getAttribute("soapdef")%>>Use SOAP 1.2
+                                </TD>
+                                <TD></TD>
+                            </TR>
+                        </TBODY>
+                    </TABLE>
+                </TD>
+            </TR>
+            <TR>
+                <TD>
+                    <TABLE width="50" border="0" cellpadding="0" cellspacing="1">
+                        <TBODY>
+                            <TR>
+                                <TD><INPUT type="submit" name="SUBMIT" value="Send Message">
+                            </TR>
+                            <TR>
+                                <TD><TEXTAREA rows="20" cols="60" name="OUTPUT" readonly
+                                              style="background:#FAE622" style="font-weight: bold"
+                                              style="border-style:solid">
+                                    <%=request.getAttribute("messageS")%>
+                                    <%=request.getAttribute("messageR")%>
+                                </TEXTAREA>
+                                </TD>
+                                <TD></TD>
+                            </TR>
+                        </TBODY>
+                    </TABLE>
+                </TD>
+            </TR>
+        </TBODY>
+    </TABLE>
+</FORM>
+</body>
+</html>
\ No newline at end of file

Added: webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/web.xml?rev=639515&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/web.xml (added)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/web.xml Thu Mar 20 19:02:22 2008
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements. See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership. The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License. You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied. See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+    <servlet>
+        <servlet-name>AxisServlet</servlet-name>
+        <servlet-class>
+            org.apache.axis2.transport.http.AxisServlet
+        </servlet-class>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/services/*</url-pattern>
+    </servlet-mapping>
+
+    <servlet id="Servlet_1182367307416">
+        <servlet-name>MTOMSampleServlet</servlet-name>
+        <servlet-class>
+            org.apache.axis2.jaxws.samples.servlet.MTOMSampleServlet
+        </servlet-class>
+    </servlet>
+
+    <servlet-mapping>
+        <servlet-name>MTOMSampleServlet</servlet-name>
+        <url-pattern>/demoMTOM</url-pattern>
+    </servlet-mapping>
+
+    <servlet>
+        <servlet-name>EchoPingSampleServlet</servlet-name>
+        <servlet-class>org.apache.axis2.jaxws.samples.servlet.EchoPingSampleServlet</servlet-class>
+    </servlet>
+    <servlet-mapping>
+        <servlet-name>EchoPingSampleServlet</servlet-name>
+        <url-pattern>/demoEchoPing</url-pattern>
+    </servlet-mapping>
+</web-app>

Added: webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/wsdl/Echo.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/wsdl/Echo.wsdl?rev=639515&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/wsdl/Echo.wsdl (added)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/wsdl/Echo.wsdl Thu Mar 20 19:02:22 2008
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements. See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership. The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License. You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied. See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+                  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+                  xmlns:tns="http://org/apache/axis2/jaxws/samples/echo/"
+                  xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="EchoService"
+                  targetNamespace="http://org/apache/axis2/jaxws/samples/echo/">
+    <wsdl:types>
+        <xsd:schema
+                targetNamespace="http://org/apache/axis2/jaxws/samples/echo/"
+                xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+
+            <xsd:element name="echoStringResponse">
+                <xsd:complexType>
+                    <xsd:sequence>
+                        <xsd:element name="echoResponse"
+                                     type="xsd:string"/>
+                    </xsd:sequence>
+                </xsd:complexType>
+            </xsd:element>
+
+            <xsd:element name="echoStringInput">
+                <xsd:complexType>
+                    <xsd:sequence>
+                        <xsd:element name="echoInput" type="xsd:string"/>
+                    </xsd:sequence>
+                </xsd:complexType>
+            </xsd:element>
+
+        </xsd:schema>
+    </wsdl:types>
+    <wsdl:message name="echoOperationRequest">
+        <wsdl:part element="tns:echoStringInput" name="parameter"/>
+    </wsdl:message>
+    <wsdl:message name="echoOperationResponse">
+        <wsdl:part element="tns:echoStringResponse" name="parameter"/>
+    </wsdl:message>
+    <wsdl:portType name="EchoServicePortType">
+
+        <wsdl:operation name="echoOperation">
+            <wsdl:input message="tns:echoOperationRequest"/>
+            <wsdl:output message="tns:echoOperationResponse"/>
+        </wsdl:operation>
+    </wsdl:portType>
+    <wsdl:binding name="EchoSOAP" type="tns:EchoServicePortType">
+        <soap:binding style="document"
+                      transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="echoOperation">
+            <soap:operation soapAction="echoOperation" style="document"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="EchoService">
+        <wsdl:port binding="tns:EchoSOAP" name="EchoServicePort">
+            <soap:address
+                    location="http://localhost:8080/jaxws-samples/services/EchoService"/>
+        </wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>

Added: webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/wsdl/Echo12.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/wsdl/Echo12.wsdl?rev=639515&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/wsdl/Echo12.wsdl (added)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/wsdl/Echo12.wsdl Thu Mar 20 19:02:22 2008
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements. See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership. The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License. You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied. See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+                  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap12/"
+                  xmlns:tns="http://org/apache/axis2/jaxws/samples/echo/"
+                  xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="EchoService12"
+                  targetNamespace="http://org/apache/axis2/jaxws/samples/echo/">
+    <wsdl:types>
+        <xsd:schema
+                targetNamespace="http://org/apache/axis2/jaxws/samples/echo/"
+                xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+            <xsd:element name="echoStringResponse">
+                <xsd:complexType>
+                    <xsd:sequence>
+                        <xsd:element name="echoResponse"
+                                     type="xsd:string"/>
+                    </xsd:sequence>
+                </xsd:complexType>
+            </xsd:element>
+
+            <xsd:element name="echoStringInput">
+                <xsd:complexType>
+                    <xsd:sequence>
+                        <xsd:element name="echoInput" type="xsd:string"/>
+                    </xsd:sequence>
+                </xsd:complexType>
+            </xsd:element>
+
+        </xsd:schema>
+    </wsdl:types>
+    <wsdl:message name="echoOperationRequest">
+        <wsdl:part element="tns:echoStringInput" name="parameter"/>
+    </wsdl:message>
+    <wsdl:message name="echoOperationResponse">
+        <wsdl:part element="tns:echoStringResponse" name="parameter"/>
+    </wsdl:message>
+    <wsdl:portType name="EchoService12PortType">
+
+        <wsdl:operation name="echoOperation">
+            <wsdl:input message="tns:echoOperationRequest"/>
+            <wsdl:output message="tns:echoOperationResponse"/>
+        </wsdl:operation>
+    </wsdl:portType>
+    <wsdl:binding name="EchoSOAP12" type="tns:EchoService12PortType">
+        <soap:binding style="document"
+                      transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="echoOperation">
+            <soap:operation soapAction="echoOperation" style="document"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="EchoService12">
+        <wsdl:port binding="tns:EchoSOAP12" name="EchoService12Port">
+            <soap:address
+                    location="http://localhost:8080/jaxws-samples/services/EchoService12"/>
+        </wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message