码迷,mamicode.com
首页 > Web开发 > 详细

web services 接口测试方法

时间:2016-05-28 17:44:40      阅读:225      评论:0      收藏:0      [点我收藏+]

标签:

public class Test {

    public static void main(String[] args) {
                JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();    
                factory.getInInterceptors().add(new LoggingInInterceptor());    
                factory.getOutInterceptors().add(new LoggingOutInterceptor());    
                factory.setServiceClass(IhlWebservice.class);    
                factory.setAddress("http://localhost:8080/charge/services/reportStatusService");    
                IhlWebservice client = (IhlWebservice) factory.create();  
                String reply = client.receiveUpdateReportStatusForApply("R2016052800001", "20");
                System.out.println("Server said: " + reply);  
            }  
}

 

web services 接口测试方法

标签:

原文地址:http://www.cnblogs.com/aGboke/p/5537768.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!