FileDocCategorySizeDatePackage
MyServiceServiceTestCase.javaAPI DocApache Axis 1.41676Sat Apr 22 18:57:28 BST 2006test.wsdl.date

MyServiceServiceTestCase

public class MyServiceServiceTestCase extends TestCase
MyServiceServiceTestCase.java This file was auto-generated from WSDL by the Apache Axis 1.2alpha Dec 06, 2003 (10:46:24 EST) WSDL2Java emitter.

Fields Summary
Constructors Summary
public MyServiceServiceTestCase(String name)

        super(name);
    
Methods Summary
public voidtest1testdateGetInfo()

        test.wsdl.date.TestdateSoapBindingStub binding;
        try {
            binding = (test.wsdl.date.TestdateSoapBindingStub)
                          new test.wsdl.date.MyServiceServiceLocator().gettestdate();
        }
        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
        test.wsdl.date.MyBean value = null;
        value = binding.getInfo();
        // TBD - validate results
        System.out.println(value.getDate());
    
public voidtesttestdateWSDL()

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