null,
"http://www.themindelectric.com/wsdl/net.xmethods.services.stockquote.StockQuote/",
"net.xmethods.services.stockquote.StockQuotePortType");
// create the stub
// check if the user specified a preferred port
NetXmethodsServicesStockquoteStockQuotePortType stub = null;
if (args[2]!=null)
stub = (NetXmethodsServicesStockquoteStockQuotePortType)
service.getStub(args[2],NetXmethodsServicesStockquoteStockQuotePortType.class);
else
stub = (NetXmethodsServicesStockquoteStockQuotePortType)
service.getStub(NetXmethodsServicesStockquoteStockQuotePortType.class);
// do the invocation
// args[1] is the company symbol
float quote = stub.getQuote(args[1]);
System.out.println(quote);
} catch (WSIFException we) {
System.out.println(
"Error while executing sample, received an exception from WSIF; details:");