String endpoint = "http://localhost:8080/pricequote/wholesaler?wsdl";
String serviceName = "WholesalerQuoteService";
String wqs = System.getProperty("wqs");
if (wqs != null && wqs.equals("ms")) {
System.out.println("Setting Wholesale Quote Service #2 endpoints");
String ep = System.getProperty("wqs.endpoint");
if (ep != null && !ep.equals(""))
endpoint = ep;
String sn = System.getProperty("wqs.serviceName");
if (sn != null && !sn.equals(""))
serviceName = sn;
}
System.out.println("Using endpoints ...");
System.out.println("endpoint: " + endpoint);
System.out.println("serviceName: " + serviceName);
System.out.println(new WholesalerClient(endpoint, new QName("http://example.org/wholesaler", serviceName)).getQuote(10).getPrice());