Examples of loadServiceDescByIntrospection()


Examples of org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospection()

        SOAPService echoInt = new SOAPService(new RPCProvider());
        echoInt.setOption("className", "test.RPCDispatch.Service");
        echoInt.setOption("allowedMethods", "echoInt");
        provider.deployService(new QName(null, SOAPAction), echoInt);
        ServiceDesc serviceDesc = echoInt.getServiceDescription();
        serviceDesc.loadServiceDescByIntrospection(test.RPCDispatch.Service.class,
                                                   (TypeMapping)echoInt.getTypeMappingRegistry().getDefaultTypeMapping());

        // invoke the service and verify the result
        assertNull("The result was not null as expected.", rpc("echoInt", new Object[] {null}));
    }
View Full Code Here

Examples of org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospection()

        SOAPService simpleFault = new SOAPService(new RPCProvider());
        simpleFault.setOption("className", "test.RPCDispatch.Service");
        simpleFault.setOption("allowedMethods", "simpleFault");
        provider.deployService(new QName(null, SOAPAction), simpleFault);
        ServiceDesc serviceDesc = simpleFault.getServiceDescription();
        serviceDesc.loadServiceDescByIntrospection(test.RPCDispatch.Service.class,
                                                   (TypeMapping)simpleFault.getTypeMappingRegistry().getDefaultTypeMapping());

        try {
            rpc("simpleFault", new Object[] {"foobar"});
        } catch (AxisFault result) {
View Full Code Here

Examples of org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospection()

            tmr.register(Constants.URI_CURRENT_SOAP_ENC, tm);
        }
        tm.register(javaType, xmlType, sf, df);

        ServiceDesc desc = new ServiceDesc();
        desc.loadServiceDescByIntrospection(Service.class, tm);
        reverse.setServiceDescription(desc);
       
        // Now we've got the service description loaded up.  We're going to
        // be testing parameter dispatch by name, so if debug info isn't
        // compiled into the Service class, the names are going to be "in0",
View Full Code Here

Examples of org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospection()

        SOAPService reverse = new SOAPService(new RPCProvider());
        reverse.setOption("className", "test.RPCDispatch.Service");
        reverse.setOption("allowedMethods", "reverseString");
        provider.deployService(new QName(null,SOAPAction), reverse);
        ServiceDesc serviceDesc = reverse.getServiceDescription();
        serviceDesc.loadServiceDescByIntrospection(test.RPCDispatch.Service.class,
                                                   (TypeMapping)reverse.getTypeMappingRegistry().getDefaultTypeMapping());

        // invoke the service and verify the result
        assertEquals("Did not reverse the string correctly.", "cba", rpc("reverseString", new Object[] {"abc"}));
    }
View Full Code Here

Examples of org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospection()

            SOAPService reverse = new SOAPService(new RPCProvider());
            reverse.setOption("className", "test.RPCDispatch.Service");
            reverse.setOption("allowedMethods", "reverseString2");
            provider.deployService(new QName(null,SOAPAction), reverse);
            ServiceDesc serviceDesc = reverse.getServiceDescription();
            serviceDesc.loadServiceDescByIntrospection(test.RPCDispatch.Service.class,
                                                       (TypeMapping)reverse.getTypeMappingRegistry().getDefaultTypeMapping());
            // invoke the service and verify the result
            rpc("reverseString", new Object[] {"abc"});
            throw new junit.framework.AssertionFailedError("Should not reach here");
        } catch (AxisFault af){
View Full Code Here

Examples of org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospection()

        SOAPService reverse = new SOAPService(new RPCProvider());
        reverse.setOption("className", "test.RPCDispatch.Service");
        reverse.setOption("allowedMethods", "reverseString2,reverseString");
        provider.deployService(new QName(null,SOAPAction), reverse);
        ServiceDesc serviceDesc = reverse.getServiceDescription();
        serviceDesc.loadServiceDescByIntrospection(test.RPCDispatch.Service.class,
                                                   (TypeMapping)reverse.getTypeMappingRegistry().getDefaultTypeMapping());

        // invoke the service and verify the result
        assertEquals("Did not reverse the string correctly.", "cba", rpc("reverseString", new Object[] {"abc"}));
    }
View Full Code Here

Examples of org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospection()

        SOAPService reverse = new SOAPService(new RPCProvider());
        reverse.setOption("className", "test.RPCDispatch.Service");
        reverse.setOption("allowedMethods", "reverseString2 reverseString");
        provider.deployService(new QName(null,SOAPAction), reverse);
        ServiceDesc serviceDesc = reverse.getServiceDescription();
        serviceDesc.loadServiceDescByIntrospection(test.RPCDispatch.Service.class,
                                                   (TypeMapping)reverse.getTypeMappingRegistry().getDefaultTypeMapping());

        // invoke the service and verify the result
        assertEquals("Did not reverse the string correctly.", "cba", rpc("reverseString", new Object[] {"abc"}));
    }
View Full Code Here

Examples of org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospection()

        SOAPService reverse = new SOAPService(new RPCProvider());
        reverse.setOption("className", "test.RPCDispatch.Service");
        reverse.setOption("allowedMethods", "*");
        provider.deployService(new QName(null,SOAPAction), reverse);
        ServiceDesc serviceDesc = reverse.getServiceDescription();
        serviceDesc.loadServiceDescByIntrospection(test.RPCDispatch.Service.class,
                                                   (TypeMapping)reverse.getTypeMappingRegistry().getDefaultTypeMapping());

        // invoke the service and verify the result
        assertEquals("Did not reverse the string correctly.", "cba", rpc("reverseString", new Object[] {"abc"}));
    }
View Full Code Here

Examples of org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospection()

        SOAPService reverse = new SOAPService(new RPCProvider());
        reverse.setOption("className", "test.RPCDispatch.Service");
        reverse.setOption("allowedMethods", "reverseData");
        provider.deployService(new QName(null, SOAPAction), reverse);
        ServiceDesc serviceDesc = reverse.getServiceDescription();
        serviceDesc.loadServiceDescByIntrospection(test.RPCDispatch.Service.class,
                                                   (TypeMapping)reverse.getTypeMappingRegistry().getDefaultTypeMapping());

        // invoke the service and verify the result
        Data input    = new Data(5, "abc", 3);
        Data expected = new Data(3, "cba", 5);
View Full Code Here

Examples of org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospection()

        SOAPService tgtSvc = new SOAPService(new RPCProvider());
        tgtSvc.setOption("className", "test.RPCDispatch.Service");
        tgtSvc.setOption("allowedMethods", "targetServiceImplicit");
        provider.deployService(new QName(null, SOAPAction), tgtSvc);
        ServiceDesc serviceDesc = tgtSvc.getServiceDescription();
        serviceDesc.loadServiceDescByIntrospection(test.RPCDispatch.Service.class,
                                                   (TypeMapping)tgtSvc.getTypeMappingRegistry().getDefaultTypeMapping());

        // invoke the service and verify the result
        assertEquals("SOAP Action did not equal the targetService.",
            SOAPAction, rpc("targetServiceImplicit", new Object[] {}));
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.