WSDL命令

1、根据java代码生成wsdd文件。

 

import  org.apche.axis.wsdl.Java2WSDL

 

 

public class MyJava2Wsdl

 

{

  Java2WSDL.main(new String[]

 {

     "-d",

     "-S","Content",

     "-o","content.wsdl",

      "-l","http://localhost:18080/b*e/services",

      "-y","document",

      "-u","LITERAL",

      "com.h*.inside.api.Content"

  };

 

}

 

 

2、根据wsdl文件生成soap客户端。

 

 

public class MyWsdl2Java

 

{

  WSDL2Java.main(new String[]

 {

     "content.wsdl",

     "-o",

     "test"

  });

 

}

 

你可能感兴趣的:(java,SOAP)