?? test.java
字號:
package test.com.test;
import java.net.MalformedURLException;
import java.util.ArrayList;
import java.util.List;
import org.codehaus.xfire.XFireFactory;
import org.codehaus.xfire.client.XFireProxyFactory;
import org.codehaus.xfire.service.Service;
import org.codehaus.xfire.service.binding.ObjectServiceFactory;
import com.test.services.IHelloService;
public class Test {
public static void main(String args[]) {
Service srvcModel = new ObjectServiceFactory()
.create(IHelloService.class);
XFireProxyFactory factory = new XFireProxyFactory(XFireFactory
.newInstance().getXFire());
String helloWorldURL = "http://localhost:9090/xfire3/services/Hello";
try {
IHelloService srvc = (IHelloService) factory.create(
srvcModel, helloWorldURL);
System.out.print(srvc.getName("朱閏"));
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -