ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dsfa asdf" <pclau...@nettaxi.com>
Subject axis ?Wsdl generate nothing
Date Fri, 25 Apr 2003 17:23:37 GMT
hi, why the below source code doesn't generate any wsdl ? I tried with http://localhost:8080/axis/Quote.jws?wsdl
 . There are no error msg generated.  I tried to compiled Quote. with extension .java and
the code is OK.


import java.util.HashMap;
import java.util.Map;

public class Quote {
  private HashMap quotes = null;
  public Quote() {
    quotes = new HashMap();
    quotes.put("Groucho Marx", "Time flies like an arrow. Fruit flies like a banana.");
    quotes.put("Mae West", "When women go wrong, men go right after them.");
    quotes.put("Mark Twain", "Go to Heaven for the climate, Hell for the company.");
  }
  public String quote(String name) {
    String quote;
    if (name == null || name.length() == 0 
      || (quote = (String) quotes.get(name)) == null) {
      quote = "No quotes.";
  }
  return (quote);
  }
  public int count() {
    return quotes.size();
  }
}

------------------------------------------------------------
NEW - FREE Nettaxi 56kbs Dial-up INTERNET ACCESS with NO ADS or Ad Bars!
http://www.nettaxi.com/isp/

Mime
View raw message