FileDocCategorySizeDatePackage
Main.javaAPI DocApache Axis 1.41685Sat Apr 22 18:56:52 BST 2006samples.userguide.example6

Main

public class Main extends Object
Main.java This file was auto-generated from WSDL by the Apache Axis Wsdl2java emitter.

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        samples.userguide.example6.WidgetPrice binding = new WidgetPriceServiceLocator().getWidgetPrice();
        ((WidgetPriceSoapBindingStub)binding).setMaintainSession(true);
        try {
            ((WidgetPriceSoapBindingStub) binding).setWidgetPrice("FOO", "$1.00");
        } catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
        }
        try {
            java.lang.String value = null;
            value = binding.getWidgetPrice("FOO");
            if (value == null ||
                !value.equals("$1.00"))
                System.out.println("Wrong Price" + value);
        } catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
        }