FileDocCategorySizeDatePackage
Schema2ServiceTestCase.javaAPI DocApache Axis 1.415272Sat Apr 22 18:57:28 BST 2006test.wsdl.schema2

Schema2ServiceTestCase

public class Schema2ServiceTestCase extends TestCase
Schema2ServiceTestCase.java This file was auto-generated from WSDL by the Apache Axis 1.2RC2 Jan 14, 2005 (05:38:50 EST) WSDL2Java emitter.

Fields Summary
Constructors Summary
public Schema2ServiceTestCase(String name)

        super(name);
    
Methods Summary
public voidtest10Schema2ServiceEchoNonPositiveIntegerTest()

        test.wsdl.schema2.Schema2ServiceSoapBindingStub binding;
        try {
            binding = (test.wsdl.schema2.Schema2ServiceSoapBindingStub)
                          new test.wsdl.schema2.Schema2ServiceLocator().getSchema2Service();
        }
        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.math.BigInteger value = null;
        value = binding.echoNonPositiveIntegerTest(new java.math.BigInteger("678"));
        // TBD - validate results
    
public voidtest11Schema2ServiceEchoNonNegativeIntegerTest()

        test.wsdl.schema2.Schema2ServiceSoapBindingStub binding;
        try {
            binding = (test.wsdl.schema2.Schema2ServiceSoapBindingStub)
                          new test.wsdl.schema2.Schema2ServiceLocator().getSchema2Service();
        }
        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.math.BigInteger value = null;
        value = binding.echoNonNegativeIntegerTest(new java.math.BigInteger("8910"));
        // TBD - validate results
    
public voidtest12Schema2ServiceEchoPositiveIntegerTest()

        test.wsdl.schema2.Schema2ServiceSoapBindingStub binding;
        try {
            binding = (test.wsdl.schema2.Schema2ServiceSoapBindingStub)
                          new test.wsdl.schema2.Schema2ServiceLocator().getSchema2Service();
        }
        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.math.BigInteger value = null;
        value = binding.echoPositiveIntegerTest(new java.math.BigInteger("91011"));
        // TBD - validate results
    
public voidtest13Schema2ServiceEchoNegativeIntegerTest()

        test.wsdl.schema2.Schema2ServiceSoapBindingStub binding;
        try {
            binding = (test.wsdl.schema2.Schema2ServiceSoapBindingStub)
                          new test.wsdl.schema2.Schema2ServiceLocator().getSchema2Service();
        }
        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.math.BigInteger value = null;
        value = binding.echoNegativeIntegerTest(new java.math.BigInteger("111213"));
        // TBD - validate results
    
public voidtest14Schema2ServiceEchoTimeTest()

        test.wsdl.schema2.Schema2ServiceSoapBindingStub binding;
        try {
            binding = (test.wsdl.schema2.Schema2ServiceSoapBindingStub)
                          new test.wsdl.schema2.Schema2ServiceLocator().getSchema2Service();
        }
        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.util.Calendar value = null;
        value = binding.echoTimeTest(java.util.Calendar.getInstance());
        // TBD - validate results
    
public voidtest15Schema2ServiceEchoDateTest()

        test.wsdl.schema2.Schema2ServiceSoapBindingStub binding;
        try {
            binding = (test.wsdl.schema2.Schema2ServiceSoapBindingStub)
                          new test.wsdl.schema2.Schema2ServiceLocator().getSchema2Service();
        }
        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.util.Calendar value = null;
        value = binding.echoDateTest(java.util.Calendar.getInstance());
        // TBD - validate results
    
public voidtest16Schema2ServiceEchoDocumentTest()

        test.wsdl.schema2.Schema2ServiceSoapBindingStub binding;
        try {
            binding = (test.wsdl.schema2.Schema2ServiceSoapBindingStub)
                          new test.wsdl.schema2.Schema2ServiceLocator().getSchema2Service();
        }
        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
        Document value = new Document();
        value.set_value("XYZ");
        value.setID("ID#1");
        value = binding.echoDocument(value);
        // TBD - validate results
        assertEquals("ID#1",value.getID());
        assertEquals("XYZ",value.get_value());
    
public voidtest1Schema2ServiceEchoLanguageTypeTest()

        test.wsdl.schema2.Schema2ServiceSoapBindingStub binding;
        try {
            binding = (test.wsdl.schema2.Schema2ServiceSoapBindingStub)
                          new test.wsdl.schema2.Schema2ServiceLocator().getSchema2Service();
        }
        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.echoLanguageTypeTest(new java.lang.String("ABC"));
        // TBD - validate results
    
public voidtest2Schema2ServiceEchoTokenTypeTest()

        test.wsdl.schema2.Schema2ServiceSoapBindingStub binding;
        try {
            binding = (test.wsdl.schema2.Schema2ServiceSoapBindingStub)
                          new test.wsdl.schema2.Schema2ServiceLocator().getSchema2Service();
        }
        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.echoTokenTypeTest(new java.lang.String("ABC"));
        // TBD - validate results
    
public voidtest3Schema2ServiceEchoNameTypeTest()

        test.wsdl.schema2.Schema2ServiceSoapBindingStub binding;
        try {
            binding = (test.wsdl.schema2.Schema2ServiceSoapBindingStub)
                          new test.wsdl.schema2.Schema2ServiceLocator().getSchema2Service();
        }
        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.echoNameTypeTest(new java.lang.String("ABC"));
        // TBD - validate results
    
public voidtest4Schema2ServiceEchoNCNameTypeTest()

        test.wsdl.schema2.Schema2ServiceSoapBindingStub binding;
        try {
            binding = (test.wsdl.schema2.Schema2ServiceSoapBindingStub)
                          new test.wsdl.schema2.Schema2ServiceLocator().getSchema2Service();
        }
        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.echoNCNameTypeTest(new java.lang.String("ABC"));
        // TBD - validate results
    
public voidtest5Schema2ServiceEchoIDTypeTest()

        test.wsdl.schema2.Schema2ServiceSoapBindingStub binding;
        try {
            binding = (test.wsdl.schema2.Schema2ServiceSoapBindingStub)
                          new test.wsdl.schema2.Schema2ServiceLocator().getSchema2Service();
        }
        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.echoIDTypeTest(new java.lang.String("ABC"));
        // TBD - validate results
    
public voidtest6Schema2ServiceEchoUnsignedShortTest()

        test.wsdl.schema2.Schema2ServiceSoapBindingStub binding;
        try {
            binding = (test.wsdl.schema2.Schema2ServiceSoapBindingStub)
                          new test.wsdl.schema2.Schema2ServiceLocator().getSchema2Service();
        }
        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 value = -3;
        value = binding.echoUnsignedShortTest(123);
        // TBD - validate results
    
public voidtest7Schema2ServiceEchoUnsignedIntTest()

        test.wsdl.schema2.Schema2ServiceSoapBindingStub binding;
        try {
            binding = (test.wsdl.schema2.Schema2ServiceSoapBindingStub)
                          new test.wsdl.schema2.Schema2ServiceLocator().getSchema2Service();
        }
        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
        long value = -3;
        value = binding.echoUnsignedIntTest(234);
        // TBD - validate results
    
public voidtest8Schema2ServiceEchoUnsignedByteTest()

        test.wsdl.schema2.Schema2ServiceSoapBindingStub binding;
        try {
            binding = (test.wsdl.schema2.Schema2ServiceSoapBindingStub)
                          new test.wsdl.schema2.Schema2ServiceLocator().getSchema2Service();
        }
        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
        short value = -3;
        value = binding.echoUnsignedByteTest((short)456);
        // TBD - validate results
    
public voidtest9Schema2ServiceEchoUnsignedLongTest()

        test.wsdl.schema2.Schema2ServiceSoapBindingStub binding;
        try {
            binding = (test.wsdl.schema2.Schema2ServiceSoapBindingStub)
                          new test.wsdl.schema2.Schema2ServiceLocator().getSchema2Service();
        }
        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.math.BigInteger value = null;
        value = binding.echoUnsignedLongTest(new java.math.BigInteger("567"));
        // TBD - validate results
    
public voidtestSchema2ServiceWSDL()

        javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
        java.net.URL url = new java.net.URL(new test.wsdl.schema2.Schema2ServiceLocator().getSchema2ServiceAddress() + "?WSDL");
        javax.xml.rpc.Service service = serviceFactory.createService(url, new test.wsdl.schema2.Schema2ServiceLocator().getServiceName());
        assertTrue(service != null);