在同WebService对接过程中,我一般使用apache-cxf,其他产品没有做具体研究。
至于cxf所需要的jar我就不再列出,需要可在apache官网download。
调用方法:
JaxWsDynamicClientFactory dcf =JaxWsDynamicClientFactory.newInstance(); Client client = dcf.createClient("http://webServiceAddress/service?wsdl"); Object[] obj = client.invoke("serviceName", new Object[] { "postString"}); System.out.println(obj[0].toString());
浙公网安备 33010602011771号