Package org.apache.axis.client

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


      call.addParameter( "info", XMLType.XSD_STRING, ParameterMode.IN );
      call.setReturnType( XMLType.XSD_STRING );
      call.setUsername( opts.getUser() );
      call.setPassword( opts.getPassword() );

      String res = (String) call.invoke( new Object[] { args[0], args[1] } );

      System.out.println( symbol + ": " + res );
    }
    catch( Exception e ) {
      e.printStackTrace();
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(new Object[] {symbol} );
            if (ret instanceof String) {
                System.out.println("Received problem response from server: "+ret);
                throw new AxisFault("", (String)ret, null, null);
            }
            res = (Float) ret;
View Full Code Here

        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.setOperationStyle("document");
        call.setOperationUse("literal");

        //Now do the call....
        Object ret = call.invoke(new Object[]{
           new SOAPBodyElement(new ByteArrayInputStream(msg.toString().getBytes("UTF-8"))) } );

        validate(ret, call, "12345");  

        //Note: that even though the attachments are sent in reverse they are still
View Full Code Here

        for( ap= (AttachmentPart)rev.pop(); ap!=null ;ap= rev.empty()? null (AttachmentPart)rev.pop()){
          call.addAttachmentPart(ap);
        }

        //Now do the call....
        ret = call.invoke(new Object[]{
           new SOAPBodyElement(new ByteArrayInputStream(msg.toString().getBytes("UTF-8"))) } );

        validate(ret, call, "54321");  

View Full Code Here

      call.setOperationName(new QName(SOAPConstants.NAMESPACE_URI, "connect"));
      call.addParameter("credentials", XMLType.XSD_ANY, ParameterMode.IN);
      call.setReturnType(XMLType.XSD_STRING);
//      call.addFault(new QName(SOAPConstants.NAMESPACE_URI, "SecurityException"), SecurityException.class, XMLType.XSD_ANY, true);

      connectionId = (String)call.invoke(new Object[]{credentials});
      return connectionId;
   }

   public void close() throws IOException
   {
View Full Code Here

      Call call = createCall();

      call.setOperationName(new QName(SOAPConstants.NAMESPACE_URI, "close"));
      call.setReturnType(XMLType.AXIS_VOID);

      call.invoke(new Object[0]);
   }

   public String getConnectionId() throws IOException
   {
      return connectionId;
View Full Code Here

      call.addParameter("observed", qObjectName, ParameterMode.IN);
      call.addParameter("filter", XMLType.XSD_ANY, ParameterMode.IN);
      call.addParameter("delegate", qSubject, ParameterMode.IN);
      call.setReturnType(XMLType.XSD_INT);

      return (Integer)call.invoke(new Object[]{name, filter, delegate});
   }

   public void removeNotificationListeners(ObjectName observed, Integer[] ids, Subject delegate) throws InstanceNotFoundException, ListenerNotFoundException, IOException
   {
      Call call = createCall();
View Full Code Here

      call.addParameter("observed", qObjectName, ParameterMode.IN);
      call.addParameter("ids", XMLType.SOAP_ARRAY, ParameterMode.IN);
      call.addParameter("delegate", qSubject, ParameterMode.IN);
      call.setReturnType(XMLType.AXIS_VOID);

      call.invoke(new Object[]{observed, ids, delegate});
   }

   public NotificationResult fetchNotifications(long clientSequenceNumber, int maxNotifications, long timeout) throws IOException
   {
      Call call = createCall();
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.