/*
   * 短信发送接口
   */
  public String invokeRemoteFuc(String username, String mobile, String content, String uuid) {
    String endpoint = "http://10.1.5.244:8989/smsWebservice/services/smsMsg?wsdl";
    String result = "no result!";
    Service service = new Service();
    Call call;
    try {
      call = (Call) service.createCall();
      call.setTargetEndpointAddress(endpoint); // 远程调用路径
      call.setOperationName("SendMsg"); // 调用的方法名
      //
      //			// 设置参数名:
      //			call.addParameter("username", // 参数名
      //					XMLType.XSD_STRING,// 参数类型:String
      //					ParameterMode.IN);// 参数模式:'IN' or 'OUT'
      //			call.addParameter("mobile", XMLType.XSD_STRING, ParameterMode.IN);
      //			call.addParameter("content", XMLType.XSD_STRING, ParameterMode.IN);
      //			call.addParameter("uuid", XMLType.XSD_STRING, ParameterMode.IN);
      //			// 设置返回值类型:
      //			call.setReturnType(XMLType.XSD_STRING);// 返回值类型:String

      result = (String) call.invoke(new Object[] {username, mobile, content, uuid}); // 远程调用
    } catch (ServiceException e) {
      e.printStackTrace();
    } catch (RemoteException e) {
      e.printStackTrace();
    }
    return result;
  }
  public de.epages.ws.orderdocument5.model.TGetInvoices_Return[] getInvoices(
      java.lang.String[] orders) throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
      throw new org.apache.axis.NoEndPointException();
    }
    org.apache.axis.client.Call _call = createCall();
    _call.setOperation(_operations[4]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("urn://epages.de/WebService/OrderDocumentService/2009/01#getInvoices");
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
    _call.setOperationName(
        new javax.xml.namespace.QName(
            "urn://epages.de/WebService/OrderDocumentService/2009/01", "getInvoices"));

    setRequestHeaders(_call);
    setAttachments(_call);
    try {
      java.lang.Object _resp = _call.invoke(new java.lang.Object[] {orders});

      if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException) _resp;
      } else {
        extractAttachments(_call);
        try {
          return (de.epages.ws.orderdocument5.model.TGetInvoices_Return[]) _resp;
        } catch (java.lang.Exception _exception) {
          return (de.epages.ws.orderdocument5.model.TGetInvoices_Return[])
              org.apache.axis.utils.JavaUtils.convert(
                  _resp, de.epages.ws.orderdocument5.model.TGetInvoices_Return[].class);
        }
      }
    } catch (org.apache.axis.AxisFault axisFaultException) {
      throw axisFaultException;
    }
  }
Ejemplo n.º 3
0
  public String invoke(Object[] obj) throws Exception {
    String endpointURL =
        "http://localhost:5148/WebServer/services/receiveMediumAndLongTermOperationModeCountersignInfomationTest";
    String nameSpaceURL = "http://oms.gd.soa.csg.cn";
    String soapActionURL = "http://schemas.xmlsoap.org/wsdl/soap/";
    String remoteMethod = "receiveMediumAndLongTermOperationModeCountersignInfomationTest";

    String id = "";

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

    call.addParameter(
        new QName(
            nameSpaceURL, "receiveMediumAndLongTermOperationModeCountersignInfomationTestRequest"),
        org.apache.axis.encoding.XMLType.XSD_STRING,
        javax.xml.rpc.ParameterMode.IN);
    call.setReturnType(org.apache.axis.encoding.XMLType.XSD_SCHEMA);
    call.setUseSOAPAction(true);
    call.setSOAPActionURI(soapActionURL);
    call.setTargetEndpointAddress(new java.net.URL(endpointURL).toString());

    QName qname = new QName(nameSpaceURL, remoteMethod);
    call.setOperationName(qname);

    Schema schema = (Schema) call.invoke(obj);
    String res = schema.get_any()[1].getAsString();

    return res;
  }
  public void setArrowPlacemark(
      java.lang.String folderName, java.lang.String lineColor, double lineWidth, double arrowScale)
      throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
      throw new org.apache.axis.NoEndPointException();
    }
    org.apache.axis.client.Call _call = createCall();
    _call.setOperation(_operations[6]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("");
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
    _call.setOperationName(
        new javax.xml.namespace.QName("http://KmlGenerator.webservices.cgl", "setArrowPlacemark"));

    setRequestHeaders(_call);
    setAttachments(_call);
    try {
      java.lang.Object _resp =
          _call.invoke(
              new java.lang.Object[] {
                folderName,
                lineColor,
                new java.lang.Double(lineWidth),
                new java.lang.Double(arrowScale)
              });

      if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException) _resp;
      }
      extractAttachments(_call);
    } catch (org.apache.axis.AxisFault axisFaultException) {
      throw axisFaultException;
    }
  }
  public com.lvmama.passport.hengdianmc.client.OrderRep orderReq(OrderInfo orderInfo)
      throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
      throw new org.apache.axis.NoEndPointException();
    }
    org.apache.axis.client.Call _call = createCall();
    _call.setOperation(_operations[0]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("http://tempuri.org/OrderReq");
    _call.setEncodingStyle(null);
    _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
    _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
    _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "OrderReq"));

    setRequestHeaders(_call);
    setAttachments(_call);
    try {
      java.lang.Object _resp = _call.invoke(new java.lang.Object[] {orderInfo});

      if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException) _resp;
      } else {
        extractAttachments(_call);
        try {
          return (OrderRep) _resp;
        } catch (java.lang.Exception _exception) {
          return (OrderRep) org.apache.axis.utils.JavaUtils.convert(_resp, OrderRep.class);
        }
      }
    } catch (org.apache.axis.AxisFault axisFaultException) {
      throw axisFaultException;
    }
  }
  public java.lang.String[] select(java.lang.String key, java.lang.String s)
      throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
      throw new org.apache.axis.NoEndPointException();
    }
    org.apache.axis.client.Call _call = createCall();
    _call.setOperation(_operations[6]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("urn:select");
    _call.setEncodingStyle(null);
    _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
    _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP12_CONSTANTS);
    _call.setOperationName(new javax.xml.namespace.QName("http://webservice.sp", "select"));

    setRequestHeaders(_call);
    setAttachments(_call);
    try {
      java.lang.Object _resp = _call.invoke(new java.lang.Object[] {key, s});

      if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException) _resp;
      } else {
        extractAttachments(_call);
        try {
          return (java.lang.String[]) _resp;
        } catch (java.lang.Exception _exception) {
          return (java.lang.String[])
              org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String[].class);
        }
      }
    } catch (org.apache.axis.AxisFault axisFaultException) {
      throw axisFaultException;
    }
  }
Ejemplo n.º 7
0
  public socialapp.soap.client.Article[] getBlogs(socialapp.soap.client.User arg0)
      throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
      throw new org.apache.axis.NoEndPointException();
    }
    org.apache.axis.client.Call _call = createCall();
    _call.setOperation(_operations[1]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("");
    _call.setEncodingStyle(null);
    _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
    _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
    _call.setOperationName(new javax.xml.namespace.QName("http://soap.socialapp/", "getBlogs"));

    setRequestHeaders(_call);
    setAttachments(_call);
    try {
      java.lang.Object _resp = _call.invoke(new java.lang.Object[] {arg0});

      if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException) _resp;
      } else {
        extractAttachments(_call);
        try {
          return (socialapp.soap.client.Article[]) _resp;
        } catch (java.lang.Exception _exception) {
          return (socialapp.soap.client.Article[])
              org.apache.axis.utils.JavaUtils.convert(_resp, socialapp.soap.client.Article[].class);
        }
      }
    } catch (org.apache.axis.AxisFault axisFaultException) {
      throw axisFaultException;
    }
  }
Ejemplo n.º 8
0
  public String scheduleReport(ScheduleRequest scheduleRequest, String userID, String userPassword)
      throws ReportException {

    try {
      initOperation();

      QName scheduleReq = new QName(BIP_NAMESPACE, "ScheduleRequest");
      // Default return type based on what we expect
      call.setOperationName(new QName(BIP_NAMESPACE, "scheduleReport"));
      call.addParameter("ScheduleRequest", scheduleReq, ParameterMode.IN);
      call.addParameter("userID", XMLType.XSD_STRING, ParameterMode.IN);
      call.addParameter("password", XMLType.XSD_STRING, ParameterMode.IN);
      call.setReturnType(XMLType.XSD_STRING);

      // Define only email delivery
      // DeliveryRequest delivery = new DeliveryRequest(email, null, null, null, null, null);

      // issue the request
      String result = (String) call.invoke(new Object[] {scheduleRequest, userID, userPassword});

      return result;
    } catch (RemoteException e) {
      ReportException reportException = new ReportException(e);
      throw reportException;
    }
  }
Ejemplo n.º 9
0
  public JobHistoryInfo getScheduledReportHistoryInfo(
      String scheduledJobID,
      String viewByFilter,
      boolean downloadReport,
      String userID,
      String userPassword)
      throws ReportException {

    try {
      initOperation();

      call.setOperationName(new QName(BIP_NAMESPACE, "getScheduledReportHistoryInfo"));

      call.addParameter("scheduledJobID", XMLType.XSD_STRING, ParameterMode.IN);
      call.addParameter("userID", XMLType.XSD_STRING, ParameterMode.IN);
      call.addParameter("password", XMLType.XSD_STRING, ParameterMode.IN);
      call.addParameter("viewByFilter", XMLType.XSD_STRING, ParameterMode.IN);
      call.addParameter("downloadReport", XMLType.XSD_BOOLEAN, ParameterMode.IN);

      call.setReturnClass(JobHistoryInfo.class);

      // issue the request
      JobHistoryInfo result =
          (JobHistoryInfo)
              call.invoke(
                  new Object[] {
                    scheduledJobID, userID, userPassword, viewByFilter, downloadReport
                  });

      return result;
    } catch (RemoteException e) {
      ReportException reportException = new ReportException(e);
      throw reportException;
    }
  }
Ejemplo n.º 10
0
  public ItemData[] getFolderContents(String folderAbsolutePath, String userID, String userPassword)
      throws ReportException {

    try {

      initOperation();

      call.setOperationName(new QName(BIP_NAMESPACE, "getFolderContents"));
      call.addParameter("reportAbsolutePath", XMLType.XSD_STRING, ParameterMode.IN);
      call.addParameter("userID", XMLType.XSD_STRING, ParameterMode.IN);
      call.addParameter("password", XMLType.XSD_STRING, ParameterMode.IN);
      call.setReturnClass(ItemData[].class);
      // issue the request
      ItemData[] descFolderData =
          (ItemData[]) call.invoke(new Object[] {folderAbsolutePath, userID, userPassword});

      if (descFolderData != null) {
        for (int i = 0; i < descFolderData.length; i++) {
          log.debug(descFolderData[i].getDisplayName());
        }
      }

      log.debug("Success for GetFolderContent");

      return descFolderData;
    } catch (RemoteException e) {
      ReportException reportException = new ReportException(e);
      throw reportException;
    }
  }
  public void setCoordinateUnit(java.lang.String unit) throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
      throw new org.apache.axis.NoEndPointException();
    }
    org.apache.axis.client.Call _call = createCall();
    _call.setOperation(_operations[3]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("");
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
    _call.setOperationName(
        new javax.xml.namespace.QName("http://KmlGenerator.webservices.cgl", "setCoordinateUnit"));

    setRequestHeaders(_call);
    setAttachments(_call);
    try {
      java.lang.Object _resp = _call.invoke(new java.lang.Object[] {unit});

      if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException) _resp;
      }
      extractAttachments(_call);
    } catch (org.apache.axis.AxisFault axisFaultException) {
      throw axisFaultException;
    }
  }
  public int updateStatus(java.lang.String sMsisdn, int iStatus) throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
      throw new org.apache.axis.NoEndPointException();
    }
    org.apache.axis.client.Call _call = createCall();
    _call.setOperation(_operations[2]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("");
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
    _call.setOperationName(
        new javax.xml.namespace.QName("http://service.mc.vasc.com", "updateStatus"));

    setRequestHeaders(_call);
    setAttachments(_call);
    try {
      java.lang.Object _resp =
          _call.invoke(new java.lang.Object[] {sMsisdn, new java.lang.Integer(iStatus)});

      if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException) _resp;
      } else {
        extractAttachments(_call);
        try {
          return ((java.lang.Integer) _resp).intValue();
        } catch (java.lang.Exception _exception) {
          return ((java.lang.Integer) org.apache.axis.utils.JavaUtils.convert(_resp, int.class))
              .intValue();
        }
      }
    } catch (org.apache.axis.AxisFault axisFaultException) {
      throw axisFaultException;
    }
  }
Ejemplo n.º 13
0
  public static void main(String[] args) {

    try {
      String fileName = "/log4j.properties";
      DataHandler dh =
          new DataHandler(
              new FileDataSource(FileSenderClient.class.getResource(fileName).getPath()));
      String url = "http://127.0.0.1:8080/axis1/services/FileReceiverServer";
      Service serv = new Service();
      Call call = (Call) serv.createCall();
      call.setTargetEndpointAddress(url);
      call.setOperationName(new QName(url, "receive"));
      QName qn = new QName("DataHandler", "myNs:DataHandler");
      call.registerTypeMapping(
          DataHandler.class,
          qn,
          JAFDataHandlerSerializerFactory.class,
          JAFDataHandlerDeserializerFactory.class);
      call.addParameter("s1", qn, ParameterMode.IN);
      call.addParameter("s2", XMLType.XSD_STRING, ParameterMode.IN);
      call.setReturnClass(String.class);
      String returnStr = (String) call.invoke(new Object[] {dh, "server.txt"});
      System.out.println("Server response: " + returnStr);
    } catch (ServiceException e) {
      e.printStackTrace();
    } catch (RemoteException e) {
      e.printStackTrace();
    }
  }
  public is.idega.idegaweb.marathon.webservice.impl.Registrations getRegistrations(
      java.lang.String runId, java.lang.String year) throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
      throw new org.apache.axis.NoEndPointException();
    }
    org.apache.axis.client.Call _call = createCall();
    _call.setOperation(_operations[0]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("");
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
    _call.setOperationName(
        new javax.xml.namespace.QName("urn:MarathonRegistrationService", "getRegistrations"));

    setRequestHeaders(_call);
    setAttachments(_call);
    try {
      java.lang.Object _resp = _call.invoke(new java.lang.Object[] {runId, year});

      if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException) _resp;
      } else {
        extractAttachments(_call);
        try {
          return (is.idega.idegaweb.marathon.webservice.impl.Registrations) _resp;
        } catch (java.lang.Exception _exception) {
          return (is.idega.idegaweb.marathon.webservice.impl.Registrations)
              org.apache.axis.utils.JavaUtils.convert(
                  _resp, is.idega.idegaweb.marathon.webservice.impl.Registrations.class);
        }
      }
    } catch (org.apache.axis.AxisFault axisFaultException) {
      throw axisFaultException;
    }
  }
Ejemplo n.º 15
0
  public boolean redimirPuntos(java.lang.String numeroPremio) throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
      throw new org.apache.axis.NoEndPointException();
    }
    org.apache.axis.client.Call _call = createCall();
    _call.setOperation(_operations[2]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("");
    _call.setEncodingStyle(null);
    _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
    _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
    _call.setOperationName(
        new javax.xml.namespace.QName("http://modelo.soa.unipiloto.edu/", "redimirPuntos"));

    setRequestHeaders(_call);
    setAttachments(_call);
    try {
      java.lang.Object _resp = _call.invoke(new java.lang.Object[] {numeroPremio});

      if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException) _resp;
      } else {
        extractAttachments(_call);
        try {
          return ((java.lang.Boolean) _resp).booleanValue();
        } catch (java.lang.Exception _exception) {
          return ((java.lang.Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class))
              .booleanValue();
        }
      }
    } catch (org.apache.axis.AxisFault axisFaultException) {
      throw axisFaultException;
    }
  }
Ejemplo n.º 16
0
  public static Float getQuote(String ticker, String username, String password)
      throws javax.xml.rpc.ServiceException, AxisFault {
    Float res = new Float(-1.0);

    Service service = new Service(new XMLStringProvider(wsdd));

    // create a new Call object
    Call call = (Call) service.createCall();
    call.setOperationName(new QName("urn:xmltoday-delayed-quotes", "getQuote"));
    call.addParameter("symbol", XMLType.XSD_STRING, ParameterMode.IN);
    call.setReturnType(XMLType.XSD_FLOAT);

    try {
      java.net.URL jmsurl = new java.net.URL(sampleJmsUrl);
      call.setTargetEndpointAddress(jmsurl);

      // set additional params on the call if desired
      call.setUsername(username);
      call.setPassword(password);
      call.setTimeout(new Integer(30000));

      res = (Float) call.invoke(new Object[] {ticker});
    } catch (java.net.MalformedURLException e) {
      throw new AxisFault("Invalid JMS URL", e);
    } catch (java.rmi.RemoteException e) {
      throw new AxisFault("Failed in getQuote()", e);
    }

    return res;
  }
Ejemplo n.º 17
0
  public static void main(String[] args) {
    try {
      String bwbh = "深建住保[2013]65号";
      // 返回参数类型
      Service service = new Service();
      // String wsdlUrl = "http://localhost/services/WebServiceForSearch?wsdl";//请求服务的URL
      //			 String wsdlUrl = "http://192.168.0.72/services/WebServiceForSearch?wsdl";
      String wsdlUrl = "http://192.168.53.89:7001/services/WebServiceForSearch?wsdl";
      URL url = new URL(wsdlUrl); // 通过URL类的构造方法传入wsdlUrl地址创建URL对象
      // 2.创建服务方法的调用者对象call,设置call对象的属性
      Call call = (Call) service.createCall();
      call.setTargetEndpointAddress(url); // 给call对象设置请求的URL属性
      // String serviceName = "getFile"; // 文件标题、申请单位、办结时间(|分割,注意顺序),用null判断是否存在

      String serviceName = "getWord"; // 只有内网用
      call.setOperationName(serviceName); // 给call对象设置调用方法名属性
      // 办文编号 参数
      call.addParameter("bwbh", XMLType.XSD_STRING, ParameterMode.IN); // 给call对象设置方法的参数名、参数类型、参数模式
      call.setReturnType(XMLType.XSD_STRING); // 设置调用方法的返回值类型
      // 执行接口方法
      // String i = (String)call.invoke(new Object[] {bwbh}) ;
      String i = (String) call.invoke(new Object[] {bwbh});
      System.out.println("test.main()-->" + i);
      if (i != null) {
        byte[] b = new sun.misc.BASE64Decoder().decodeBuffer(i);
      }

    } catch (Exception e) {
      e.printStackTrace();
    }
  }
  public void testCall(cgl.quakesim.disloc.ObsvPoint[] testBean) throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
      throw new org.apache.axis.NoEndPointException();
    }
    org.apache.axis.client.Call _call = createCall();
    _call.setOperation(_operations[0]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("");
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
    _call.setOperationName(
        new javax.xml.namespace.QName("http://disloc.webservices.cgl", "testCall"));

    setRequestHeaders(_call);
    setAttachments(_call);
    try {
      java.lang.Object _resp = _call.invoke(new java.lang.Object[] {testBean});

      if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException) _resp;
      }
      extractAttachments(_call);
    } catch (org.apache.axis.AxisFault axisFaultException) {
      throw axisFaultException;
    }
  }
Ejemplo n.º 19
0
 public Object accessWGService(
     WebSession s,
     String serv,
     int port,
     String proc,
     String parameterName,
     Object parameterValue) {
   String targetNamespace = "WebGoat";
   try {
     QName serviceName = new QName(targetNamespace, serv);
     QName operationName = new QName(targetNamespace, proc);
     Service service = new Service();
     Call call = (Call) service.createCall();
     call.setOperationName(operationName);
     call.addParameter(parameterName, serviceName, ParameterMode.INOUT);
     call.setReturnType(XMLType.XSD_STRING);
     call.setUsername("guest");
     call.setPassword("guest");
     call.setTargetEndpointAddress(
         "http://localhost:" + port + "/" + s.getRequest().getContextPath() + "/services/" + serv);
     Object result = call.invoke(new Object[] {parameterValue});
     return result;
   } catch (RemoteException e) {
     e.printStackTrace();
   } catch (ServiceException e) {
     e.printStackTrace();
   } catch (Exception e) {
     e.printStackTrace();
   }
   return null;
 }
  public java.lang.String confirmarTurno(
      java.lang.String nroCi,
      java.lang.String nroCelular,
      java.lang.String entidad,
      java.lang.Long token,
      java.lang.Integer empresa,
      java.lang.Integer codEspecMedic,
      java.lang.String codMedicoTurnoFecha,
      java.lang.String usuario,
      java.lang.String password)
      throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
      throw new org.apache.axis.NoEndPointException();
    }
    org.apache.axis.client.Call _call = createCall();
    _call.setOperation(_operations[2]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("");
    _call.setEncodingStyle(null);
    _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
    _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
    _call.setOperationName(
        new javax.xml.namespace.QName("http://servicios.consultas.ips.gov.py/", "confirmarTurno"));

    setRequestHeaders(_call);
    setAttachments(_call);
    try {
      java.lang.Object _resp =
          _call.invoke(
              new java.lang.Object[] {
                nroCi,
                nroCelular,
                entidad,
                token,
                empresa,
                codEspecMedic,
                codMedicoTurnoFecha,
                usuario,
                password
              });

      if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException) _resp;
      } else {
        extractAttachments(_call);
        try {
          return (java.lang.String) _resp;
        } catch (java.lang.Exception _exception) {
          return (java.lang.String)
              org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
        }
      }
    } catch (org.apache.axis.AxisFault axisFaultException) {
      throw axisFaultException;
    }
  }
Ejemplo n.º 21
0
  public com.bis.webservice.codegroup.types.CodeGroupBean getCodeGroupByLanguage(
      java.lang.String string_1, java.lang.String string_2, java.lang.String string_3)
      throws java.rmi.RemoteException, com.bis.webservice.codegroup.types.ServerErrorException,
          com.bis.webservice.codegroup.types.InvalidArgumentException,
          com.bis.webservice.codegroup.types.DataNotFoundException {
    if (super.cachedEndpoint == null) {
      throw new org.apache.axis.NoEndPointException();
    }
    org.apache.axis.client.Call _call = createCall();
    _call.setOperation(_operations[2]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("");
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
    _call.setOperationName(
        new javax.xml.namespace.QName(
            "http://codegroup.webservice.bis.com/", "getCodeGroupByLanguage"));

    setRequestHeaders(_call);
    setAttachments(_call);
    try {
      java.lang.Object _resp = _call.invoke(new java.lang.Object[] {string_1, string_2, string_3});

      if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException) _resp;
      } else {
        extractAttachments(_call);
        try {
          return (com.bis.webservice.codegroup.types.CodeGroupBean) _resp;
        } catch (java.lang.Exception _exception) {
          return (com.bis.webservice.codegroup.types.CodeGroupBean)
              org.apache.axis.utils.JavaUtils.convert(
                  _resp, com.bis.webservice.codegroup.types.CodeGroupBean.class);
        }
      }
    } catch (org.apache.axis.AxisFault axisFaultException) {
      if (axisFaultException.detail != null) {
        if (axisFaultException.detail instanceof java.rmi.RemoteException) {
          throw (java.rmi.RemoteException) axisFaultException.detail;
        }
        if (axisFaultException.detail
            instanceof com.bis.webservice.codegroup.types.ServerErrorException) {
          throw (com.bis.webservice.codegroup.types.ServerErrorException) axisFaultException.detail;
        }
        if (axisFaultException.detail
            instanceof com.bis.webservice.codegroup.types.InvalidArgumentException) {
          throw (com.bis.webservice.codegroup.types.InvalidArgumentException)
              axisFaultException.detail;
        }
        if (axisFaultException.detail
            instanceof com.bis.webservice.codegroup.types.DataNotFoundException) {
          throw (com.bis.webservice.codegroup.types.DataNotFoundException)
              axisFaultException.detail;
        }
      }
      throw axisFaultException;
    }
  }
  public int sendMo(
      java.lang.String sUser,
      java.lang.String sPass,
      java.lang.String sMsisdn,
      java.lang.String sServiceNumber,
      java.lang.String sServiceCode,
      java.lang.String sInfo,
      java.lang.String sRequestId,
      java.lang.String sOperator,
      int sRegisType,
      int iMulti)
      throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
      throw new org.apache.axis.NoEndPointException();
    }
    org.apache.axis.client.Call _call = createCall();
    _call.setOperation(_operations[1]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("");
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
    _call.setOperationName(new javax.xml.namespace.QName("http://service.mc.vasc.com", "sendMo"));

    setRequestHeaders(_call);
    setAttachments(_call);
    try {
      java.lang.Object _resp =
          _call.invoke(
              new java.lang.Object[] {
                sUser,
                sPass,
                sMsisdn,
                sServiceNumber,
                sServiceCode,
                sInfo,
                sRequestId,
                sOperator,
                new java.lang.Integer(sRegisType),
                new java.lang.Integer(iMulti)
              });

      if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException) _resp;
      } else {
        extractAttachments(_call);
        try {
          return ((java.lang.Integer) _resp).intValue();
        } catch (java.lang.Exception _exception) {
          return ((java.lang.Integer) org.apache.axis.utils.JavaUtils.convert(_resp, int.class))
              .intValue();
        }
      }
    } catch (org.apache.axis.AxisFault axisFaultException) {
      throw axisFaultException;
    }
  }
Ejemplo n.º 23
0
  public int moReceive(
      java.lang.String requestID,
      java.lang.String userID,
      java.lang.String serviceID,
      java.lang.String commandCode,
      java.lang.String message,
      java.lang.String operator,
      java.lang.String partnerUsername,
      java.lang.String partnerPassword,
      java.lang.String requestTime)
      throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
      throw new org.apache.axis.NoEndPointException();
    }
    org.apache.axis.client.Call _call = createCall();
    _call.setOperation(_operations[0]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("http://v2.service.123mua.vn/sms#moReceive");
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
    _call.setOperationName(
        new javax.xml.namespace.QName("http://v2.service.123mua.vn/sms", "moReceive"));

    setRequestHeaders(_call);
    setAttachments(_call);
    try {
      java.lang.Object _resp =
          _call.invoke(
              new java.lang.Object[] {
                requestID,
                userID,
                serviceID,
                commandCode,
                message,
                operator,
                partnerUsername,
                partnerPassword,
                requestTime
              });

      if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException) _resp;
      } else {
        extractAttachments(_call);
        try {
          return ((java.lang.Integer) _resp).intValue();
        } catch (java.lang.Exception _exception) {
          return ((java.lang.Integer) org.apache.axis.utils.JavaUtils.convert(_resp, int.class))
              .intValue();
        }
      }
    } catch (org.apache.axis.AxisFault axisFaultException) {
      throw axisFaultException;
    }
  }
Ejemplo n.º 24
0
 public static String request(
     String operation, String namespace, String parameter, String uri, String arg)
     throws ServiceException, RemoteException {
   Service service = new Service();
   Call call = (Call) service.createCall();
   call.setTargetEndpointAddress(endPoint);
   call.setOperationName(new QName(namespace, operation)); // WSDL里面描述的接口名称
   call.addParameter(parameter, XMLType.SOAP_STRING, ParameterMode.IN); // 接口的参数
   call.setReturnType(XMLType.SOAP_STRING); // 设置返回类型
   call.setSOAPActionURI(uri);
   String result = (String) call.invoke(new Object[] {arg});
   return result;
 }
  public com.google.api.ads.dfp.axis.v201302.ContentPage
      getContentByStatementAndCustomTargetingValue(
          com.google.api.ads.dfp.axis.v201302.Statement filterStatement,
          java.lang.Long customTargetingValueId)
          throws java.rmi.RemoteException, com.google.api.ads.dfp.axis.v201302.ApiException {
    if (super.cachedEndpoint == null) {
      throw new org.apache.axis.NoEndPointException();
    }
    org.apache.axis.client.Call _call = createCall();
    _call.setOperation(_operations[1]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("");
    _call.setEncodingStyle(null);
    _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
    _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
    _call.setOperationName(
        new javax.xml.namespace.QName(
            "https://www.google.com/apis/ads/publisher/v201302",
            "getContentByStatementAndCustomTargetingValue"));

    setRequestHeaders(_call);
    setAttachments(_call);
    try {
      java.lang.Object _resp =
          _call.invoke(new java.lang.Object[] {filterStatement, customTargetingValueId});

      if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException) _resp;
      } else {
        extractAttachments(_call);
        try {
          return (com.google.api.ads.dfp.axis.v201302.ContentPage) _resp;
        } catch (java.lang.Exception _exception) {
          return (com.google.api.ads.dfp.axis.v201302.ContentPage)
              org.apache.axis.utils.JavaUtils.convert(
                  _resp, com.google.api.ads.dfp.axis.v201302.ContentPage.class);
        }
      }
    } catch (org.apache.axis.AxisFault axisFaultException) {
      if (axisFaultException.detail != null) {
        if (axisFaultException.detail instanceof java.rmi.RemoteException) {
          throw (java.rmi.RemoteException) axisFaultException.detail;
        }
        if (axisFaultException.detail instanceof com.google.api.ads.dfp.axis.v201302.ApiException) {
          throw (com.google.api.ads.dfp.axis.v201302.ApiException) axisFaultException.detail;
        }
      }
      throw axisFaultException;
    }
  }
Ejemplo n.º 26
0
  /**
   * Main entry point. Tests a variety of echo methods and reports on their results.
   *
   * <p>Arguments are of the form: -h localhost -p 8080 -s /soap/servlet/rpcrouter
   */
  public static void main(String args[]) throws Exception {
    // set up the call object
    Options opts = new Options(args);
    service = new Service();
    call = (Call) service.createCall();
    call.setTargetEndpointAddress(new URL(opts.getURL()));
    call.setUseSOAPAction(true);
    call.setSOAPActionURI("http://www.soapinterop.org/Bid");

    // register the PurchaseOrder class
    QName poqn = new QName("http://www.soapinterop.org/Bid", "PurchaseOrder");
    Class cls = PurchaseOrder.class;
    call.registerTypeMapping(cls, poqn, BeanSerializerFactory.class, BeanDeserializerFactory.class);

    // register the Address class
    QName aqn = new QName("http://www.soapinterop.org/Bid", "Address");
    cls = Address.class;
    call.registerTypeMapping(cls, aqn, BeanSerializerFactory.class, BeanDeserializerFactory.class);

    // register the LineItem class
    QName liqn = new QName("http://www.soapinterop.org/Bid", "LineItem");
    cls = LineItem.class;
    call.registerTypeMapping(cls, liqn, BeanSerializerFactory.class, BeanDeserializerFactory.class);

    try {
      // Default return type based on what we expect
      call.setOperationName(new QName("http://www.soapinterop.org/Bid", "Buy"));
      call.addParameter("PO", poqn, ParameterMode.IN);
      call.setReturnType(XMLType.XSD_STRING);

      LineItem[] li = new LineItem[2];
      li[0] = new LineItem("Tricorder", 1, "2500.95");
      li[1] = new LineItem("Phasor", 3, "7250.95");

      PurchaseOrder po =
          new PurchaseOrder(
              "NCC-1701",
              Calendar.getInstance(),
              new Address("Sam Ruby", "Home", "Raleigh", "NC", "27676"),
              new Address("Lou Gerstner", "Work", "Armonk", "NY", "15222"),
              li);

      // issue the request
      String receipt = (String) call.invoke(new Object[] {po});

      System.out.println(receipt);
    } catch (Exception e) {
      System.out.println("Buy failed: " + e);
      throw e;
    }
  }
Ejemplo n.º 27
0
  public com.deppon.fin.dept.WSContext login(
      java.lang.String userName,
      java.lang.String password,
      java.lang.String slnName,
      java.lang.String dcName,
      java.lang.String language,
      int dbType,
      java.lang.String authPattern)
      throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
      throw new org.apache.axis.NoEndPointException();
    }
    org.apache.axis.client.Call _call = createCall();
    _call.setOperation(_operations[0]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("");
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
    _call.setOperationName(
        new javax.xml.namespace.QName("http://login.webservice.bos.kingdee.com", "login"));

    setRequestHeaders(_call);
    setAttachments(_call);
    try {
      java.lang.Object _resp =
          _call.invoke(
              new java.lang.Object[] {
                userName,
                password,
                slnName,
                dcName,
                language,
                new java.lang.Integer(dbType),
                authPattern
              });

      if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException) _resp;
      } else {
        extractAttachments(_call);
        try {
          return (com.deppon.fin.dept.WSContext) _resp;
        } catch (java.lang.Exception _exception) {
          return (com.deppon.fin.dept.WSContext)
              org.apache.axis.utils.JavaUtils.convert(_resp, com.deppon.fin.dept.WSContext.class);
        }
      }
    } catch (org.apache.axis.AxisFault axisFaultException) {
      throw axisFaultException;
    }
  }
  public is.idega.idegaweb.egov.cases.focal.business.server.focalMockupService.Status
      createUpdateCustomer(
          is.idega.idegaweb.egov.cases.focal.business.server.focalMockupService.CustomerInformation
              personal_information)
          throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
      throw new org.apache.axis.NoEndPointException();
    }
    org.apache.axis.client.Call _call = createCall();
    _call.setOperation(_operations[3]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("");
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
    _call.setOperationName(
        new javax.xml.namespace.QName(
            "urn:is.idega.idegaweb.egov.cases.focal", "createUpdateCustomer"));

    setRequestHeaders(_call);
    setAttachments(_call);
    try {
      java.lang.Object _resp = _call.invoke(new java.lang.Object[] {personal_information});

      if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException) _resp;
      } else {
        extractAttachments(_call);
        try {
          return (is.idega.idegaweb.egov.cases.focal.business.server.focalMockupService.Status)
              _resp;
        } catch (java.lang.Exception _exception) {
          return (is.idega.idegaweb.egov.cases.focal.business.server.focalMockupService.Status)
              org.apache.axis.utils.JavaUtils.convert(
                  _resp,
                  is.idega
                      .idegaweb
                      .egov
                      .cases
                      .focal
                      .business
                      .server
                      .focalMockupService
                      .Status
                      .class);
        }
      }
    } catch (org.apache.axis.AxisFault axisFaultException) {
      throw axisFaultException;
    }
  }
  public com.google.api.ads.adwords.axis.v201605.cm.ConversionTrackerReturnValue mutate(
      com.google.api.ads.adwords.axis.v201605.cm.ConversionTrackerOperation[] operations)
      throws java.rmi.RemoteException, com.google.api.ads.adwords.axis.v201605.cm.ApiException {
    if (super.cachedEndpoint == null) {
      throw new org.apache.axis.NoEndPointException();
    }
    org.apache.axis.client.Call _call = createCall();
    _call.setOperation(_operations[1]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("");
    _call.setEncodingStyle(null);
    _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
    _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
    _call.setOperationName(
        new javax.xml.namespace.QName(
            "https://adwords.google.com/api/adwords/cm/v201605", "mutate"));

    setRequestHeaders(_call);
    setAttachments(_call);
    try {
      java.lang.Object _resp = _call.invoke(new java.lang.Object[] {operations});

      if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException) _resp;
      } else {
        extractAttachments(_call);
        try {
          return (com.google.api.ads.adwords.axis.v201605.cm.ConversionTrackerReturnValue) _resp;
        } catch (java.lang.Exception _exception) {
          return (com.google.api.ads.adwords.axis.v201605.cm.ConversionTrackerReturnValue)
              org.apache.axis.utils.JavaUtils.convert(
                  _resp,
                  com.google.api.ads.adwords.axis.v201605.cm.ConversionTrackerReturnValue.class);
        }
      }
    } catch (org.apache.axis.AxisFault axisFaultException) {
      if (axisFaultException.detail != null) {
        if (axisFaultException.detail instanceof java.rmi.RemoteException) {
          throw (java.rmi.RemoteException) axisFaultException.detail;
        }
        if (axisFaultException.detail
            instanceof com.google.api.ads.adwords.axis.v201605.cm.ApiException) {
          throw (com.google.api.ads.adwords.axis.v201605.cm.ApiException) axisFaultException.detail;
        }
      }
      throw axisFaultException;
    }
  }
Ejemplo n.º 30
0
  public boolean hasReportServerAccess(String userID, String userPassword) throws ReportException {
    try {
      initOperation();
      call.setOperationName(new QName(BIP_NAMESPACE, "validateLogin"));
      call.addParameter("userID", XMLType.XSD_STRING, ParameterMode.IN);
      call.addParameter("password", XMLType.XSD_STRING, ParameterMode.IN);
      call.setReturnType(XMLType.XSD_BOOLEAN);
      // issue the request
      Boolean hasAccess = (Boolean) call.invoke(new Object[] {userID, userPassword});
      return hasAccess;

    } catch (RemoteException e) {
      ReportException reportException = new ReportException(e);
      throw reportException;
    }
  }