put.javaAPI DocApache Axis 1.41362Sat Apr 22 18:57:28 BST 2006test


public class put extends Object
A convenient little test program which will send a message as is to the server. Useful for debugging interoperability problems or handling of ill-formed messages that are hard to reproduce programmatically. Accepts the standard options, followed by a list of files containing the contents to be sent.

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

        Options opts = new Options(args);
        String action = opts.isValueSet('a");

        Service  service = new Service();
        Call     call    = (Call) service.createCall();

        call.setTargetEndpointAddress( new );
        if (action != null ) {
            call.setUseSOAPAction( true );
            call.setSOAPActionURI( action );
        args = opts.getRemainingArgs();
        for (int i=0; i<args.length; i++) {
            FileInputStream stream = new FileInputStream(new File(args[i]));
            call.setRequestMessage(new Message(stream));