Java调第三方的webservice接口

1、eclipse中add dynamic web project

2、选中项目右键new——> webservice ——> webservice client

     在service definition中(wsdl地址):http://eistest.donghuicredit.com/BizInvestService?wsdl

3、调用代码(一个Java 文件以Proxy结尾)

  DhzxWebServiceProxy proxy = new DhzxWebServiceProxy("http://eistest.donghuicredit.com/BizInvestService?wsdl");

  String res = proxy.postCheckRealNamePolice(str);

posted @ 2016-08-16 14:13  wxiaoxiao  阅读(2180)  评论(0编辑  收藏  举报