1 package test.typedesc; 2 3 import org.apache.axis.description.AttributeDesc; 4 import org.apache.axis.description.FieldDesc; 5 import org.apache.axis.description.TypeDesc; 6 import org.apache.axis.encoding.SimpleType; 7 8 import javax.xml.namespace.QName ; 9 10 public class SimpleBean implements java.io.Serializable { 11 12 public String a; 13 public String b; 14 15 private static TypeDesc typeDesc = new TypeDesc(SimpleBean.class); 16 static { 17 FieldDesc fd = new AttributeDesc(); 18 fd.setFieldName("a"); 19 fd.setXmlName(new QName ("foo", "a")); 20 typeDesc.addFieldDesc(fd); 21 22 fd = new AttributeDesc(); 23 fd.setFieldName("b"); 24 fd.setXmlName(new QName ("foo", "b")); 25 typeDesc.addFieldDesc(fd); 26 } 27 public static TypeDesc getTypeDesc() { return typeDesc; } 28 29 public SimpleBean() {} 30 31 public void setA(String value) { 32 } 33 34 public String getA() { 35 return null; 36 } 37 38 public void setB(String value) { 39 } 40 41 public String getB() { 42 return null; 43 } 44 } 45 | Popular Tags |