예제 #1
0
 public static void main(String[] args) throws Exception {
   DeploymentUtils utils = null;
   try {
     utils = new DeploymentUtils();
     utils.addWarDeployment("ws-example.war", true, EndpointImpl.class.getPackage());
     utils.deploy();
     testWSDL();
     testSOAPCall();
     testWebServiceRef();
   } finally {
     utils.undeploy();
     safeClose(utils);
   }
 }
예제 #2
0
  public static void main(String[] args) throws Exception {
    DeploymentUtils utils = null;
    try {
      utils = new DeploymentUtils();
      utils.addWarDeployment("war-example.war", SimpleServlet.class.getPackage(), true);
      utils.deploy();

      performCall("simple");
      performCall("legacy");
    } finally {
      utils.undeploy();
      safeClose(utils);
    }
  }