Package org.apache.axis.encoding

Examples of org.apache.axis.encoding.TypeMappingImpl


        ServiceDesc sd = service.getInitializedServiceDesc(null);
   
        // Tell Axis to try and be intelligent about serialization.
        TypeMappingRegistry registry = service.getTypeMappingRegistry();       
       
        TypeMappingImpl tm = (TypeMappingImpl) registry.getDefaultTypeMapping();
        //tm.setDoAutoTypes( true );
       
        // Tell the axis configuration about our new service.
        provider.deployService( serviceName, service );
    }
View Full Code Here


            } else {
                defaultTM=DefaultSOAPEncodingTypeMappingImpl.create();
            }
            emitter.setDefaultTypeMapping(defaultTM);
            // Create TypeMapping and register complex types
            tmi = new TypeMappingImpl(defaultTM);
            Iterator i = complexTypes.iterator();
            while (i.hasNext()) {
                ( (ComplexType)i.next()).register(tmi);
             }
            emitter.setTypeMapping(tmi);
View Full Code Here

    }
   
    public void testAutoTypes() throws Exception
    {
        TypeMappingRegistry tmr = server.getTypeMappingRegistry();
        TypeMappingImpl tm = (TypeMappingImpl) tmr.getDefaultTypeMapping();
        tm.setDoAutoTypes(true);
       
        QName qname = tm.getTypeQName( AttributeBean.class );
        assertEquals( "http://encoding.test",
                      qname.getNamespaceURI() );
        assertEquals( "AttributeBean", qname.getLocalPart() );
       
        assertTrue( tm.getDeserializer(qname) != null );
        assertTrue( tm.getSerializer(AttributeBean.class) != null );

        assertEquals(
            "http://encoding.test",
            Namespaces.makeNamespace(AttributeBean[].class.getName()));
        assertEquals(
View Full Code Here

            } else {
                defaultTM=DefaultSOAPEncodingTypeMappingImpl.create();
            }
            emitter.setDefaultTypeMapping(defaultTM);
            // Create TypeMapping and register complex types
            tmi = new TypeMappingImpl(defaultTM);
            Iterator i = complexTypes.iterator();
            while (i.hasNext()) {
                ( (ComplexType)i.next()).register(tmi);
             }
            emitter.setTypeMapping(tmi);
View Full Code Here

            } else {
                defaultTM=DefaultSOAPEncodingTypeMappingImpl.create();
            }
            emitter.setDefaultTypeMapping(defaultTM);
            // Create TypeMapping and register complex types
            tmi = new TypeMappingImpl(defaultTM);
            Iterator i = complexTypes.iterator();
            while (i.hasNext()) {
                ( (ComplexType)i.next()).register(tmi);
             }
            emitter.setTypeMapping(tmi);
View Full Code Here

TOP

Related Classes of org.apache.axis.encoding.TypeMappingImpl

Copyright © 2018 www.massapicom. 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.