FileDocCategorySizeDatePackage
DoubleBackServiceTestCase.javaAPI DocApache Axis 1.41743Sat Apr 22 18:57:26 BST 2006test.wsdl.webref

DoubleBackServiceTestCase

public class DoubleBackServiceTestCase extends TestCase
DoubleBackPortTypeServiceTestCase.java This file was auto-generated from WSDL by the Apache Axis 1.2beta May 06, 2004 (03:41:36 CEST) WSDL2Java emitter.

Fields Summary
Constructors Summary
public DoubleBackServiceTestCase(String name)

        super(name);
    
Methods Summary
public voidtest1DoubleBackServiceEcho()

        test.wsdl.webref.DoubleBackServiceSoapBindingStub binding;
        try {
            binding = (test.wsdl.webref.DoubleBackServiceSoapBindingStub)
                          new test.wsdl.webref.DoubleBackPortTypeServiceLocator().getDoubleBackService();
        }
        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.echo( "hello" );
       	assertEquals( "hellohello", value);
    
public voidtestDoubleBackServiceWSDL()

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