Examples of BeanSerializerFactory


Examples of org.apache.axis.encoding.ser.BeanSerializerFactory

        reg.register(Constants.URI_DEFAULT_SOAP_ENC, tm);

        QName beanQName = new QName("typeNS", "TheBean");
        tm.register(AttributeBean.class,
                    beanQName,
                    new BeanSerializerFactory(AttributeBean.class, beanQName),
                    new BeanDeserializerFactory(AttributeBean.class, beanQName));

        // Serialize the bean in to XML
        msg.output(context);
        // Get the XML as a string
View Full Code Here

Examples of org.apache.axis.encoding.ser.BeanSerializerFactory

        // If no factory is found, use the BeanSerializerFactory
        // if applicable, otherwise issue errors and treat as an anyType
        if (factory == null) {
            if (isBeanCompatible(type, true)) {
                factory = new BeanSerializerFactory(type, qName);
            } else {
                return null; // Don't return an element name
            }
        }
View Full Code Here

Examples of org.apache.axis.encoding.ser.BeanSerializerFactory

    private void addBeanMapping(TypeMapping mapping, String localName, Class javaClass) {
        QName qname = new QName("urn:QueryTypes", localName);
        mapping.register(javaClass,
                         qname,
                         new BeanSerializerFactory(javaClass, qname),
                         new BeanDeserializerFactory(javaClass, qname));
    }
View Full Code Here

Examples of org.apache.axis.encoding.ser.BeanSerializerFactory

                if (objClass.isArray()) {
              sf = new ArraySerializerFactory();
            } else if (SimpleType.class.isAssignableFrom(objClass)) {
              sf = new SimpleSerializerFactory(objClass, xmlType);
            } else {
              sf = new BeanSerializerFactory(objClass, xmlType);
               }
        }

           if (df == null && tm.getDeserializer(objClass, xmlType) == null) {
            if (objClass.isArray()) {
View Full Code Here

Examples of org.apache.axis.encoding.ser.BeanSerializerFactory

       TypeMapping tm = tmr.createTypeMapping();
      
       QName qname = new QName("http://www.apress.com", "MessageBean");
      
       tm.register(MessageBean.class, qname,
               new BeanSerializerFactory(MessageBean.class, qname),
               new BeanDeserializerFactory(MessageBean.class, qname));
      
       tmr.register("http://schemas.xmlsoap.org/soap/encoding/", tm);
    }
View Full Code Here

Examples of org.apache.axis.encoding.ser.BeanSerializerFactory

   * @param javaType the Java type
   * @param wsdlType the WSDL type (as XML {@link QName})
   */
  protected void registerBeanMapping(TypeMapping mapping, Class javaType, QName wsdlType) {
    mapping.register(javaType, wsdlType,
        new BeanSerializerFactory(javaType, wsdlType),
        new BeanDeserializerFactory(javaType, wsdlType));
  }
View Full Code Here

Examples of org.apache.axis.encoding.ser.BeanSerializerFactory

                clazz = ClassUtils.loadClass(iterator.next().toString(), getClass());
                String localName = Types.getLocalNameFromFullName(clazz.getName());
                QName xmlType = new QName(Namespaces.makeNamespace(clazz.getName()), localName);

                registry.getDefaultTypeMapping().register(clazz, xmlType,
                        new BeanSerializerFactory(clazz, xmlType), new BeanDeserializerFactory(clazz, xmlType));
            }
        }
    }
View Full Code Here

Examples of org.apache.axis.encoding.ser.BeanSerializerFactory

        reg.register(Constants.URI_CURRENT_SOAP_ENC, tm);

        QName beanQName = new QName("typeNS", "TheBean");
        tm.register(AttributeBean.class,
                    beanQName,
                    new BeanSerializerFactory(AttributeBean.class, beanQName),
                    new BeanDeserializerFactory(AttributeBean.class, beanQName));

        // Serialize the bean in to XML
        msg.output(context);
        // Get the XML as a string
View Full Code Here

Examples of org.apache.axis.encoding.ser.BeanSerializerFactory

        }
        if (factory == null) {
            // If no factory is found, try the BeanSerializerFactory if
            // the type is not Throwable.  (There is no mapping for
            // java types that extend Throwable.)
            factory = new BeanSerializerFactory(type, getTypeQName(type));
        }
        if (factory != null) {
            ser = (Serializer)factory.getSerializerAs(Constants.AXIS_SAX);
        }
       
View Full Code Here

Examples of org.apache.axis.encoding.ser.BeanSerializerFactory

        provider.deployService(SOAPAction, reverse);
       
        // And deploy the type mapping
        Class javaType = Data.class;
        QName xmlType = new QName("urn:foo", "Data");
        BeanSerializerFactory   sf = new BeanSerializerFactory(javaType, xmlType);
        BeanDeserializerFactory df = new BeanDeserializerFactory(javaType, xmlType);

        TypeMappingRegistry tmr = engine.getTypeMappingRegistry();
        TypeMapping tm = (TypeMapping) tmr.getTypeMapping(Constants.URI_CURRENT_SOAP_ENC);
        if (tm == null || tm == tmr.getDefaultTypeMapping()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.