package com.mycompany.myproject;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.WebServlet;
import javax.xml.ws.*;
import javax.xml.ws.soap.*;

@WebServlet("/ServletTest")
public class Servlet30Client extends HttpServlet {

    @Addressing
    @RespectBinding(enabled=true)
    @WebServiceRef(name="service/port1", type=Echo.class, value=EchoService.class)
    Echo port1 = null;

    public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
        // do something with port1 JAXWS proxy
    }

    public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
        doGet(req, res);
    }

}
