1 17 package org.apache.sandesha.ws.rm; 18 19 import org.apache.axis.message.MessageElement; 20 import org.apache.sandesha.Constants; 21 22 import javax.xml.soap.SOAPException ; 23 24 public class FaultCode extends MessageElement implements IRmElement { 25 26 29 private MessageElement faultCode; 30 31 34 public FaultCode() { 35 faultCode = new MessageElement(); 36 faultCode.setName(Constants.WSRM.NS_PREFIX_RM + Constants.COLON + Constants.WSRM.FAULT_CODE); 37 } 38 39 44 public MessageElement getSoapElement() { 45 return faultCode; 46 } 47 48 54 public FaultCode fromSOAPEnvelope(MessageElement element) { 55 return this; 56 } 57 58 65 public MessageElement toSOAPEnvelope(MessageElement msgElement) throws SOAPException { 66 msgElement.addChildElement(Constants.WSRM.FAULT_CODE, Constants.WSRM.NS_PREFIX_RM); 67 return msgElement; 68 } 69 70 75 public void addChildElement(MessageElement element) { 76 77 } 79 80 81 public MessageElement getFaultCode() { 82 return faultCode; 83 } 84 85 public void setFaultCode(MessageElement faultCode) { 86 this.faultCode = faultCode; 87 } 88 } 89 | Popular Tags |