?? httpsclient.java
字號:
package anni;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
public class HttpsClient {
public static void main(String [] args) throws Exception {
String endpoint = "https://localhost:8443/axis/services/HelloWorld";//注意區別在這里!https!
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName( "sayHello" );
String res = (String) call.invoke( new Object[] {} );
System.out.println( res );
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -