package hprose.hello.client;
import hprose.client.HproseHttpClient;
import java.io.IOException;
public class HelloClient {
public static void main(String[] args) throws IOException {
HproseHttpClient client = new HproseHttpClient();
client.useService("http://localhost:8084/helloserver/Hello");
String result = (String) client.invoke("sayHello", new Object[] { "Hprose" });
System.out.println(result);
result = (String) client.invoke("sayHello", new Object[] { "中国" });
System.out.println(result);
}
}