连接webservice 连接地址和address location 不一致 可以用com.predic8.wsdl 来解析webservice的wsdl文件 得到address location 再来连接服务 所需maven信息
<dependency> <groupId>com.predic8</groupId> <artifactId>soa-model-core</artifactId> <version>1.6.3</version> </dependency>
WSDLParser parser = new WSDLParser(); Definitions parse = parser.parse("http://192.168.208.102:8089/iih.ei.std.i.IIHService?wsdl&access_token=xxxxxxxx"); AbstractAddress address = parse.getServices().get(0).getPorts().get(0).getAddress(); url = address.getLocation();