FileDocCategorySizeDatePackage
HeaderServiceTestCase.javaAPI DocApache Axis 1.42635Sat Apr 22 18:57:26 BST 2006test.wsdl.header

HeaderServiceTestCase

public class HeaderServiceTestCase extends TestCase
HeaderServiceTestCase.java This file was auto-generated from WSDL by the Apache Axis 1.2alpha Dec 15, 2003 (12:04:17 EST) WSDL2Java emitter.

Fields Summary
Constructors Summary
public HeaderServiceTestCase(String name)

        super(name);
    
Methods Summary
public voidtest1headerOp1()

        test.wsdl.header.BindingStub binding;
        try {
            binding = (test.wsdl.header.BindingStub)
                          new test.wsdl.header.HeaderServiceLocator().getheader();
        }
        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
        try {
            float value = -3;
            value = binding.op1(0, new java.lang.String(), new test.wsdl.header.HeaderType());
        }
        catch (test.wsdl.header.Op1Fault e1) {
            throw new junit.framework.AssertionFailedError("op1Fault Exception caught: " + e1);
        }
            // TBD - validate results
    
public voidtest2headerOp2()

        test.wsdl.header.BindingStub binding;
        try {
            binding = (test.wsdl.header.BindingStub)
                          new test.wsdl.header.HeaderServiceLocator().getheader();
        }
        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.op2(0, new test.wsdl.header.HeaderType());
        // TBD - validate results