Ejemplo n.º 1
0
  @Test
  public void generateJava() {
    String outputdir = "/home/boqi/git/jaxws/src/main/java/";
    String wsdlfile =
        "/home/boqi/git/jaxws/src/main/java/bq/cxf/tutorial/simple2/server/wsdlfirst_echo.wsdl";
    WSDLToJava.main(new String[] {"-impl", "-server", "-d", outputdir, wsdlfile});

    outputdir = "/home/boqi/git/jaxws/src/test/java/";
    WSDLToJava.main(new String[] {"-client", "-d", outputdir, wsdlfile});
  }
Ejemplo n.º 2
0
  public static void main(String[] args) {

    WSDLToJava.main(
        new String[] {
          "-client",
          "-d",
          "src/main/java",
          "-p",
          "client.print.topdown",
          "http://localhost:8080/osmanvlastic/printServiceV2?wsdl"
        });
    System.out.println("Done!");
  }