FileDocCategorySizeDatePackage
HighLowClient2.javaAPI DocExample690Wed Feb 27 09:45:32 GMT 2002javasoap.book.ch5.client

HighLowClient2.java

package javasoap.book.ch5.client;
import electric.registry.RegistryException;
import electric.registry.Registry;
import electric.xml.io.Mappings;
public class HighLowClient2 {
   public static void main(String[] args) throws Exception 
   {
      try {
        Mappings.readMappings("BasicTradingService.map");
        IBasicTradingService srv = (IBasicTradingService)Registry.bind(
          "http://georgetown:8004/glue/urn:BasicTradingService.wsdl",
          IBasicTradingService.class);
        HighLow_ServerSide hilo = srv.getHighLow("ANY");
        System.out.println(hilo);
    }
    catch (RegistryException e)
    {
       System.out.println(e);
    }
  }
}