Package org.apache.axiom.soap

Examples of org.apache.axiom.soap.RolePlayer


    /**
     * Test a RolePlayer that is not an ultimate receiver and does not act in any roles
     * corresponding to headers.  There should be no faults cause by the mustUnderstand headers
     */
    public void testNotUltimateReceiverNoRoles() {
        RolePlayer rolePlayer = new NotUltimateDestinationNoRoles();
       
        MessageContext msgCtx11 = createMessageContext(soap11Factory);
        setUnprocessedHeaders(msgCtx11, rolePlayer);
        try {
            HandlerUtils.checkMustUnderstand(msgCtx11, null, null);
View Full Code Here


     * Test that a RolePlayer with no roles doesn't cause any problems in the mustUnderstand
     * checking.
     */
    public void testHandlerResolverEmptyRolesPlayed() {
       
        RolePlayer rolePlayer = new UltimateDestinationRoles();
        MessageContext msgCtx11 = createMessageContext(soap11Factory);
        setUnprocessedHeaders(msgCtx11, rolePlayer);
        // Indicate we understand (e.g. via handlers) all the headers.
        List<QName> understoodHeaders = new ArrayList<QName>();
        understoodHeaders.add(new QName(namespace, header_ultimateReceiver));
View Full Code Here

        assertNotNull(options.getTo());
    }

    public void testExtractAddressingInformationFromHeadersCustomRole() throws Exception {
        testFileName = "soapmessage.customrole.xml";
        extractAddressingInformationFromHeaders(new RolePlayer() {
            public List getRoles() {
                ArrayList al = new ArrayList();
                al.add("http://my/custom/role");
                return al;
            }
View Full Code Here

        }
    }

    public void testExtractAddressingInformationFromHeadersCustomRole() throws Exception {
        testFileName = "soapmessage.customrole.xml";
        Options options = extractAddressingInformationFromHeaders(new RolePlayer() {
            public List getRoles() {
                ArrayList al = new ArrayList();
                al.add("http://my/custom/role");
                return al;
            }
View Full Code Here

    }

    public void testExtractAddressingInformationFromHeadersCustomRoleSOAP12() throws Exception {
        testFileName = "soapmessage.customrole.soap12.xml";
        Options options = extractAddressingInformationFromHeaders(new RolePlayer() {
            public List getRoles() {
                ArrayList al = new ArrayList();
                al.add("http://my/custom/role");
                return al;
            }
View Full Code Here

    String filename =
            AbstractTestCase.basedir + "/test-resources/deployment/soaproleconfiguration";
    AxisConfiguration axisConfig = ConfigurationContextFactory
            .createConfigurationContextFromFileSystem(filename , filename + "/axis2.xml")
            .getAxisConfiguration();
    RolePlayer rolePlayer = (RolePlayer)axisConfig.getParameterValue(Constants.SOAP_ROLE_PLAYER_PARAMETER);
    assertNotNull(rolePlayer);
    assertFalse(rolePlayer.isUltimateDestination());
    assertEquals(1, rolePlayer.getRoles().size());
    assertEquals("http://my/custom/role", rolePlayer.getRoles().get(0));
  }
View Full Code Here

        assertEPRHasCorrectMetadata(options.getReplyTo());
    }

    public void testExtractAddressingInformationFromHeadersCustomRole() throws Exception {
        testFileName = "soapmessage.customrole.xml";
        Options options = extractAddressingInformationFromHeaders(new RolePlayer() {
            public List getRoles() {
                ArrayList al = new ArrayList();
                al.add("http://my/custom/role");
                return al;
            }
View Full Code Here

    }

    public void testExtractAddressingInformationFromHeadersCustomRoleSOAP12() throws Exception {
        testFileName = "soapmessage.customrole.soap12.xml";
        Options options = extractAddressingInformationFromHeaders(new RolePlayer() {
            public List getRoles() {
                ArrayList al = new ArrayList();
                al.add("http://my/custom/role");
                return al;
            }
View Full Code Here

        assertNotNull(options.getTo());
    }

    public void testExtractAddressingInformationFromHeadersCustomRole() throws Exception {
        testFileName = "soapmessage.customrole.xml";
        extractAddressingInformationFromHeaders(new RolePlayer() {
            public List getRoles() {
                ArrayList al = new ArrayList();
                al.add("http://my/custom/role");
                return al;
            }
View Full Code Here

TOP

Related Classes of org.apache.axiom.soap.RolePlayer

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.