Package org.apache.axis.description

Examples of org.apache.axis.description.ServiceDesc


            }

        }

        if (serviceHandler != null) {
            ServiceDesc desc = serviceHandler.getInitializedServiceDesc(this);
   
            if (desc != null) {
                possibleOperations = desc.getOperationsByQName(qname);
                setOperationStyle(desc.getStyle());
            }
        }

        return possibleOperations;
    }
View Full Code Here


        // Register the reverseString service
        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

            // Register the reverseString service
            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

        // Register the reverseString service
        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

        // Register the reverseString service
        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

        // Register the reverseString service
        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

        // Register the reverseData service
        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

        // Register the targetService service
        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

        // Register the echoInt service
        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

        // Register the reverseData service
        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

TOP

Related Classes of org.apache.axis.description.ServiceDesc

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.