Package org.apache.axis.client

Examples of org.apache.axis.client.ServiceClient.invoke()


            String tName = opts.isValueSet( 't' );
            if ( tName != null && !tName.equals("") )
                client.setTransportName( tName );
           
            client.invoke();
           
            Message outMsg = client.getMessageContext().
                                                        getResponseMessage();
            if (outMsg == null) {
                log("Null response message!");
View Full Code Here


            sd.addOutputParam("return", SOAPTypeMappingRegistry.XSD_FLOAT);
            call.setServiceDescription(sd);
           
            Float res = new Float(0.0F);
            //      for (int i=0; i<count; i++) {
            Object ret = call.invoke(
                "urn:xmltoday-delayed-quotes", "getQuote",
                new Object[] {symbol} );
            if (ret instanceof Float) {
                res = (Float) ret;
                // System.out.println( symbol + ": " + res );
View Full Code Here

    call.set(Transport.PASSWORD, opts.getPassword() );
    call.setTransport( new FileTransport() );
    call.setTimeout(10000);
 
    Float res = new Float(0.0F);
    res = (Float) call.invoke( "urn:xmltoday-delayed-quotes",
                               "getQuote",
                               new Object[] {symbol} );
 
    System.out.println( symbol + ": " + res );
View Full Code Here

        System.out.println("Iterating " + count + " times");
      }

      Float res = new Float(0.0F);
      for (int i=0; i<count; i++) {
          Object ret = call.invoke(
          namespace, "getQuote", new Object[] {symbol} );
          if (ret instanceof String) {
              System.out.println("Received problem response from server: "+ret);
              throw new AxisFault("", (String)ret, null, null);
          }
View Full Code Here

        // NOW set the client's URL (since now the tcp handler exists)
        client.setURL(dest);
       
        client.setRequestMessage(msgContext.getRequestMessage());
       
        client.invoke();
       
        msgContext.setResponseMessage(client.getMessageContext().getResponseMessage());
       
        // return null so MsgProvider will not muck with our response
        return null;
View Full Code Here

                textToSend = args[0];
            }
           
            ServiceClient client = new ServiceClient(endpointURL);
           
            String ret = (String)client.invoke("MyService", "serviceMethod",
                                               new Object [] { textToSend });
           
            System.out.println("You typed : " + ret);
        } catch (Exception e) {
            System.err.println(e.toString());
View Full Code Here

        System.out.println("Iterating " + count + " times");
      }

      Float res = new Float(0.0F);
      for (int i=0; i<count; i++) {
          Object ret = call.invoke(
          namespace, "getQuote", new Object[] {symbol} );
          if (ret instanceof String) {
              System.out.println("Received problem response from server: "+ret);
              throw new AxisFault("", (String)ret, null, null);
          }
View Full Code Here

      ServiceClient call = new ServiceClient
            (new HTTPTransport(opts.getURL(), "urn:cominfo"));

      call.set( Transport.USER, opts.getUser() );
      call.set( Transport.PASSWORD, opts.getPassword() );
      String res = (String) call.invoke(
        "urn:cominfo", "getInfo",
        new Object[] { args[0], args[1] } );
     
      System.out.println( symbol + ": " + res );
    }
View Full Code Here

      Message        resMsg     = null ;

      System.out.println( "Request:\n" + msg );
       
      client.setRequestMessage( reqMsg );
      client.invoke();
      resMsg = client.getMessageContext().getResponseMessage();

      System.out.println( "Response:\n" + resMsg.getAsString() );
        return (String)resMsg.getAsString();
    }
View Full Code Here

           
            String endpointURL = options.getURL();
           
            ServiceClient client = new ServiceClient(endpointURL);
           
            client.invoke("LogTestService", "testMethod", new Object [] {});
        } catch (Exception e) {
            System.err.println(e.toString());
        }
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.