Examples of produceDBC()


Examples of org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConverter.produceDBC()

    public static ServiceDescription createServiceDescription(Class serviceImplClass, ConfigurationContext configContext) {
        ServiceDescription serviceDesc = null;

        if (serviceImplClass != null) {
            JavaClassToDBCConverter converter = new JavaClassToDBCConverter(serviceImplClass);
            HashMap<String, DescriptionBuilderComposite> dbcMap = converter.produceDBC();
            List<ServiceDescription> serviceDescList = createServiceDescriptionFromDBCMap(dbcMap, configContext);
            if (serviceDescList != null && serviceDescList.size() > 0) {
                serviceDesc = serviceDescList.get(0);
                if (log.isDebugEnabled()) {
                    log.debug("ServiceDescription created with class: " + serviceImplClass);
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConverter.produceDBC()

     * RespectBinding processing should fail because a WSDL file was not included.
     */

    public void testPlain() throws Exception {
        JavaClassToDBCConverter converter = new JavaClassToDBCConverter(PlainService.class);
        HashMap<String, DescriptionBuilderComposite> map = converter.produceDBC();
       
        DescriptionBuilderComposite composite = map.get(PlainService.class.getName());
       
        URL wsdlUrl = new URL("file:./" + wsdlLocation);
        WSDL4JWrapper wrapper = new WSDL4JWrapper(wsdlUrl, false, 0);
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConverter.produceDBC()

        assertTrue("The ServiceDescriptions should not have been built.", sdList == null);
    }
   
    public void testRespectBindingDisabled() throws Exception {
        JavaClassToDBCConverter converter = new JavaClassToDBCConverter(DisabledService.class);
        HashMap<String, DescriptionBuilderComposite> map = converter.produceDBC();
       
        DescriptionBuilderComposite composite = map.get(DisabledService.class.getName());
       
        URL wsdlUrl = new URL("file:./" + wsdlLocation);
        WSDL4JWrapper wrapper = new WSDL4JWrapper(wsdlUrl, false, 0);
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConverter.produceDBC()

        assertFalse("Strict binding support should be DISABLED.", respect);
    }
   
    public void testRespectBindingDefault() throws Exception {
        JavaClassToDBCConverter converter = new JavaClassToDBCConverter(DefaultService.class);
        HashMap<String, DescriptionBuilderComposite> map = converter.produceDBC();
       
        DescriptionBuilderComposite composite = map.get(DefaultService.class.getName());
       
        URL wsdlUrl = new URL("file:./" + wsdlLocation);
        WSDL4JWrapper wrapper = new WSDL4JWrapper(wsdlUrl, false, 0);
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConverter.produceDBC()

        assertTrue("The ServiceDescriptions should not have been built.", sdList == null);
    }
   
    public void testRespectBindingComplete() throws Exception {
        JavaClassToDBCConverter converter = new JavaClassToDBCConverter(CompleteService.class);
        HashMap<String, DescriptionBuilderComposite> map = converter.produceDBC();
       
        DescriptionBuilderComposite composite = map.get(CompleteService.class.getName());
       
       
        //Register
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConverter.produceDBC()

    public void testValidServiceImpl() {
        try {
            Class serviceImplClass = ServiceImpl.class;
            JavaClassToDBCConverter converter = new JavaClassToDBCConverter(serviceImplClass);
            HashMap<String, DescriptionBuilderComposite> dbcMap = converter.produceDBC();
            List<ServiceDescription> serviceDescList =  DescriptionFactory.createServiceDescriptionFromDBCMap(dbcMap);
            assertNotNull(serviceDescList);
            assertEquals(1, serviceDescList.size());
        }
        catch (Exception e) {
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConverter.produceDBC()

   
    public void testMissingMethods() {
        try {
            Class serviceImplClass = MissingMethodsImpl.class;
            JavaClassToDBCConverter converter = new JavaClassToDBCConverter(serviceImplClass);
            HashMap<String, DescriptionBuilderComposite> dbcMap = converter.produceDBC();
            List<ServiceDescription> serviceDescList =  DescriptionFactory.createServiceDescriptionFromDBCMap(dbcMap);
            fail("Should have caused exception");
        }
        catch (Exception e) {
            // Expected path
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConverter.produceDBC()

   
    public void testInvalidThrows() {
        try {
            Class serviceImplClass = InvalidThrowsImpl.class;
            JavaClassToDBCConverter converter = new JavaClassToDBCConverter(serviceImplClass);
            HashMap<String, DescriptionBuilderComposite> dbcMap = converter.produceDBC();
            List<ServiceDescription> serviceDescList =  DescriptionFactory.createServiceDescriptionFromDBCMap(dbcMap);
            fail("Should have caused exception");
        }
        catch (Exception e) {
            // Expected path
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConverter.produceDBC()

   
    public void testMismatchedReturnTypesDBC() {
        try {
            Class serviceImplClass = ServiceImpl.class;
            JavaClassToDBCConverter converter = new JavaClassToDBCConverter(serviceImplClass);
            HashMap<String, DescriptionBuilderComposite> dbcMap = converter.produceDBC();
            // Set the return types for one of the methods on the impl class to mismatch the SEI
            DescriptionBuilderComposite implDBC = dbcMap.get("org.apache.axis2.jaxws.description.ServiceImpl");
            assertNotNull(implDBC);
            List<MethodDescriptionComposite> m1MDCList = implDBC.getMethodDescriptionComposite("method1");
            assertNotNull(m1MDCList);
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConverter.produceDBC()

    public void testMismatchedReturnTypes() {
        try {
            Class serviceImplClass = MismatchedReturnTypesImpl.class;
            JavaClassToDBCConverter converter = new JavaClassToDBCConverter(serviceImplClass);
            HashMap<String, DescriptionBuilderComposite> dbcMap = converter.produceDBC();
            List<ServiceDescription> serviceDescList =  DescriptionFactory.createServiceDescriptionFromDBCMap(dbcMap);
            fail("Should have caused exception");
        }
        catch (Exception e) {
            // Expected path
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.