?? helloclient.java
字號:
package org.jboss.ws.client;import org.jboss.ws.hello.Hello;import javax.xml.rpc.Service;import javax.xml.rpc.ServiceFactory;import javax.xml.namespace.QName;import java.net.URL;public class HelloClient{ public static void main(String[] args) throws Exception { String urlstr = args[0]; String argument = args[1]; System.out.println("Contacting webservice at " + urlstr); URL url = new URL(urlstr); QName qname = new QName("http://hello.ws.jboss.org/", "HelloService"); ServiceFactory factory = ServiceFactory.newInstance(); Service service = factory.createService(url, qname); Hello hello = (Hello) service.getPort(Hello.class); System.out.println("hello.hello(" + argument + ")"); System.out.println("output:" + hello.hello(argument)); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -