详细分析前面章节的服务的wsdl文件 1.http://localhost:8888/ws01?wsdl 2.http://localhost:8888/ws01?xsd=1 在接口服务中添加复杂类型的参数或复杂类型的返回值后的wsdl文件是怎么描述的呢? IMyService.java中添加方法: @WebResult(name="user") public User getUserByUsername(@WebParam(name="username")Stri…
接口类:IMyService.java @WebResult(name="testExceptionResult") public void testException() throws MyException; 实现类:MyServiceImpl.java @Override public void testException() throws MyException{ throw new MyException("this is my exception");…
使用jdk自带的命令wsimport生成远程服务的本地代码 C:\Documents and Settings\Administrator>wsimport -d E:\mhWorkspace\webservice\src\com\yzl\ws02 -keep -verbose -p com.yzl.ws02 http://localhost:8888/ws01?wsdl -d <directory> specify where to place generated outp…