Examples of BeanDeserializerFactory


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

        // 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 =
                tmr.getOrMakeTypeMapping(Constants.URI_DEFAULT_SOAP_ENC);
        tm.register(javaType, xmlType, sf, df);
View Full Code Here

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

    TypeMappingRegistry reg = context.getTypeMappingRegistry();
    TypeMapping tm = (TypeMapping) reg.createTypeMapping();
    tm.setSupportedEncodings(new String[] {Constants.URI_DEFAULT_SOAP_ENC});
    reg.register(Constants.URI_DEFAULT_SOAP_ENC, tm);

    tm.register(SuperBean.class, superTypeQName, new BeanSerializerFactory(SuperBean.class,superTypeQName), new BeanDeserializerFactory(SuperBean.class,superTypeQName));
    tm.register(DerivatedBean.class, inheritedTypeQName, new BeanSerializerFactory(DerivatedBean.class,inheritedTypeQName), new BeanDeserializerFactory(DerivatedBean.class,inheritedTypeQName));
  }
View Full Code Here

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

    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.BeanDeserializerFactory

            Service service = new Service();
            call = (Call) service.createCall();

            call.registerTypeMapping(Bean.class, m_beanQName,
                new BeanSerializerFactory(Bean.class, m_beanQName),
                new BeanDeserializerFactory(Bean.class, m_beanQName));
        return call;
    }
View Full Code Here

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

            Service service = new Service();
            call = (Call) service.createCall();

            call.registerTypeMapping(Bean.class, m_beanQName,
                new BeanSerializerFactory(Bean.class, m_beanQName),
                new BeanDeserializerFactory(Bean.class, m_beanQName));
        return call;
    }
View Full Code Here

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

    public void testGlobalTypes() throws Exception {
        Call call = new Call("http://localhost:8080/jws/GlobalTypeTest.jws");
        QName qname = new QName("http://globalTypeTest", "GlobalType");
        call.registerTypeMapping(GlobalBean.class, qname,
                    new BeanSerializerFactory(GlobalBean.class, qname),
                    new BeanDeserializerFactory(GlobalBean.class, qname));
        GlobalBean bean = new GlobalBean();
        bean.setIntValue(4);
        GlobalBean ret = (GlobalBean)call.invoke("echo", new Object [] { bean });
        assertEquals(4, ret.getIntValue());
    }
View Full Code Here

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

            /*
             * NOTE jcolwell@bea.com 2004-Oct-11 -- should check that the type
             * to deserialize has a default contructor but with this setup there
             * is no way to know if it is used only in serialization.
             */
            new BeanDeserializerFactory(cls, q));
            Map serProps = BeanDeserializerFactory.getProperties(cls, null);
            for (BeanPropertyDescriptor beanProps : (Collection<BeanPropertyDescriptor>) serProps
                    .values()) {
                Class subType = beanProps.getType();
                if (!(subType.isPrimitive()
View Full Code Here

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

                                     * should check that the type to deserialize
                                     * has a default contructor but with this
                                     * setup there is no way to know if it is
                                     * used only in serialization.
                                     */
                                    new BeanDeserializerFactory(cls, q));
                        Map serProps = BeanDeserializerFactory
                            .getProperties(cls, null);
                        for (BeanPropertyDescriptor beanProps :
                                 (Collection<BeanPropertyDescriptor>) serProps
                                 .values()) {
View Full Code Here

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

        // 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 =
                tmr.getOrMakeTypeMapping(Constants.URI_DEFAULT_SOAP_ENC);
        tm.register(javaType, xmlType, sf, df);
View Full Code Here

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

             * these methods do not need to worry about creating a serializer.
             */
            internalRegister( javaType,
                              xmlType,
                              new BeanSerializerFactory(javaType, xmlType),
                              new BeanDeserializerFactory(javaType, xmlType) );
        }

        //log.debug("getTypeQName xmlType =" + xmlType);
        return xmlType;
    }
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.