FileDocCategorySizeDatePackage
AnotherFaultService.javaAPI DocExample857Tue Jan 15 11:33:18 GMT 2002javasoap.book.ch7

AnotherFaultService

public class AnotherFaultService extends Object

Fields Summary
Constructors Summary
Methods Summary
public intgenerateFault()

      Element elem = new Element("detail");
      Element sub = elem.addElement("reasonCode");
      sub.addText("199");
      sub = elem.addElement("reasonDescription");
      sub.addText("Power Outage");
      sub = elem.addElement("alternateProvider");
      sub.addText("www.mindstrm.com");
      sub = elem.addElement("alternateContact");
      sub.addText("rob@mindstrm.com");
      SOAPException e = new SOAPException(
                           "Data Feed Unavailable", 
                           SOAPException.SERVER, 
                           "urn:AnotherFaultService", 
                           elem);       
      throw e;