FileDocCategorySizeDatePackage
DataFeedService.javaAPI DocExample548Tue Jan 15 11:22:06 GMT 2002javasoap.book.ch6

DataFeedService

public class DataFeedService extends Object

Fields Summary
Constructors Summary
public DataFeedService()

   
Methods Summary
public DataFeedMessagesendMessage(DataFeedMessage msg)

      // we could pull the formatted message here
      // by calling msg.toString();
      String stock = msg.getFieldValue("SYMBOL");
      String request = msg.getFieldValue("REQUEST");
      DataFeedMessage res = new DataFeedMessage();
      res.addField("SYMBOL", stock);
      if (request.equals("PRICE"))
         res.addField("PRICE", "123.5");
      return res;