FileDocCategorySizeDatePackage
Client.javaAPI DocApache Axis 1.41489Sat Apr 22 18:56:52 BST 2006samples.userguide.example4

Client

public class Client extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        try {
            Options options = new Options(args);
            
            String endpointURL = options.getURL();
            
            Service  service = new Service();
            Call     call    = (Call) service.createCall();

            call.setTargetEndpointAddress( new java.net.URL(endpointURL) );
            call.setOperationName( new QName("LogTestService", "testMethod") );

            String res = (String) call.invoke( new Object[] {} );

            System.out.println( res );
        } catch (Exception e) {
            System.err.println(e.toString());
        }