private void registerElementClass(SoapSerializationEnvelope envelope, String namespace) {
   final Class elementClass = getElementClass();
   try {
     if (elementClass.newInstance() instanceof KvmSerializable) {
       envelope.addMapping(namespace, "", elementClass);
     }
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
Ejemplo n.º 2
0
 public void register(SoapSerializationEnvelope cm) {
   cm.addMapping(cm.xsd, "base64Binary", MarshalBase64.BYTE_ARRAY_CLASS, this);
   cm.addMapping(SoapEnvelope.ENC, "base64", MarshalBase64.BYTE_ARRAY_CLASS, this);
 }
 public void register(SoapSerializationEnvelope envelope, String namespace, String name) {
   // using this.getClass() everywhere because .class doesn't
   // exist on j2me
   envelope.addMapping(namespace, name, this.getClass());
   registerElementClass(envelope, namespace);
 }