cxf webservice 客户端(服务端和客户端都在本地的一种测试接口)

public class Clent {
public static void main(String[] args) {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"client-beans.xml"});
ISqmService IsqmService= (ISqmService) context.getBean("client");
String response = IsqmService.shareBSSCustInfo("xml格式的字符串");
System.out.println("Response: 测试。。。。。。" + response);
System.exit(0);

}

}

posted on 2019-08-12 11:30  博客海沐沐  阅读(286)  评论(0)    收藏  举报

导航