import java.util.ArrayList;
import java.util.List;

import javax.xml.namespace.QName;

import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;


public class Test {
    public static void main(String[] args) {
        
        
        JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
        org.apache.cxf.endpoint.Client client = dcf.createClient("http://localhost:8080/ssdr-interfacePlatform/interface/CzrkSearchWebService?wsdl");
        //Qname(命名空间,方法名)
        QName name = new QName("http://webservice.framework.platform.angle.com/","PageQuery");
        
        List t3 = new ArrayList();
        t3.add("3");
        t3.add("33");
        List t6 = new ArrayList();
        t6.add("6");
        t6.add("66");
        List t7 = new ArrayList();
        t7.add("7");
        t7.add("77");
        Object[] param = new Object[]{"1","2",t3,"4","5",t6,t7,"8",9,10};
        try {
            Object[] obj = client.invoke(name, param);
            System.out.println(obj);
        } catch (Exception e) {
            e.printStackTrace();
        }
        
    }

}

 

相关文章:

  • 2021-11-27
  • 2021-09-19
  • 2021-10-30
  • 2021-12-07
  • 2021-10-15
  • 2021-04-10
  • 2021-04-25
  • 2021-06-10
猜你喜欢
  • 2021-12-13
  • 2021-11-27
  • 2021-04-29
  • 2021-11-27
  • 2021-12-07
  • 2021-07-09
  • 2021-12-25
相关资源
相似解决方案