Package org.apache.axis.client

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


        if(doTheDIME)
            call.setProperty(call.ATTACHMENT_ENCAPSULATION_FORMAT,
              call.ATTACHMENT_ENCAPSULATION_FORMAT_DIME);


        Object ret = call.invoke( new Object[] {
                    dhSource
                }
            ); //Add the attachment.

        if (null == ret) {
View Full Code Here


        if(doTheDIME)
            call.setProperty(call.ATTACHMENT_ENCAPSULATION_FORMAT,
              call.ATTACHMENT_ENCAPSULATION_FORMAT_DIME);

        Object ret = call.invoke( new Object[] {
                    attachments
                }
            ); //Add the attachment.

        if (null == ret) {
View Full Code Here

            call.setTargetEndpointAddress( new java.net.URL(endpointURL) );
            call.setOperationName( "serviceMethod" );
            call.addParameter( "arg1", XMLType.XSD_STRING, ParameterMode.IN);
            call.setReturnType( org.apache.axis.encoding.XMLType.XSD_STRING );

            String ret = (String) call.invoke( new Object[] { textToSend } );
           
            System.out.println("You typed : " + ret);
        } catch (Exception e) {
            System.err.println(e.toString());
        }
View Full Code Here

          call.setPassword( passwd );

          call.setProperty(AsyncCall.ASYNC_CALL_PROPERTY,
                           new Boolean(true));

          call.invoke(new Object[] {symbol});

          Object ret = null;
          try {         
            ret = call.waitForReturnValue(1000 * 20); //wait 20 seconds
          } catch (Throwable t) {
View Full Code Here

        Float res = new Float(0.0F);

        // invoke a call for each of the symbols and print out
        for (int i = 0; i < args.length; i++) {
            res = (Float) call.invoke(new Object[] {args[i]});
            System.out.println(args[i] + ": " + res);
        }

        // shutdown
        listener.shutdown();
View Full Code Here

        }
        try {
            Call call = new Call(endpoint.toString());
            ((org.apache.axis.Message)request).setMessageContext(call.getMessageContext());
            SOAPEnvelope env = ((org.apache.axis.Message)request).getSOAPEnvelope();
            call.invoke(env);
            return call.getResponseMessage();
        } catch (java.net.MalformedURLException mue){
            throw new SOAPException(mue);
        } catch (org.apache.axis.AxisFault af){
            throw new SOAPException(af);
View Full Code Here

        opts.setDefaultURL( call.getTargetEndpointAddress() );
        call.setTargetEndpointAddress( new URL(opts.getURL()) );

        Element elem = XMLUtils.newDocument(bais).getDocumentElement();

        elem = (Element) call.invoke( new Object[] { "a string", elem } );
        return( XMLUtils.ElementToString( elem ) );
    }

    public static void main(String[] args) throws Exception {
        System.out.println("Sent: " + xml );
View Full Code Here

        Float res = new Float(0.0F);

        // invoke a call for each of the symbols and print out
        for (int i = 0; i < symbols.length; i++) {
            res = (Float) call.invoke(new Object[] {symbols[i]});
            System.out.println(symbols[i] + ": " + res);
        }

        // shutdown
        listener.shutdown();
View Full Code Here

        int maxChars = new Random().nextInt(50);
        for (int i = 0; i < maxChars; i++) {
            str += "a";
        }

        Integer i = (Integer)call.invoke("countChars", new Object [] { str });
       
        int desiredResult = str.length();
        if (doubled) desiredResult = desiredResult * 2;
       
        return (i.intValue() == desiredResult);
View Full Code Here

            Call call = getCall();
            call.setTargetEndpointAddress(m_url);
            call.setOperationName(new QName(m_service, "getBeanById"));
            call.addParameter("id", org.apache.axis.Constants.XSD_STRING, ParameterMode.IN);
            call.setReturnType(m_beanQName);
            bean = (IF1) call.invoke(new Object[] { id });

        return bean;
    }

    public IF1[] getAllBeans()
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.