?? mainiptest.java
字號:
package com.test;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;
import com._6617.fhs.IPService.Weather_x0020_WebService;
import com._6617.fhs.IPService.Weather_x0020_WebServiceLocator;
/**
* Mar 30, 2009
*@author shdxiahui@163.com
*/
public class MainIpTest {
public static void main(String[] args) throws RemoteException, ServiceException {
Weather_x0020_WebServiceLocator webImple = new Weather_x0020_WebServiceLocator();
Weather_x0020_WebService service = (Weather_x0020_WebService) webImple;
//String address = service.getWeather_x0020_WebServiceSoapAddress();
Object[] address = service.getWeather_x0020_WebServiceSoap().getIPLocation("202.38.64.4");
StringBuffer buffer = new StringBuffer();
for(int i=0; i<address.length; i++){
buffer.append(address[i]).append(",");
}
buffer.deleteCharAt(buffer.length()-1);
System.out.println(buffer.toString());
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -