Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

samples.stock
Class GetQuote1  view GetQuote1 download GetQuote1.java

java.lang.Object
  extended bysamples.stock.GetQuote1

public class GetQuote1
extends java.lang.Object

This version of the ever so popular GetQuote shows how to use the Axis client APIs with and without WSDL. The first flavor (getQuote1) will use WSDL to prefill all of the data about the remote service. The second one (getQuote2) will do it all manually. Either way the service is invoked it should produce the exact same request XML and of course same results. This sample supports the use of the standard options too (-p ...)


Field Summary
 java.lang.String symbol
           
 
Constructor Summary
GetQuote1()
           
 
Method Summary
 float getQuote1(java.lang.String[] args)
          This will use the WSDL to prefill all of the info needed to make the call.
 float getQuote2(java.lang.String[] args)
          This will do everything manually (ie.
 float getQuote3(java.lang.String[] args)
          This will use the WSDL to prefill all of the info needed to make the call.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

symbol

public java.lang.String symbol
Constructor Detail

GetQuote1

public GetQuote1()
Method Detail

getQuote1

public float getQuote1(java.lang.String[] args)
                throws java.lang.Exception
This will use the WSDL to prefill all of the info needed to make the call. All that's left is filling in the args to invoke().


getQuote2

public float getQuote2(java.lang.String[] args)
                throws java.lang.Exception
This will do everything manually (ie. no WSDL).


getQuote3

public float getQuote3(java.lang.String[] args)
                throws java.lang.Exception
This will use the WSDL to prefill all of the info needed to make the call. All that's left is filling in the args to invoke().


main

public static void main(java.lang.String[] args)