jdk生成Webservice客户端方法

C:Documents and SettingsAdministrator>wsimport -d D:ws -keep -verbose -p com.yzl.ws02 http://localhost:8888/ws01?wsdl

-d <directory> specify where to place generated output files(指定生成文件的路径)
-verbose output messages about what the compiler is doing(输出详细信息)
-keep keep generated files(生成java文件,不带此参数将只生成class文件)
-p <pkg> specifies the target package (生成代码的目标包)

原文地址:https://www.cnblogs.com/lukawa/p/4999155.html