1 7 package org.jboss.webservice.encoding.ser; 8 9 11 import org.jboss.axis.Constants; 12 import org.jboss.axis.encoding.ser.ArraySerializer; 13 14 import javax.xml.namespace.QName ; 15 import java.math.BigDecimal ; 16 17 22 public class SOAPArraySerializer extends ArraySerializer 23 { 24 public SOAPArraySerializer(Class javaType, QName xmlType) 25 { 26 addComponentTypeMapping(String .class, new QName (Constants.URI_SOAP11_ENC, "string")); 27 addComponentTypeMapping(Boolean .class, new QName (Constants.URI_SOAP11_ENC, "boolean")); 28 addComponentTypeMapping(Float .class, new QName (Constants.URI_SOAP11_ENC, "float")); 29 addComponentTypeMapping(Double .class, new QName (Constants.URI_SOAP11_ENC, "double")); 30 addComponentTypeMapping(BigDecimal .class, new QName (Constants.URI_SOAP11_ENC, "decimal")); 31 addComponentTypeMapping(Integer .class, new QName (Constants.URI_SOAP11_ENC, "int")); 32 addComponentTypeMapping(Short .class, new QName (Constants.URI_SOAP11_ENC, "short")); 33 addComponentTypeMapping(Byte .class, new QName (Constants.URI_SOAP11_ENC, "byte")); 34 addComponentTypeMapping(byte[].class, new QName (Constants.URI_SOAP11_ENC, "base64")); 35 } 36 } 37 | Popular Tags |