Package org.apache.axis2.context

Examples of org.apache.axis2.context.ConfigurationContext.createMessageContext()


                "/axis2/services/Service2/getName"));
        ruisd.invoke(messageContext);
        assertEquals(as2, messageContext.getAxisService());

        //REST scenario
        messageContext = cc.createMessageContext();
        messageContext.setTo(new EndpointReference("http://127.0.0.1:8080" +
                "/axis2/services/Service2/student/name/peter/age/25"));
        ruisd.invoke(messageContext);
        assertEquals(as2, messageContext.getAxisService());
View Full Code Here


                "/axis2/services/Service2/student/name/peter/age/25"));
        ruisd.invoke(messageContext);
        assertEquals(as2, messageContext.getAxisService());

        //service.endpoint scenario
        messageContext = cc.createMessageContext();
        messageContext.setTo(new EndpointReference("http://127.0.0.1:8080" +
                "/axis2/services/Service1.Service1Endpoint"));
        ruisd.invoke(messageContext);
        assertEquals(as1, messageContext.getAxisService());
View Full Code Here

                "/axis2/services/Service1.Service1Endpoint"));
        ruisd.invoke(messageContext);
        assertEquals(as1, messageContext.getAxisService());

        //service.endpoint/operation scenario
        messageContext = cc.createMessageContext();
        messageContext.setTo(new EndpointReference("http://127.0.0.1:8080" +
                "/axis2/services/Service1.Service1Endpoint/getName"));
        ruisd.invoke(messageContext);
        assertEquals(as1, messageContext.getAxisService());
View Full Code Here

        assertEquals(as1, messageContext.getAxisService());

        /**
         * Tests for hierarchical services
         */
        messageContext = cc.createMessageContext();
        messageContext.setTo(new EndpointReference("http://127.0.0.1:8080" +
                "/axis2/services/foo/bar/Version"));
        ruisd.invoke(messageContext);
        assertEquals(as3, messageContext.getAxisService());

View Full Code Here

        messageContext.setTo(new EndpointReference("http://127.0.0.1:8080" +
                "/axis2/services/foo/bar/Version"));
        ruisd.invoke(messageContext);
        assertEquals(as3, messageContext.getAxisService());

        messageContext = cc.createMessageContext();
        messageContext.setTo(new EndpointReference("http://127.0.0.1:8080" +
                "/axis2/services/foo/bar/Version/getVersion"));
        ruisd.invoke(messageContext);
        assertEquals(as3, messageContext.getAxisService());
View Full Code Here

        messageContext.setTo(new EndpointReference("http://127.0.0.1:8080" +
                "/axis2/services/foo/bar/Version/getVersion"));
        ruisd.invoke(messageContext);
        assertEquals(as3, messageContext.getAxisService());

        messageContext = cc.createMessageContext();
        messageContext.setTo(new EndpointReference("http://127.0.0.1:8080" +
                "/axis2/services/foo/bar/Version/student/name/peter/age/25"));
        ruisd.invoke(messageContext);
        assertEquals(as3, messageContext.getAxisService());
       
View Full Code Here

        messageContext.setTo(new EndpointReference("http://127.0.0.1:8080" +
                "/axis2/services/foo/bar/Version/student/name/peter/age/25"));
        ruisd.invoke(messageContext);
        assertEquals(as3, messageContext.getAxisService());
       
        messageContext = cc.createMessageContext();
        messageContext.setTo(new EndpointReference("http://127.0.0.1:8080" +
                "/axis2/services/foo/bar/Version.VersionEndpoint"));
        ruisd.invoke(messageContext);
        assertEquals(as3, messageContext.getAxisService());
View Full Code Here

        messageContext.setTo(new EndpointReference("http://127.0.0.1:8080" +
                "/axis2/services/foo/bar/Version.VersionEndpoint"));
        ruisd.invoke(messageContext);
        assertEquals(as3, messageContext.getAxisService());

        messageContext = cc.createMessageContext();
        messageContext.setTo(new EndpointReference("http://127.0.0.1:8080" +
                "/axis2/services/foo/bar/Version.VersionEndpoint/getVersion"));
        ruisd.invoke(messageContext);
        assertEquals(as3, messageContext.getAxisService());
View Full Code Here

        assertEquals(as3, messageContext.getAxisService());

        /**
         * Tests for hierarchical services with '.' in the service name
         */
        messageContext = cc.createMessageContext();
        messageContext.setTo(new EndpointReference("http://127.0.0.1:8080" +
                "/axis2/services/foo/bar/1.0.1/Echo"));
        ruisd.invoke(messageContext);
        assertEquals(as4, messageContext.getAxisService());

View Full Code Here

        messageContext.setTo(new EndpointReference("http://127.0.0.1:8080" +
                "/axis2/services/foo/bar/1.0.1/Echo"));
        ruisd.invoke(messageContext);
        assertEquals(as4, messageContext.getAxisService());

        messageContext = cc.createMessageContext();
        messageContext.setTo(new EndpointReference("http://127.0.0.1:8080" +
                "/axis2/services/foo/bar/1.0.1/Echo/echo"));
        ruisd.invoke(messageContext);
        assertEquals(as4, messageContext.getAxisService());
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.