EndpointReference epr = new EndpointReference(address);
//
// create proxy - turn on tracing of SOAP messages
//
HttpServerClient http = new HttpServerClient(epr);
http.setTrace(true);
try
{
//
// start server
//
http.start();
//
// read/print some property values
//
String httpName = http.getName();
int httpPort = http.getPort();
SupportedLanguage[] httpLang = http.getSupportedLanguage();
System.out.println("Name: " + httpName);
System.out.println("Port: " + httpPort);
System.out.println("Supported Languages:");
for (int n = 0; n < httpLang.length; ++n)
System.out.println("\t" + httpLang[n]);
}
catch (Throwable error)
{
error.printStackTrace();
}
try
{
//
// stop server
//
http.stop();
}
catch (Throwable error)
{
error.printStackTrace();