https://www.ibm.com/developerworks/jp/webservices/library/ws-devaxis2part2/index.html ■Clientの作り方(Stub) - JDK の wsimport を使う cd C:\Users\ryuba\workspace\GunClockWebServiceClient\src wsimport -keep http://35.202.133.215:8080/GunClockWebService/gunchara.ws?wsdl ★「-keep」をつけないと、ソース(.java)が、消えてしまう。 ■lib - lib には、Serverに入れたJAX関連のlibを全部入れる - Go here http://jax-ws.java.net/. - Download standalone distribution https://repo1.maven.org/maven2/com/sun/xml/ws/jaxws-ri/2.3.0/jaxws-ri-2.3.0.zip -- buildパスを通す ■クライアント - QName は、非推奨になっているらしいが、java compiler の設定で回避 ---------------------------- import java.net.URL; import javax.xml.namespace.QName; import ryu.webservice.*; public class GunClockWebServiceClient { public static void main(String[] args) throws Exception { // TODO Auto-generated method stub GunChara_Service service = new GunChara_Service(); GunChara servicePort = service.getGunCharaPort(); URL url = new URL("http://35.225.1.11:8080/GunClockWebService/gunchara.ws?wsdl"); GunChara_Service serviceWithUrl = new GunChara_Service(url,new QName("http://ryu/webservice","GunChara")); GunChara servicePortWithUrl = serviceWithUrl.getGunCharaPort(); System.out.println(servicePortWithUrl.getCharacter(1)); } } ----------------------------