
public class AxisClient
{

    public static void main ( String[] args )
    {
        System.setProperty ( "log4j.configuration", "mylog.properties" ) ;

        try
        {
            call ( "http://localhost:8081/cgi-bin/jsmdirect?simple" ) ;
        }
        catch ( Exception e )
        {
            System.out.println ( e.getMessage () ) ;
        }
    }

    private static void call ( String url ) throws Exception
    {
        System.out.println ( url ) ;

        com.mylaptop.soap.server.SimpleServerServiceServiceLocator locator = new com.mylaptop.soap.server.SimpleServerServiceServiceLocator () ;

        String endPoint = locator.getSimpleServerServicePortAddress () ;

        if ( url != null )
        {
            endPoint = url ;
        }

        com.mylaptop.soap.server.SimpleServerServiceBindingStub stub = (com.mylaptop.soap.server.SimpleServerServiceBindingStub)locator.getSimpleServerServicePort ( new java.net.URL ( endPoint ) ) ;

        String desc = stub.getDesc ( "ADM" ) ;

        System.out.println ( desc ) ;
    }
}
