package com.example.library; public class MyLibrary { public String sayHello(String name) { return "Hello, " + name + "!"; } } <?xml version="1.0" encoding="UTF-8"?> <endpoint xmlns="http://java.sun.com/xml/ns/jax-ws/ri/runtime" implementation="com.example.library.MyLibrary" name="MyLibraryService" wsdl="WEB-INF/wsdl/MyLibraryService.wsdl" url-pattern="/MyLibraryService" port-component-path="/MyLibraryService"/> shell wsgen -cp . com.example.library.MyLibrary shell java -cp %JDK_HOME%/lib/jaxws-api.jar;./ com.sun.xml.ws.spi.ProviderImpl com.example.library.MyLibrary


上一篇:
下一篇:
切换中文