FileDocCategorySizeDatePackage
WhiteMesaSoap12TestSvcTestCase.javaAPI DocApache Axis 1.428612Sat Apr 22 18:57:28 BST 2006test.wsdl.soap12.assertion

WhiteMesaSoap12TestSvcTestCase

public class WhiteMesaSoap12TestSvcTestCase extends TestCase
WhiteMesaSoap12TestSvcTestCase.java This file was auto-generated from WSDL by the Apache Axis WSDL2Java emitter.

Fields Summary
public final String
TEST_NS
public final String
DOC_ENDPOINT
public final String
INTERMEDIARY_ENDPOINT
public final String
ROLE_A
public final String
ROLE_B
public final String
ROLE_C
Constructors Summary
public WhiteMesaSoap12TestSvcTestCase(String name)


       
        super(name);
    
Methods Summary
public voidtest10Soap12TestRpcPortEchoIntegerArray()

        test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding;
        try {
            binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub)
                          new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        int[] input = new int[] {
            1,
            2,
            3
        };
        // Test operation
        int[] output = null;
        output = binding.echoIntegerArray(input);

        // TBD - validate results
        assertTrue(Arrays.equals(input,output));
    
public voidtest11Soap12TestRpcPortEchoBase64()

        test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding;
        try {
            binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub)
                          new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        byte[] input = new byte[] {0xC, 0xA, 0xF, 0xE};
        
        // Test operation
        byte[] output = null;
        output = binding.echoBase64(input);
        
        // TBD - validate results
        assertTrue(Arrays.equals(input,output));
    
public voidtest12Soap12TestRpcPortEchoBoolean()

        test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding;
        try {
            binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub)
                          new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        boolean value = false;
        value = binding.echoBoolean(true);
        // TBD - validate results
        assertEquals(true, value);
    
public voidtest13Soap12TestRpcPortEchoDate()

        test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding;
        try {
            binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub)
                          new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        java.util.Calendar input = java.util.Calendar.getInstance();
        input.setTimeZone(TimeZone.getTimeZone("GMT"));
        input.set(Calendar.MILLISECOND, 0);
        
        java.util.Calendar output = null;
        output = binding.echoDate(input);
        output.setTimeZone(TimeZone.getTimeZone("GMT"));
        assertEquals(input, output);
    
public voidtest14Soap12TestRpcPortEchoDecimal()

        test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding;
        try {
            binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub)
                          new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        java.math.BigDecimal input = new java.math.BigDecimal(5000);
        
        // Test operation
        java.math.BigDecimal output = null;
        output = binding.echoDecimal(input);
        
        // TBD - validate results
        assertEquals(input, output);
    
public voidtest15Soap12TestRpcPortEchoFloat()

        test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding;
        try {
            binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub)
                          new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        float input = -334.5F;
        // Test operation
        float output = 0;
        output = binding.echoFloat(input);
        // TBD - validate results
        assertTrue(input == output);
    
public voidtest16Soap12TestRpcPortEchoString()

        test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding;
        try {
            binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub)
                          new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        java.lang.String value = null;
        value = binding.echoString(new java.lang.String("EchoString"));
        
        // TBD - validate results
        assertEquals("EchoString", value);
    
public voidtest17Soap12TestRpcPortCountItems()

        test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding;
        try {
            binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub)
                          new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        int output = -3;
        output = binding.countItems(new java.lang.String[] {"Life","is","a","box","of","chocolates"});
        // TBD - validate results
        assertEquals(output, 6);
    
public voidtest18Soap12TestRpcPortIsNil()

        test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding;
        try {
            binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub)
                          new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // TODO: This does not work :(
        //// Test operation
        //boolean value = binding.isNil(new java.lang.String("isNil"));
        //
        //// TBD - validate results
        //assertEquals(false, value);
    
public voidtest1Soap12TestRpcPortReturnVoid()

        test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding;
        try {
            binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub)
                          new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        binding.returnVoid();
        // TBD - validate results
    
public voidtest20Soap12TestDocPortEchoOk()

        test.wsdl.soap12.assertion.Soap12TestDocBindingStub binding;
        try {
            binding = (test.wsdl.soap12.assertion.Soap12TestDocBindingStub)
                          new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestDocPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // TODO: This does not work :(
        //// Test operation
        //java.lang.String value = null;
        // value = binding.echoOk(new java.lang.String("EchoOk"));
        //// TBD - validate results
        //assertEquals(value, "EchoOk");
    
public voidtest2Soap12TestRpcPortEchoStruct()

        test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding;
        try {
            binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub)
                          new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        test.wsdl.soap12.assertion.xsd.SOAPStruct input = new test.wsdl.soap12.assertion.xsd.SOAPStruct();
        input.setVarFloat(-5);
        input.setVarInt(10);
        input.setVarString("EchoStruct");
        
        // Test operation
        test.wsdl.soap12.assertion.xsd.SOAPStruct output = null;
        output = binding.echoStruct(input);
        // TBD - validate results
        assertEquals(input, output);
    
public voidtest3Soap12TestRpcPortEchoStructArray()

        test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding;
        try {
            binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub)
                          new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        test.wsdl.soap12.assertion.xsd.SOAPStruct[] input = new test.wsdl.soap12.assertion.xsd.SOAPStruct[1];
        input[0] = new test.wsdl.soap12.assertion.xsd.SOAPStruct();
        input[0].setVarFloat(-5);
        input[0].setVarInt(10);
        input[0].setVarString("EchoStruct");
        // Test operation
        test.wsdl.soap12.assertion.xsd.SOAPStruct[] output = null;
        output = binding.echoStructArray(input);
        // TBD - validate results
        assertTrue(Arrays.equals(input,output));
    
public voidtest4Soap12TestRpcPortEchoStructAsSimpleTypes()

        test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding;
        try {
            binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub)
                          new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        test.wsdl.soap12.assertion.xsd.SOAPStruct input = new test.wsdl.soap12.assertion.xsd.SOAPStruct();
        input.setVarFloat(-5);
        input.setVarInt(10);
        input.setVarString("EchoStructAsSimpleTypes");
        
        javax.xml.rpc.holders.StringHolder out1 = new javax.xml.rpc.holders.StringHolder();
        javax.xml.rpc.holders.IntHolder out2 = new javax.xml.rpc.holders.IntHolder();
        javax.xml.rpc.holders.FloatHolder out3 = new javax.xml.rpc.holders.FloatHolder();

        // Test operation
        binding.echoStructAsSimpleTypes(input, out1, out2, out3);
        // TBD - validate results
        assertEquals(out1.value, input.getVarString());
        assertEquals(out2.value, input.getVarInt());
        assertTrue(out3.value == input.getVarFloat());
    
public voidtest5Soap12TestRpcPortEchoSimpleTypesAsStruct()

        test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding;
        try {
            binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub)
                          new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        String input1 = new String("EchoSimpleTypesAsStruct");
        int    input2 = 50;
        float  input3 = 45.5F;
        // Test operation
        test.wsdl.soap12.assertion.xsd.SOAPStruct output = null;
        output = binding.echoSimpleTypesAsStruct(input1, input2, input3);
        
        // TBD - validate results
        assertEquals(input1, output.getVarString());
        assertEquals(input2, output.getVarInt());
        assertTrue(input3 == output.getVarFloat());
    
public voidtest6Soap12TestRpcPortEchoNestedStruct()

        test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding;
        try {
            binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub)
                          new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        test.wsdl.soap12.assertion.xsd.SOAPStructStruct input = new test.wsdl.soap12.assertion.xsd.SOAPStructStruct();
        input.setVarFloat(-5);
        input.setVarInt(10);
        input.setVarString("EchoNestedStruct1");

        test.wsdl.soap12.assertion.xsd.SOAPStruct inputInner = new test.wsdl.soap12.assertion.xsd.SOAPStruct();
        inputInner.setVarFloat(-5);
        inputInner.setVarInt(10);
        inputInner.setVarString("EchoNestedStruct2");
        
        input.setVarStruct(inputInner);
        
        // Test operation
        test.wsdl.soap12.assertion.xsd.SOAPStructStruct output = null;
        output = binding.echoNestedStruct(input);
        
        // TBD - validate results
        assertEquals(input, output);
    
public voidtest7Soap12TestRpcPortEchoNestedArray()

        test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding;
        try {
            binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub)
                          new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        test.wsdl.soap12.assertion.xsd.SOAPArrayStruct input = new test.wsdl.soap12.assertion.xsd.SOAPArrayStruct();
        input.setVarFloat(-5);
        input.setVarInt(10);
        input.setVarString("EchoNestedArray1");
        input.setVarArray(new String[] {"EchoNestedArray2","EchoNestedArray3","EchoNestedArray4"});

        // TODO: This does not work :(
        //// Test operation
        //test.wsdl.soap12.assertion.xsd.SOAPArrayStruct output = null;
        //output = binding.echoNestedArray(input);
        //// TBD - validate results
        //assertEquals(input, output);
    
public voidtest8Soap12TestRpcPortEchoFloatArray()

        test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding;
        try {
            binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub)
                          new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        float[] input = new float[] {
            1.1F,
            1.2F,
            1.3F
        };

        // Test operation
        float[] output = null;
        output = binding.echoFloatArray(input);
        
        // TBD - validate results
        assertTrue(Arrays.equals(input,output));
    
public voidtest9Soap12TestRpcPortEchoStringArray()

        test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding;
        try {
            binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub)
                          new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        String[] input = new String[] {
            "1.1F",
            "1.2F",
            "1.3F"
        };
        // Test operation
        java.lang.String[] output = null;
        output = binding.echoStringArray(input);

        // TBD - validate results
        assertTrue(Arrays.equals(input,output));
    
protected voidtestEchoOkHeaderWithEmptyBody(java.lang.String role)
Several tests (T1, etc) use the same functionality, send an empty body with the "echoOk" header using various roles, and check the return in the "responseOk" header.

throws
Exception

        test.wsdl.soap12.assertion.Soap12TestDocBindingStub binding;
        try {
            binding = (test.wsdl.soap12.assertion.Soap12TestDocBindingStub)
                          new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestDocPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        SOAPHeaderElement header = 
                new SOAPHeaderElement(TEST_NS, "echoOk");
        if (role != null)
            header.setRole(role);
        header.setObjectValue("this is a test");
        binding.setHeader(header);
        binding.emptyBody();
        // Get the response header
        SOAPHeaderElement respHeader = 
                binding.getHeader(TEST_NS,
                                    "responseOk");
        assertNotNull("Missing response header", respHeader);
        assertEquals("this is a test", respHeader.getValue());
    
public voidtestSoap12TestDocPortWSDL()

        javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
        java.net.URL url = new java.net.URL(new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestDocPortAddress() + "?WSDL");
        javax.xml.rpc.Service service = serviceFactory.createService(url, new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getServiceName());
        assertTrue(service != null);
    
public voidtestSoap12TestRpcPortWSDL()

        javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
        java.net.URL url = new java.net.URL(new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPortAddress() + "?WSDL");
        javax.xml.rpc.Service service = serviceFactory.createService(url, new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getServiceName());
        assertTrue(service != null);
    
public voidtestT1()
Test T1 - echoOk header with empty body using "next" role

throws
Exception

        testEchoOkHeaderWithEmptyBody(Constants.URI_SOAP12_NEXT_ROLE);
    
public voidtestT12()
Test T12 - unknown header, with MustUnderstand true

throws
Exception

        Call call = new Call(DOC_ENDPOINT);
        call.setOperationStyle(Style.DOCUMENT);
        call.setSOAPVersion(SOAPConstants.SOAP12_CONSTANTS);
        SOAPEnvelope reqEnv = new SOAPEnvelope(SOAPConstants.SOAP12_CONSTANTS);
        SOAPHeaderElement header = new SOAPHeaderElement(TEST_NS, "Unknown");
        header.setObjectValue("test header");
        header.setMustUnderstand(true);
        reqEnv.addHeader(header);
        try {
            call.invoke(reqEnv);
        } catch (AxisFault fault) {
            assertEquals(Constants.FAULT_SOAP12_MUSTUNDERSTAND,
                         fault.getFaultCode());
            ArrayList headers = fault.getHeaders();
            // If there is a NotUnderstood header, check it
            for (Iterator i = headers.iterator(); i.hasNext();) {
                SOAPHeaderElement h = (SOAPHeaderElement) i.next();
                if (h.getQName().equals(Constants.QNAME_NOTUNDERSTOOD)) {
                    // TODO : check qname attribute                    
                }
            }
            return;
        }
        fail("Didn't receive expected fault!");
    
public voidtestT2()
Test T2 - echoOk header with empty body using supported role

throws
Exception

        testEchoOkHeaderWithEmptyBody("http://example.org/ts-tests/C");
    
public voidtestT3()
Test T3 - echoOk header with empty body using no role

throws
Exception

        testEchoOkHeaderWithEmptyBody(null);
    
public voidtestT4()
Test T4 - echoOk header with empty body using role ""

throws
Exception

        testEchoOkHeaderWithEmptyBody("");
    
public voidtestT5()
Test T5 - echoOk header to unrecognized role (should be ignored)

throws
Exception

        Call call = new Call(DOC_ENDPOINT);
        call.setOperationStyle(Style.DOCUMENT);
        call.setSOAPVersion(SOAPConstants.SOAP12_CONSTANTS);
        SOAPEnvelope reqEnv = new SOAPEnvelope(SOAPConstants.SOAP12_CONSTANTS);
        SOAPHeaderElement header = new SOAPHeaderElement(TEST_NS, "echoOk");
        header.setRole(ROLE_B);
        header.setObjectValue("test header");
        reqEnv.addHeader(header);
        SOAPEnvelope respEnv = call.invoke(reqEnv);
        assertTrue("Got unexpected header!", respEnv.getHeaders().isEmpty());
    
public voidtestT6()
Test T6 - echoOk header targeted at endpoint via intermediary

throws
Exception

        Call call = new Call(INTERMEDIARY_ENDPOINT);
        call.setOperationStyle(Style.DOCUMENT);
        call.setSOAPVersion(SOAPConstants.SOAP12_CONSTANTS);
        SOAPEnvelope reqEnv = new SOAPEnvelope(SOAPConstants.SOAP12_CONSTANTS);
        SOAPHeaderElement header = new SOAPHeaderElement(TEST_NS, "echoOk");
        header.setRole(ROLE_C);
        header.setObjectValue("test header");
        reqEnv.addHeader(header);
        SOAPEnvelope respEnv = call.invoke(reqEnv);
        SOAPHeaderElement respHeader = 
                respEnv.getHeaderByName(TEST_NS, "responseOk");
        assertNotNull(respHeader);
        assertEquals("test header", respHeader.getValue());