weathers.add(weatherModule2); return weathers; } public static void main(String[] args) { } } 第五步:使用wsgen 1、Cmd进入命令行 2、cd 工程目录 3、执行wsgen 格式为: wsgn [–wsdl] –cp <服务接口或类> [-r] -cp classpath(注意都是相对与当前目录) -r wsdl Xsoap1.2生成wsdl, 另外,服务类添加 @BindingType(value="http://www.w3.org/2003/05/soap/bindings/HTTP/") Soap1.1方式 wsgen soap1.1 -cp WebRoot\WEB-INF\classes cn.itcast.weather.server.ServerJws -r WebRoot\WEB-INF\wsdl soap1.2方式 wsgen
jhat jinfo jmap jps jrunscript jsadebugd jstack jstat jstatd native2ascii rmic schemagen serialver wsgen
* ktab.exe* vcruntime140.dll* javah.exe* jli.dll* native2ascii.exe* wsgen.exe
tnameserv.exe javap.exe jstat.exe unpack200.exe javapackager.exe jstatd.exe wsgen.exe 48 wsgen.exe XML Web Service 2.0的Java API,生成用于JAX-WS Web Service的JAX-WS便携式产物。
* ktab.exe* vcruntime140.dll* javah.exe* jli.dll* native2ascii.exe* wsgen.exe
serialver /usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/serialver 999 update-alternatives --install /usr/bin/wsgen wsgen /usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/wsgen 999 update-alternatives --install /usr/bin/jcmd
wsgen.exe XML Web Service 2.0的Java API,生成用于JAX-WS Web Service的JAX-WS便携式产物。
Their tools will no longer be available: wsgen and wsimport (from jdk.xml.ws) schemagen and xjc (from
jar javafxpackager javaws jdeps jps jstatd pack200 schemagen wsgen
tnameserv -rwxr-xr-x. 1 root root 103424 7月 21 06:37 unpack200 -rwxr-xr-x. 1 root root 7384 7月 21 06:37 wsgen
provide /usr/bin/jfr (jfr) in auto mode update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/wsgen to provide /usr/bin/wsgen (wsgen) in auto mode update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64