zoukankan      html  css  js  c++  java
  • RPCServiceClient-调用webservice客户端

    import javax.xml.namespace.QName;
    
    import org.apache.axis2.AxisFault;
    import org.apache.axis2.addressing.EndpointReference;
    import org.apache.axis2.client.Options;
    import org.apache.axis2.rpc.client.RPCServiceClient;
    
     
    
    public void callRemoteFun(){
      RPCServiceClient client = null;
      try {
       client = new RPCServiceClient();
       Options options = client.getOptions(); 
       // 创建一个远程的访问地址  
       EndpointReference target = new EndpointReference("http://...");
                options.setTo(target);
      } catch (AxisFault e) {
       e.printStackTrace();
      }
      Object[] objargs = new Object[] {"001","1.00","3","123456","5"};
      Class[] getobj = new Class[] { String.class };
      Object[] response = client.invokeBlocking(new QName("{SERVICE_NAMESPACE}", "{serviceName}"),  
                    objargs,getobj);  
      String result = (String) response[0];
     }
  • 相关阅读:
    pandas取值
    pandas 基本操作
    Pandas三个数据结构
    pandas.Series
    scipy线性模块liner(linalg)
    numpy meshgrid函数
    scipy插值interpolation
    scipy优化器optimizer
    scipy积分 integral
    8086汇编 Loop 指令
  • 原文地址:https://www.cnblogs.com/chyg/p/4829475.html
Copyright © 2011-2022 走看看