接口类: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…