FileDocCategorySizeDatePackage
FeedServiceClient.javaAPI DocExample938Wed Feb 27 10:29:10 GMT 2002javasoap.book.ch7

FeedServiceClient

public class FeedServiceClient extends Object

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

      try {

        IAnotherFeedService srv = (IAnotherFeedService)Registry.bind(
         "http://georgetown:8004/glue/urn:AnotherFeedService.wsdl",
          IAnotherFeedService.class);

        Hashtable msg = new Hashtable();
        msg.put("SYMBOL", "XYZ");
        msg.put("REQUEST", "PRICE");
       
        Hashtable result = srv.sendMessage(msg);

        for (Enumeration e = result.keys(); e.hasMoreElements(); ) {
           String key = (String)e.nextElement();
           String value = (String)result.get(key);
           System.out.println(key + ": " + value);
        }
    }
    catch (RegistryException e) {
       System.out.println(e);
    }