1 8 9 package test.wsdl.faults; 10 11 import org.apache.axis.message.MessageElement; 12 import org.apache.axis.utils.XMLUtils; 13 14 public class FaultServiceSoapBindingImpl implements test.wsdl.faults.FaultServicePortType { 15 public float getQuote(java.lang.String tickerSymbol) throws java.rmi.RemoteException , InvalidTickerFaultMessage { 16 throw new InvalidTickerFaultMessage(tickerSymbol); 17 } 18 19 public int throwFault(int a, java.lang.String b, float c) throws java.rmi.RemoteException , test.wsdl.faults.DerivedFault { 20 throw new DerivedFault2(a, b, c); 21 } 22 23 public int throwExtensionFault(java.lang.String description) throws java.rmi.RemoteException , test.wsdl.faults.ExtensionFault { 24 ExtensionType extension = new ExtensionType(); 25 try { 26 extension.set_any(new MessageElement[] {new MessageElement(XMLUtils.newDocument().createElementNS(null,description))}); 27 } catch (Exception e) { 28 throw new java.rmi.RemoteException (e.getMessage()); 29 } 30 throw new ExtensionFault(extension); 31 } 32 33 } 34 | Popular Tags |