#眉標=Java #副標=JBuilder實務應用(26) #大標=開發Web Services應用程式(下) #作者=Dr.JBuilder ----------程式---------- http://services.xmethods.net/ soap/urn:xmethods-delayed-quotes.wsdl ----------程式---------- ------程式------ #程式1 package webservicesexercise.client; import com.themindelectric.www.wsdl.net_ xmethodsZ_services_stockquote_StockQuote.*; public class QueryStockQuote { public static void main(String[] args) throws Exception { NetXmethodsServicesStockquoteStock QuoteBindingStub binding; String symbol = "BORL"; binding = (NetXmethodsServices StockquoteStockQuoteBindingStub) new NetXmethodsServicesStock quoteStockQuoteServiceLocator(). getNetXmethodsServices StockquoteStockQuotePort(); float value = binding.getQuote(symbol); System.out.println("The current quote of " + symbol + " is : " + value); } } ------程式------