?? phoneclient.java
字號:
// ==================== Program Discription ==========================
// PhoneClient.java
// 程序描述:示例21-7 : 編寫Web服務客戶端
// ==============================================================
package com.webservice;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
public class PhoneClient
{
public static void main(String args[])
{
System.out.println("************************************************");
System.out.println("This is a J2SE client for PhonePrice Webservice.");
System.out.println("It will make a call to the getGreeting method of");
System.out.println("PhonePrice's service through a ServiceLocator.");
System.out.println("************************************************");
System.out.println("");
try {
PhonePriceServiceLocator loc = new PhonePriceServiceLocator();
PhonePrice port = loc.getPhonePrice() ;
port.setPrice("zxxxx","100");
System.out.println(port.getPrice("motorola"));
} catch (Exception e) {
e.printStackTrace();
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -