FileDocCategorySizeDatePackage
TestProxySample.javaAPI DocApache Axis 1.42225Sat Apr 22 18:57:28 BST 2006test.functional

TestProxySample

public class TestProxySample extends TestCase
Test the proxy sample code.

Fields Summary
static Log
log
Constructors Summary
public TestProxySample(String name)


       
        super(name);
    
Methods Summary
public voiddoTest()

        String[] args = { "-d" };
        TestClient.mainWithService(args, "ProxyService");
    
public static voidmain(java.lang.String[] args)

        new TestProxySample("foo").doTest();
    
public voidtestService()

        try {
            log.info("Testing proxy sample.");
            
            log.info("Testing deployment...");
            
            // deploy the proxy service
            String[] args = { "samples/proxy/deploy.wsdd" };
            AdminClient.main(args);
            
            log.info("Testing server-side client deployment...");
            
            // deploy the proxy service
            String[] args2 = { "samples/proxy/client_deploy.xml" };
            AdminClient.main(args2);
            
            log.info("Testing service...");
            doTest();
            log.info("Test complete.");
        }
        catch( Exception e ) {
            e.printStackTrace();
            throw new Exception("Fault returned from test: "+e);
        }