XML/WSDL 转java代码,java代码反向转xml

xjc -d ./src/ -wsdl UserInfoService_v1.0.wsdl     通过wsdl生成java code

schemagen  通过java类生成xml


wsimport -d ./test -s ./source UserInfoService_v1.0.wsdl    生成WebServices Client代码 -d 编译的class存放的目录  -s生成的java文件的存放位置

wsgen 命令
 wsgen  tool to generate the web service artifacts and the stubs that connect a web service client to the JAX-WS runtime. 



WebService Server/Client 详解:
https://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/2.0/tutorial/doc/JAXWS3.html

你可能感兴趣的:(XML/WSDL 转java代码,java代码反向转xml)