Java Distributed Computing | Great American Insurance |
Making the Client
// generated by GLUE/wsdl2java on Tue Sep 09 22:07:30 EDT 2003
import electric.registry.Registry;
import electric.registry.RegistryException;
public class CalculatorHelper
{
public static ICalculator bind() throws RegistryException
{
return bind( "http://localhost:8004/glue/calculator.wsdl"
);
}
public static ICalculator bind( String url ) throws RegistryException
{
return (ICalculator) Registry.bind( url, ICalculator.class
);
}
}
// generated by GLUE/wsdl2java on Tue Sep 09 22:07:30 EDT 2003
public interface ICalculator
{
float add( float x, float y );
float subtract( float x, float y );
float multiply( float x, float y );
float divide( float numerator, float denominator );
}
Created by: Brandan Jones September 10, 2003